File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
main/jjtree/net/sf/jsqlparser/parser
test/java/net/sf/jsqlparser/statement/select Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -1326,7 +1326,7 @@ String RelObjectNameWithoutValue() :
13261326 | tk=<K_TABLE> | tk=<K_DATETIMELITERAL> | tk=<K_COMMIT> | tk=<K_PRECISION>
13271327 | tk=<K_INSERT> | tk=<K_INDEX> | tk=<K_PRIMARY> | tk=<K_ENABLE>
13281328 | tk=<K_UNSIGNED>
1329- | tk=<K_TEMP> | tk=<K_TEMPORARY> | tk=<K_TYPE> | tk=<K_ISNULL>
1329+ | tk=<K_TEMP> | tk=<K_TEMPORARY> | tk=<K_TO> | tk=< K_TYPE> | tk=<K_ISNULL>
13301330 | tk=<K_ZONE> | tk=<K_COLUMNS> | tk=<K_DESCRIBE> | tk=<K_FN> | tk=<K_PATH>
13311331 | tk=<K_DATE_LITERAL> | tk=<K_NEXTVAL> | tk=<K_TRUE> | tk=<K_FALSE> | tk=<K_DUPLICATE>
13321332 | tk=<K_READ> | tk=<K_SCHEMA> | tk=<K_SIZE> | tk=<K_SESSION>
Original file line number Diff line number Diff line change @@ -4311,4 +4311,14 @@ public void testKeyWordExceptIssue1055() throws JSQLParserException {
43114311 public void testKeyWordExceptIssue1055_2 () throws JSQLParserException {
43124312 assertSqlCanBeParsedAndDeparsed ("SELECT * FROM mytable WHERE A.end_time > now() AND A.end_time <= date_add(now(), INTERVAL ? DAY)" );
43134313 }
4314+
4315+ @ Test
4316+ public void testIssue1062 () throws JSQLParserException {
4317+ assertSqlCanBeParsedAndDeparsed ("SELECT * FROM mytable WHERE temperature.timestamp <= @to AND temperature.timestamp >= @from" );
4318+ }
4319+
4320+ @ Test
4321+ public void testIssue1062_2 () throws JSQLParserException {
4322+ assertSqlCanBeParsedAndDeparsed ("SELECT * FROM mytable WHERE temperature.timestamp <= @until AND temperature.timestamp >= @from" );
4323+ }
43144324}
You can’t perform that action at this time.
0 commit comments