[erlang-questions] mnesia:select returning wrong number of columns

Tiago Cury tcury@REDACTED
Sat Jun 15 21:27:08 CEST 2013


-record(user, {id, name, password}).

F = fun() -> User = #user{_ = '$1', name= '$2', password= '$3'}, mnesia:select(user, [{User, [], ['$1','$2','$3']}]) end.
mnesia:transaction(F).

{atomic,["admin"]}

Why is it returning just one column other than three ($1,$2,$3) ?


More information about the erlang-questions mailing list