[erlang-questions] Minimum number of attributes in an mnesia table

Ben Hood <>
Wed Jul 30 23:48:36 CEST 2008


Hi,

This seems like a very stupid question, but why do you need to have a
minimum of two fields in table definition?

For example, if you try to create the following table

mnesia:create_table(binding,[{type,ordered_set},{attributes, [b]}]),

it returns

{aborted,{bad_type,binding,{attributes,[b]}}}

The apparent solution is to add a dummy field to the table definition.

Thx,

Ben



More information about the erlang-questions mailing list