mnesia and simple records

Andrey Sidorenko <>
Thu Oct 14 16:59:00 CEST 2010


Hi All,

Is it correct, that it is not possible to create mnesia table for the record
which contains just one member? What is the reason for such kind of
limitation?

Eshell V5.7.5  (abort with ^G)
1> mnesia:create_schema([node()]).
ok
2> mnesia:start().
ok
3> rd(test,{f1}).
test
4> mnesia:create_table(test, [{attributes, record_info(fields, test)}]).
{aborted,{bad_type,test,{attributes,[f1]}}}
5> rd(test2,{f1,f2}).
test2
6> mnesia:create_table(test2, [{attributes, record_info(fields, test2)}]).
{atomic,ok}
7>

Thanks,
Andrey


More information about the erlang-questions mailing list