Hello<br><br>I see some strange behaviour of ets interaction.<br>After I did an error in ets:select request, all following requests are erroneous until, i.e. ets:new<br>It is my session:<br><br>--------------------------<br>
<pre>(ie@sun)89> ets:new(test, [public, named_table]).<br>test<br>(ie@sun)90> ets:insert(test, {{as, 2}, 23}).<br>true<br>(ie@sun)91> ets:insert(test, {{qwe, 5}, 756}).<br>true<br>(ie@sun)92> ets:insert(test, {{xcv, 3}, 111}).<br>
true<br>(ie@sun)93> ets:select(test, [{{{'$1', '$2'}, '$3'}, [], ['$3']}]).<br>[111,756,23]<br>(ie@sun)94><br><br>All is OK<br><br>(ie@sun)94> ets:select(qwe, [{{{'$1', '$2'}, '$3'}, [], ['$3']}]).<br>
** exception error: bad argument<br> in function ets:select/2<br> called as ets:select(qwe,[{{{'$1','$2'},'$3'},[],['$3']}])<br><br>Error<br><br>(ie@sun)95> ets:select(test, [{{{'$1', '$2'}, '$3'}, [], ['$3']}]).<br>
** exception error: bad argument<br> in function ets:select/2<br> called as ets:select(test,[{{{'$1','$2'},'$3'},[],['$3']}])<br><br>The same request as in 93 line, error also<br>
<br></pre>--------------------------<br clear="all"><br>Why this error happens?<br><br><br>Thank you<br><br>-- <br>Maxim Treskin