diff --git a/build.gradle b/build.gradle index 2a9a41cb1c856f5607f489eed11c44b3a1e79abf..46c6c2c477849e315f5c9bef35a9a6416fe14f7e 100644 --- a/build.gradle +++ b/build.gradle @@ -12,13 +12,14 @@ dependencies { compile 'javax.servlet:javax.servlet-api:3.0.1' compile 'postgresql:postgresql:9.1-901.jdbc4' - testCompile 'simple-jndi:simple-jndi:0.11.4.1' testCompile 'junit:junit:4.12' - testCompile 'org.xerial:sqlite-jdbc:3.16.1' testCompile 'com.h2database:h2:1.4.193' - testCompile 'com.vividsolutions:jts-core:1.14.0' - testCompile 'org.locationtech.spatial4j:spatial4j:0.6' testCompile fileTree(dir: 'lib', include: 'astroh2-0.3.jar') + + testRuntime 'simple-jndi:simple-jndi:0.11.4.1' + testRuntime 'com.vividsolutions:jts-core:1.14.0' + testRuntime 'org.locationtech.spatial4j:spatial4j:0.6' + testRuntime 'org.xerial:sqlite-jdbc:3.16.1' } compileJava { diff --git a/src/adql/translator/SQLServerTranslator.java b/src/adql/translator/SQLServerTranslator.java index b147bee54053ac18631feaba821b519f2720f5fe..e721c557eabfd134e1cdf2dc4f186fb33de38a94 100644 --- a/src/adql/translator/SQLServerTranslator.java +++ b/src/adql/translator/SQLServerTranslator.java @@ -252,7 +252,7 @@ public class SQLServerTranslator extends JDBCTranslator { } } // DEFAULT CASE: - else + else if (join.getJoinCondition() != null) sql.append(translate(join.getJoinCondition())); return sql.toString(); diff --git a/test/adql/db/TestFunctionDef.java b/test/adql/db/TestFunctionDef.java index 9f63f78774f631bf1406d4f3065540b0fd818ce6..2a31114ae013034b8f6278242b39016c9e044077 100644 --- a/test/adql/db/TestFunctionDef.java +++ b/test/adql/db/TestFunctionDef.java @@ -282,7 +282,7 @@ public class TestFunctionDef { // TEST :: With a function having the same name, but a different return type: [EQUAL} assertEquals(0, def1.compareTo(new FunctionDef("fct1", new DBType(DBDatatype.INTEGER)))); - // TEST :: With a function having the same name, but 2 parameters: [LESS (4 characters: ø against 1010)] + // TEST :: With a function having the same name, but 2 parameters: [LESS (4 characters: 0 against 1010)] assertEquals(-6, def1.compareTo(new FunctionDef("fct1", new DBType(DBDatatype.INTEGER), new FunctionParam[]{new FunctionParam("foo", new DBType(DBDatatype.INTEGER)),new FunctionParam("foo", new DBType(DBDatatype.INTEGER))}))); // DEFINITION 1 :: fct1(foo1 CHAR(12), foo2 DOUBLE) -> VARCHAR diff --git a/test/tap/metadata/MetadataExtractionTest.java b/test/tap/metadata/MetadataExtractionTest.java index e92bc58f86bba08298c2843e858a89396cbeae65..44b7c8a5e3c63e2c6d188119ecad42465c27fbb9 100644 --- a/test/tap/metadata/MetadataExtractionTest.java +++ b/test/tap/metadata/MetadataExtractionTest.java @@ -70,7 +70,7 @@ public class MetadataExtractionTest { resultat = statement.executeQuery(requet); }catch(SQLException e){ e.printStackTrace(); - System.out.println("Erreur dans la requête: " + requet); + System.out.println("Error in the request: " + requet); } return resultat;