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