File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
main/jjtree/net/sf/jsqlparser/parser
test/java/net/sf/jsqlparser/test/select Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -1581,7 +1581,8 @@ Expression Condition():
1581
1581
{
1582
1582
(LOOKAHEAD(SQLCondition()) result=SQLCondition()
1583
1583
| LOOKAHEAD(RegularCondition()) result=RegularCondition()
1584
- | result=Function()
1584
+ | LOOKAHEAD(Function()) result=Function()
1585
+ | result=Column()
1585
1586
)
1586
1587
1587
1588
{ return result; }
Original file line number Diff line number Diff line change @@ -2111,4 +2111,12 @@ public void testIssue215_possibleEndlessParsing7() throws JSQLParserException {
2111
2111
public void testIssue230_cascadeKeyword () throws JSQLParserException {
2112
2112
assertSqlCanBeParsedAndDeparsed ("SELECT t.cascade AS cas FROM t" );
2113
2113
}
2114
+
2115
+ public void testBooleanValue () throws JSQLParserException {
2116
+ assertSqlCanBeParsedAndDeparsed ("SELECT col FROM t WHERE a" );
2117
+ }
2118
+
2119
+ public void testBooleanValue2 () throws JSQLParserException {
2120
+ assertSqlCanBeParsedAndDeparsed ("SELECT col FROM t WHERE 3<5 and a" );
2121
+ }
2114
2122
}
You can’t perform that action at this time.
0 commit comments