File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed
src/test/java/net/sf/jsqlparser/statement/select Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 182182 <groupId >org.javacc.plugin</groupId >
183183 <artifactId >javacc-maven-plugin</artifactId >
184184 <version >3.0.3</version >
185-
186- <!--
187- <groupId>org.codehaus.mojo</groupId>
188- <artifactId>javacc-maven-plugin</artifactId>
189- <version>2.6</version>
190- -->
191-
185+
192186 <executions >
193187 <execution >
194188 <id >javacc</id >
205199 <goals >
206200 <goal >jjtree</goal >
207201 </goals >
208- </execution >
209-
202+ </execution >
210203 </executions >
211204 <dependencies >
212205 <dependency >
Original file line number Diff line number Diff line change @@ -993,6 +993,11 @@ public void testDistinctTop2() {
993993 //expected to fail
994994 }
995995 }
996+
997+ @ Test
998+ public void testDistinctWithFollowingBrackets () throws JSQLParserException {
999+ assertSqlCanBeParsedAndDeparsed ("SELECT DISTINCT (phone), name FROM admin_user" );
1000+ }
9961001
9971002 @ Test
9981003 public void testFrom () throws JSQLParserException {
You can’t perform that action at this time.
0 commit comments