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():
15811581{
15821582 (LOOKAHEAD(SQLCondition()) result=SQLCondition()
15831583 | LOOKAHEAD(RegularCondition()) result=RegularCondition()
1584- | result=Function()
1584+ | LOOKAHEAD(Function()) result=Function()
1585+ | result=Column()
15851586 )
15861587
15871588 { return result; }
Original file line number Diff line number Diff line change @@ -2111,4 +2111,12 @@ public void testIssue215_possibleEndlessParsing7() throws JSQLParserException {
21112111 public void testIssue230_cascadeKeyword () throws JSQLParserException {
21122112 assertSqlCanBeParsedAndDeparsed ("SELECT t.cascade AS cas FROM t" );
21132113 }
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+ }
21142122}
You can’t perform that action at this time.
0 commit comments