File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
src/test/java/net/sf/jsqlparser/statement/select Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -2757,6 +2757,16 @@ public void testSelectOracleColl() throws JSQLParserException {
2757
2757
public void testSelectInnerWith () throws JSQLParserException {
2758
2758
assertSqlCanBeParsedAndDeparsed ("SELECT * FROM (WITH actor AS (SELECT 'a' aid FROM DUAL) SELECT aid FROM actor)" );
2759
2759
}
2760
+
2761
+ @ Test
2762
+ public void testSelectInnerWithAndUnionIssue1084 () throws JSQLParserException {
2763
+ assertSqlCanBeParsedAndDeparsed ("WITH actor AS (SELECT 'b' aid FROM DUAL) SELECT aid FROM actor UNION WITH actor2 AS (SELECT 'a' aid FROM DUAL) SELECT aid FROM actor2" );
2764
+ }
2765
+
2766
+ @ Test
2767
+ public void testSelectInnerWithAndUnionIssue1084_2 () throws JSQLParserException {
2768
+ assertSqlCanBeParsedAndDeparsed ("WITH actor AS (SELECT 'b' aid FROM DUAL) SELECT aid FROM actor UNION SELECT aid FROM actor2" );
2769
+ }
2760
2770
2761
2771
@ Test
2762
2772
public void testSelectWithinGroup () throws JSQLParserException {
@@ -4361,4 +4371,9 @@ public void testExistsKeywordIssue1076_1() throws JSQLParserException {
4361
4371
public void testFormatKeywordIssue1078 () throws JSQLParserException {
4362
4372
assertSqlCanBeParsedAndDeparsed ("SELECT FORMAT(date, 'yyyy-MM') AS year_month FROM mine_table" );
4363
4373
}
4374
+
4375
+ @ Test
4376
+ public void testConditionalParametersForFunctions () throws JSQLParserException {
4377
+ assertSqlCanBeParsedAndDeparsed ("SELECT myFunc(SELECT mycol FROM mytable)" );
4378
+ }
4364
4379
}
You can’t perform that action at this time.
0 commit comments