mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 16:13:58 +00:00
fixed filter bool values in postgres
This commit is contained in:
@@ -223,10 +223,10 @@ const createParser = (filterType: FilterType) => {
|
|||||||
null: () => word('NULL').map(unaryCondition('isNull')),
|
null: () => word('NULL').map(unaryCondition('isNull')),
|
||||||
empty: () => word('EMPTY').map(unaryCondition('isEmpty')),
|
empty: () => word('EMPTY').map(unaryCondition('isEmpty')),
|
||||||
notEmpty: r => r.not.then(r.empty).map(unaryCondition('isNotEmpty')),
|
notEmpty: r => r.not.then(r.empty).map(unaryCondition('isNotEmpty')),
|
||||||
true: () => P.regexp(/true/i).map(binaryFixedValueCondition(1)),
|
true: () => P.regexp(/true/i).map(binaryFixedValueCondition('1')),
|
||||||
false: () => P.regexp(/false/i).map(binaryFixedValueCondition(0)),
|
false: () => P.regexp(/false/i).map(binaryFixedValueCondition('0')),
|
||||||
trueNum: () => word('1').map(binaryFixedValueCondition(1)),
|
trueNum: () => word('1').map(binaryFixedValueCondition('1')),
|
||||||
falseNum: () => word('0').map(binaryFixedValueCondition(0)),
|
falseNum: () => word('0').map(binaryFixedValueCondition('0')),
|
||||||
|
|
||||||
this: () => word('THIS'),
|
this: () => word('THIS'),
|
||||||
last: () => word('LAST'),
|
last: () => word('LAST'),
|
||||||
|
|||||||
Reference in New Issue
Block a user