@@ -2171,14 +2171,12 @@ Expression RegularCondition() #RegularCondition:
2171
2171
Expression result = null;
2172
2172
Expression leftExpression;
2173
2173
Expression rightExpression;
2174
- //boolean not = false;
2175
2174
int oracleJoin=EqualsTo.NO_ORACLE_JOIN;
2176
2175
int oraclePrior=EqualsTo.NO_ORACLE_PRIOR;
2177
2176
boolean binary = false;
2178
2177
}
2179
2178
{
2180
2179
[ LOOKAHEAD(2) <K_PRIOR> { oraclePrior = EqualsTo.ORACLE_PRIOR_START; }]
2181
- //[ <K_NOT> { not = true; } ]
2182
2180
leftExpression=ComparisonItem() { result = leftExpression; }
2183
2181
2184
2182
[ "(" "+" ")" { oracleJoin=EqualsTo.ORACLE_JOIN_RIGHT; } ]
@@ -2218,8 +2216,6 @@ Expression RegularCondition() #RegularCondition:
2218
2216
BinaryExpression regCond = (BinaryExpression) result;
2219
2217
regCond.setLeftExpression(leftExpression);
2220
2218
regCond.setRightExpression(rightExpression);
2221
- //if (not)
2222
- // regCond.setNot();
2223
2219
2224
2220
if (oracleJoin>0)
2225
2221
((SupportsOldOracleJoinSyntax)result).setOldOracleJoinSyntax(oracleJoin);
@@ -2302,19 +2298,9 @@ Expression LikeExpression() #LikeExpression:
2302
2298
Expression rightExpression = null;
2303
2299
}
2304
2300
{
2305
- //(
2306
- //LOOKAHEAD(3)
2307
- (
2308
- leftExpression=SimpleExpression()
2309
- [<K_NOT> { result.setNot(); } ] ( <K_LIKE> | <K_ILIKE> { result.setCaseInsensitive(true); } ) rightExpression=SimpleExpression()
2310
- [<K_ESCAPE> token=<S_CHAR_LITERAL> { result.setEscape((new StringValue(token.image)).getValue()); }]
2311
- )
2312
- /* |
2313
- (
2314
- [<K_NOT> { result.setNot(); } ] leftExpression=SimpleExpression() ( <K_LIKE> | <K_ILIKE> { result.setCaseInsensitive(true); } ) rightExpression=SimpleExpression()
2315
- [<K_ESCAPE> token=<S_CHAR_LITERAL> { result.setEscape((new StringValue(token.image)).getValue()); }]
2316
- )
2317
- )*/
2301
+ leftExpression=SimpleExpression()
2302
+ [<K_NOT> { result.setNot(); } ] ( <K_LIKE> | <K_ILIKE> { result.setCaseInsensitive(true); } ) rightExpression=SimpleExpression()
2303
+ [<K_ESCAPE> token=<S_CHAR_LITERAL> { result.setEscape((new StringValue(token.image)).getValue()); }]
2318
2304
{
2319
2305
result.setLeftExpression(leftExpression);
2320
2306
result.setRightExpression(rightExpression);
@@ -2329,13 +2315,8 @@ Expression IsNullExpression():
2329
2315
Expression leftExpression = null;
2330
2316
}
2331
2317
{
2332
- (
2333
- /* <K_NOT> { result.setNot(true); } leftExpression=SimpleExpression()
2334
- ( <K_ISNULL> { result.setUseIsNull(true); } | <K_IS> <K_NULL> )
2335
- | */
2336
2318
leftExpression=SimpleExpression()
2337
2319
(<K_ISNULL> { result.setUseIsNull(true); } | <K_IS> [<K_NOT> { result.setNot(true); } ] <K_NULL> )
2338
- )
2339
2320
2340
2321
{
2341
2322
result.setLeftExpression(leftExpression);
@@ -2349,7 +2330,6 @@ Expression ExistsExpression():
2349
2330
Expression rightExpression = null;
2350
2331
}
2351
2332
{
2352
- // [<K_NOT> { result.setNot(true); } ]
2353
2333
<K_EXISTS> rightExpression=SimpleExpression()
2354
2334
{
2355
2335
result.setRightExpression(rightExpression);
0 commit comments