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() :
1326
1326
| tk=<K_TABLE> | tk=<K_DATETIMELITERAL> | tk=<K_COMMIT> | tk=<K_PRECISION>
1327
1327
| tk=<K_INSERT> | tk=<K_INDEX> | tk=<K_PRIMARY> | tk=<K_ENABLE>
1328
1328
| 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>
1330
1330
| tk=<K_ZONE> | tk=<K_COLUMNS> | tk=<K_DESCRIBE> | tk=<K_FN> | tk=<K_PATH>
1331
1331
| tk=<K_DATE_LITERAL> | tk=<K_NEXTVAL> | tk=<K_TRUE> | tk=<K_FALSE> | tk=<K_DUPLICATE>
1332
1332
| 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 {
4311
4311
public void testKeyWordExceptIssue1055_2 () throws JSQLParserException {
4312
4312
assertSqlCanBeParsedAndDeparsed ("SELECT * FROM mytable WHERE A.end_time > now() AND A.end_time <= date_add(now(), INTERVAL ? DAY)" );
4313
4313
}
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
+ }
4314
4324
}
You can’t perform that action at this time.
0 commit comments