From e84b76e4d169c46c205a6557a7dbb6f3999d49a0 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Mon, 14 Feb 2022 19:40:17 +0100 Subject: [PATCH] fix --- packages/sqltree/src/evaluateCondition.ts | 1 + packages/sqltree/src/types.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/sqltree/src/evaluateCondition.ts b/packages/sqltree/src/evaluateCondition.ts index 456ca09d..944c3ef8 100644 --- a/packages/sqltree/src/evaluateCondition.ts +++ b/packages/sqltree/src/evaluateCondition.ts @@ -28,6 +28,7 @@ export function evaluateCondition(condition: Condition, values) { case '=': return left == right; case '!=': + case '<>': return left != right; case '<=': return left <= right; diff --git a/packages/sqltree/src/types.ts b/packages/sqltree/src/types.ts index b9c58dda..44f80b82 100644 --- a/packages/sqltree/src/types.ts +++ b/packages/sqltree/src/types.ts @@ -58,7 +58,7 @@ export interface UnaryCondition { export interface BinaryCondition { conditionType: 'binary'; - operator: '=' | '!=' | '<' | '>' | '>=' | '<='; + operator: '=' | '!=' | '<>' | '<' | '>' | '>=' | '<='; left: Expression; right: Expression; }