Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/test/java/net/sf/jsqlparser/test/select/SelectTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2128,4 +2128,24 @@ public void testBooleanValue2() throws JSQLParserException {
public void testNotWithoutParenthesisIssue234() throws JSQLParserException {
assertSqlCanBeParsedAndDeparsed("SELECT count(*) FROM \"Persons\" WHERE NOT \"F_NAME\" = 'John'");
}

public void testWhere_1() throws JSQLParserException {
assertSqlCanBeParsedAndDeparsed("SELECT count(*) FROM mytable where 1");
}

public void testWhere_0() throws JSQLParserException {
assertSqlCanBeParsedAndDeparsed("SELECT count(*) FROM mytable where 0");
}

public void testWhere_true() throws JSQLParserException {
assertSqlCanBeParsedAndDeparsed("SELECT count(*) FROM mytable where true");
}

public void testWhere_false() throws JSQLParserException {
assertSqlCanBeParsedAndDeparsed("SELECT count(*) FROM mytable where false");
}

public void testWhere_keyword_field_name() throws JSQLParserException {
assertSqlCanBeParsedAndDeparsed("SELECT l.end from lessons l");
}
}