Skip to content

Commit 3fee9aa

Browse files
ssteinhauserStefan Steinhauser
andauthored
feat: Support not equals operator with a hat (#2153)
Support not equals operator with hat (^=), which is supported in Exasol https://docs.exasol.com/db/latest/sql_references/predicates/comparison_predicates.htm for example Co-authored-by: Stefan Steinhauser <[email protected]>
1 parent 9ab1ebd commit 3fee9aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@ TOKEN : /* Operators */
557557
| <OP_MINORTHANEQUALS: "<" (<WHITESPACE>)* "=">
558558
| <OP_NOTEQUALSSTANDARD: "<" (<WHITESPACE>)* ">">
559559
| <OP_NOTEQUALSBANG: "!" (<WHITESPACE>)* "=">
560+
| <OP_NOTEQUALSHAT: "^" (<WHITESPACE>)* "=">
560561
| <OP_CONCAT: "|" (<WHITESPACE>)* "|">
561562
| <OP_DOUBLEAND: "&&">
562563
| <OP_CONTAINS: "&>">
@@ -4081,6 +4082,7 @@ Expression RegularCondition() #RegularCondition:
40814082
| token=<OP_MINORTHANEQUALS> { result = new MinorThanEquals(token.image); }
40824083
| token=<OP_NOTEQUALSSTANDARD> { result = new NotEqualsTo(token.image); }
40834084
| token=<OP_NOTEQUALSBANG> { result = new NotEqualsTo(token.image); }
4085+
| token=<OP_NOTEQUALSHAT> { result = new NotEqualsTo(token.image); }
40844086
| "*=" { result = new TSQLLeftJoin(); }
40854087
| "=*" { result = new TSQLRightJoin(); }
40864088
| token=<OP_DOUBLEAND> { result = new DoubleAnd(); }

0 commit comments

Comments
 (0)