Skip to content

Commit 1b4e995

Browse files
committed
activated new checkstyle plugin only if used java is at least 1.8
1 parent 6ceb406 commit 1b4e995

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@
355355
<property>
356356
<name>!skipCheckSources</name>
357357
</property>
358+
<jdk>[1.8,)</jdk>
358359
</activation>
359360
<build>
360361
<plugins>

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3613,4 +3613,10 @@ public void testGroupingSets3() throws JSQLParserException {
36133613
public void testLongQualifiedNamesIssue763() throws JSQLParserException {
36143614
assertSqlCanBeParsedAndDeparsed("SELECT mongodb.test.test.intField, postgres.test.test.intField, postgres.test.test.datefield FROM mongodb.test.test JOIN postgres.postgres.test.test ON mongodb.test.test.intField = postgres.test.test.intField WHERE mongodb.test.test.intField = 123");
36153615
}
3616+
3617+
@Test
3618+
public void testLongQualifiedNamesIssue763_2() throws JSQLParserException {
3619+
Statement parse = CCJSqlParserUtil.parse(new StringReader("SELECT mongodb.test.test.intField, postgres.test.test.intField, postgres.test.test.datefield FROM mongodb.test.test JOIN postgres.postgres.test.test ON mongodb.test.test.intField = postgres.test.test.intField WHERE mongodb.test.test.intField = 123"));
3620+
System.out.println(parse.toString());
3621+
}
36163622
}

0 commit comments

Comments
 (0)