dirty mnesia function

Roberto Portugal (CEC) roberto.portugal@REDACTED
Mon Sep 23 22:01:36 CEST 2002


Hi,

We are trying to get all records from a mnesia's table. 
"dirty_match_object" function is used to this purpose:

   mnesia:dirty_match_object(piuTable, {piuTable,'_','_','_','_','_','_','_','_','_','_','_','_','_'}).

However some records are not valid when content is returned.
The following is a valid record returned:

	{piuTable,{1,2,2,1},
          2,
          "SC",
          1,
          5,
          2,
          "ROJ_238_007/1",
          "R7A/B",
          "T220089350",
          "SCB_20G",
          2,
          2,
          [1]}.
	
But in the next case, record information is not valid:

	{piuTable,{1,19,19,2},
          5,
          "CP-IO",
          1,
          5,
          2,
          "ROJ_237_051/1",
          "R9A",
          "T220110020"|...}.

some fields are replaced with "|...".

How we can to get all records in a rigth form througth this function?

Thanks in advanced.

Roberto


Roberto Portugal
System Integrator

Regional Competence Center
Ericsson Chile, S.A.
Av. Vitacura 2808, Las Condes, Santiago, Chile 
Telf.: +56 2 372 53 95
Fax:  +56 2 372 50 57 
E-mail: roberto.portugal@REDACTED
http://www.ericsson.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20020923/17d31261/attachment.htm>


More information about the erlang-questions mailing list