File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
main/java/net/sf/jsqlparser/statement/select
test/java/net/sf/jsqlparser/statement/select Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ public void setRecursive(boolean recursive) {
89
89
}
90
90
91
91
public SubSelect getSubSelect () {
92
- return subSelect . withUseBrackets ( false ) ;
92
+ return subSelect ;
93
93
}
94
94
95
95
public void setSubSelect (SubSelect subSelect ) {
Original file line number Diff line number Diff line change @@ -4847,7 +4847,7 @@ public void testReservedKeywordsIssue1352() throws JSQLParserException {
4847
4847
assertSqlCanBeParsedAndDeparsed (
4848
4848
"SELECT fulltext from fulltext.fulltext" , true );
4849
4849
}
4850
-
4850
+
4851
4851
@ Test
4852
4852
public void testTableSpaceKeyword () throws JSQLParserException {
4853
4853
// without extra brackets
@@ -4883,4 +4883,10 @@ public void testTableSpecificAllColumnsIssue1346() throws JSQLParserException {
4883
4883
assertSqlCanBeParsedAndDeparsed (
4884
4884
"SELECT count(a.*) from a" , true );
4885
4885
}
4886
+
4887
+ @ Test
4888
+ public void testCanCallSubSelectOnWithItemEvenIfNotSetIssue1369 () {
4889
+ WithItem item = new WithItem ();
4890
+ assertThat (item .getSubSelect ()).isNull ();
4891
+ }
4886
4892
}
You can’t perform that action at this time.
0 commit comments