Skip to content

Commit

Permalink
Fixed ge/le mnesia db adaptor find sort order: they were reversed.
Browse files Browse the repository at this point in the history
  • Loading branch information
franko-franicevich committed Sep 3, 2012
1 parent 5d08791 commit 8d71781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/db_adapters/boss_db_adapter_mnesia.erl
Expand Up @@ -126,9 +126,9 @@ test_rec(Rec,{Key, 'gt', Value}) ->
test_rec(Rec,{Key, 'lt', Value}) ->
apply(Rec,Key,[]) < Value;
test_rec(Rec,{Key, 'ge', Value}) ->
apply(Rec,Key,[]) =< Value;
test_rec(Rec,{Key, 'le', Value}) ->
apply(Rec,Key,[]) >= Value;
test_rec(Rec,{Key, 'le', Value}) ->
apply(Rec,Key,[]) =< Value;
test_rec(Rec,{Key, 'matches', Value}) ->
{ok, MP} = re:compile(Value),
case re:run(apply(Rec,Key,[]), MP) of
Expand Down

0 comments on commit 8d71781

Please sign in to comment.