enable between filter for memory db connector

This commit is contained in:
Daniel B. Vasquez 2015-03-16 11:21:04 +01:00
parent 7dc0fcd26f
commit 9aeaa37b1c
1 changed files with 6 additions and 1 deletions

View File

@ -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;