Skip to content

Commit 1264a20

Browse files
committed
included some distinct check
1 parent d53f8a7 commit 1264a20

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

pom.xml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,7 @@
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>
@@ -205,8 +199,7 @@
205199
<goals>
206200
<goal>jjtree</goal>
207201
</goals>
208-
</execution>
209-
202+
</execution>
210203
</executions>
211204
<dependencies>
212205
<dependency>

src/test/java/net/sf/jsqlparser/statement/select/SelectTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)