summaryrefslogtreecommitdiff
path: root/src/db.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/db.erl')
-rw-r--r--src/db.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db.erl b/src/db.erl
index aa6cc29..8f398cb 100644
--- a/src/db.erl
+++ b/src/db.erl
@@ -146,7 +146,7 @@ handle_call({get_by_index_sorted, {Start, End}}, _From, State) ->
select_index(Start, End) ->
F = fun() ->
- MatchHead = #plop{index = '$1', mtl = '$2', _ = '_'},
+ MatchHead = {plop, '$1', '_', '$2', '_'},
Guard = [{'>=', '$1', Start}, {'=<', '$1', End}],
Result = ['$$'],
mnesia:select(plop, [{MatchHead, Guard, Result}])