Commit f10b52e
Fix[2288] - Support parenthesed expressions within Between (#2289)
Supports the SQL of the form:
```sql
SELECT * FROM tbl WHERE
day BETWEEN
CAST(CAST((NOW() + INTERVAL '-30 day') AS date) AS timestamptz)
AND
CAST(CAST((NOW() + INTERVAL '-1 day') AS date) AS timestamptz);
```
Co-authored-by: David Hayes <[email protected]>1 parent 2ff7342 commit f10b52e
File tree
2 files changed
+11
-5
lines changed- src
- main/jjtree/net/sf/jsqlparser/parser
- test/resources
2 files changed
+11
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5746 | 5746 | | |
5747 | 5747 | | |
5748 | 5748 | | |
5749 | | - | |
| 5749 | + | |
5750 | 5750 | | |
5751 | | - | |
| 5751 | + | |
5752 | 5752 | | |
5753 | 5753 | | |
5754 | 5754 | | |
5755 | 5755 | | |
5756 | 5756 | | |
5757 | 5757 | | |
5758 | | - | |
| 5758 | + | |
5759 | 5759 | | |
5760 | | - | |
| 5760 | + | |
5761 | 5761 | | |
5762 | 5762 | | |
5763 | 5763 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
0 commit comments