yaws icon indicating copy to clipboard operation
yaws copied to clipboard

Change the match_object function argument to a basic wild pattern

Open ttkingdom opened this issue 6 months ago • 0 comments

Using a simple table created as follow:

-record(person, {id, name}).

mnesia:create_table(person, 
    [{attributes, record_info(fields, person)}]).

The select_pattern function will return the pattern {person, [], []}, and I don't quite understand the logic behind this function. Then the do_query function return no result.

I change the pattern to a basic wild pattern {person, '_', '_'}.

ttkingdom avatar Aug 25 '24 10:08 ttkingdom