From f0294882608a89a2c8de3ecbe284a54df49cd0c4 Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Wed, 22 Jun 2016 13:12:40 +0200 Subject: [PATCH] Restore get_items conditions when not using RSM (#1147) --- src/node_flat_sql.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/node_flat_sql.erl b/src/node_flat_sql.erl index 0869f531c..68116cf50 100644 --- a/src/node_flat_sql.erl +++ b/src/node_flat_sql.erl @@ -689,7 +689,8 @@ get_items(Nidx, _From, aft when I == <<>> -> {<<"is not">>, <<"desc">>}; aft -> {<<"<">>, <<"desc">>}; before when I == <<>> -> {<<"is not">>, <<"asc">>}; - before -> {<<">">>, <<"asc">>} + before -> {<<">">>, <<"asc">>}; + _ -> {<<"is not">>, <<"desc">>} end, SNidx = integer_to_binary(Nidx), [AttrName, Id] = case I of