Mnesia Read/Write question.

G.S. corticalcomputer@REDACTED
Fri Jul 31 06:19:56 CEST 2009

Hello everyone,
This is probably a very stupid question/problem, but I'm having trouble
using the following commands:

A) mnesia:dirty_write(Id#test{item = hello}) and
mnesia:dirty_read(Id#test.item)  I get: exception error: {badrecord,test}
but this works on the same table/schema...:
B) Thing = #test{id = 1, item = hello}, mnesia:dirty_write(test,Thing),

Are "A)" valid commands, what am I doing wrong?


More information about the erlang-questions mailing list