From 9aeaa37b1c355b7991aed264ffbea4a500cddfa6 Mon Sep 17 00:00:00 2001 From: "Daniel B. Vasquez" Date: Mon, 16 Mar 2015 11:21:04 +0100 Subject: [PATCH] enable between filter for memory db connector --- lib/connectors/memory.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/connectors/memory.js b/lib/connectors/memory.js index 91c00263..253ad19f 100644 --- a/lib/connectors/memory.js +++ b/lib/connectors/memory.js @@ -455,7 +455,12 @@ function applyFilter(filter) { if ('neq' in example) { return compare(example.neq, value) !== 0; } - + + if ('between' in example ) { + return ( testInEquality({gte:example.between[0]}, value) && + testInEquality({lte:example.between[1]}, value) ); + } + if (example.like || example.nlike) { var like = example.like || example.nlike;