SQL Server Driver is now on Maven Central

This commit is contained in:
Vlad Mihalcea 2016-11-18 17:39:14 +02:00
parent cc1730fb01
commit 4e5648dc8a
3 changed files with 7 additions and 10 deletions

View File

@ -163,18 +163,14 @@ subprojects { subProject ->
testRuntime( libraries.postgresql ) testRuntime( libraries.postgresql )
testRuntime( libraries.mysql ) testRuntime( libraries.mysql )
testRuntime( libraries.mariadb ) testRuntime( libraries.mariadb )
testRuntime( libraries.mssql )
testRuntime( libraries.informix ) testRuntime( libraries.informix )
if (db.equalsIgnoreCase("oracle")) { if (db.equalsIgnoreCase("oracle")) {
dependencies { dependencies {
testRuntime( libraries.oracle ) testRuntime( libraries.oracle )
} }
} }
if (db.equalsIgnoreCase("mssql")) {
dependencies {
testRuntime( libraries.mssql )
}
}
// 6.6 gave me some NPE problems from within checkstyle... // 6.6 gave me some NPE problems from within checkstyle...
checkstyle 'com.puppycrawl.tools:checkstyle:6.5' checkstyle 'com.puppycrawl.tools:checkstyle:6.5'
} }

View File

@ -135,7 +135,7 @@ public class SQLServerStoredProcedureTest extends BaseEntityManagerFunctionalTes
"AS " + "AS " +
"BEGIN " + "BEGIN " +
" SELECT @phoneCount = COUNT(*) " + " SELECT @phoneCount = COUNT(*) " +
" FROM phone " + " FROM Phone " +
" WHERE person_id = @personId " + " WHERE person_id = @personId " +
"END" "END"
); );
@ -147,7 +147,7 @@ public class SQLServerStoredProcedureTest extends BaseEntityManagerFunctionalTes
"BEGIN " + "BEGIN " +
" DECLARE @phoneCount int; " + " DECLARE @phoneCount int; " +
" SELECT @phoneCount = COUNT(*) " + " SELECT @phoneCount = COUNT(*) " +
" FROM phone " + " FROM Phone " +
" WHERE person_id = @personId; " + " WHERE person_id = @personId; " +
" RETURN(@phoneCount); " + " RETURN(@phoneCount); " +
"END" "END"
@ -162,7 +162,7 @@ public class SQLServerStoredProcedureTest extends BaseEntityManagerFunctionalTes
" SET @phones = CURSOR " + " SET @phones = CURSOR " +
" FORWARD_ONLY STATIC FOR " + " FORWARD_ONLY STATIC FOR " +
" SELECT * " + " SELECT * " +
" FROM phone " + " FROM Phone " +
" WHERE person_id = @personId; " + " WHERE person_id = @personId; " +
" OPEN @phones;" " OPEN @phones;"
); );

View File

@ -98,7 +98,8 @@ ext {
mysql: 'mysql:mysql-connector-java:5.1.38', mysql: 'mysql:mysql-connector-java:5.1.38',
mariadb: 'org.mariadb.jdbc:mariadb-java-client:1.1.7', mariadb: 'org.mariadb.jdbc:mariadb-java-client:1.1.7',
oracle: 'com.oracle.ojdbc:ojdbc7:12.1.0.2.0', oracle: 'com.oracle.ojdbc:ojdbc7:12.1.0.2.0',
mssql: 'com.microsoft.sqlserver:sqljdbc4:4.0', mssql: 'com.microsoft.sqlserver:mssql-jdbc:6.1.0.jre8',
informix: 'com.ibm.informix:jdbc:4.10.7.20160517', informix: 'com.ibm.informix:jdbc:4.10.7.20160517',
jboss_jta: "org.jboss.jbossts:jbossjta:4.16.4.Final", jboss_jta: "org.jboss.jbossts:jbossjta:4.16.4.Final",
xapool: "com.experlog:xapool:1.5.0", xapool: "com.experlog:xapool:1.5.0",