Fix pattern-matching index select

This commit is contained in:
Ulf Wiger
2025-07-04 16:43:51 +02:00
parent 29d5d6f170
commit 13ccdb373a
3 changed files with 65 additions and 24 deletions
+3
View File
@@ -237,6 +237,9 @@ test_index_plugin(Config) ->
Res1 = lists:sort(mrdb:index_read(Tab,<<"sen">>, {pfx})),
Res2 = lists:sort(mrdb:index_read(Tab,<<"whi">>, {pfx})),
ok = test_select(Tab,{pfx},[{'_', [], ['$_']}]),
MS2 = [{{<<"whi">>,{Tab,"truth",'_'}},[],['$_']}],
[_] = mrdb_index:select(Tab, {pfx}, MS2),
ok = test_select(Tab, {pfx}, MS2),
[{Tab,"foobar","sentence"}] = mrdb:index_read(
Tab, <<"foo">>, {pfx});
true ->