We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95ebda5 commit 173a25fCopy full SHA for 173a25f
src/test/java/net/sf/jsqlparser/expression/FunctionTest.java
@@ -119,4 +119,11 @@ void testListAggOnOverflow(String sqlStr) throws Exception {
119
void testTrimFunctions(String sqlStr) throws JSQLParserException {
120
TestUtils.assertSqlCanBeParsedAndDeparsed(sqlStr, true);
121
}
122
+
123
+ @Test
124
+ void TestIntervalParameterIssue2272() throws JSQLParserException {
125
+ String sqlStr =
126
+ "SELECT DATE_SUB('2025-06-19', INTERVAL QUARTER(STR_TO_DATE('20250619', '%Y%m%d')) - 1 QUARTER) from dual";
127
+ TestUtils.assertSqlCanBeParsedAndDeparsed(sqlStr, true);
128
+ }
129
0 commit comments