From 67df6d03afa0cfa24a1079de37e50ce24624f500 Mon Sep 17 00:00:00 2001 From: mposolda Date: Thu, 8 Aug 2019 08:58:08 +0200 Subject: [PATCH] KEYCLOAK-10449 KEYCLOAK-10550 Fix manual DB migration test with MSSQL --- .../src/main/java/org/keycloak/testsuite/util/SqlUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/util/SqlUtils.java b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/util/SqlUtils.java index cfc4a1c313..3f007f1143 100644 --- a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/util/SqlUtils.java +++ b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/util/SqlUtils.java @@ -67,9 +67,9 @@ public class SqlUtils { executer.setUserid(dbUsername); executer.setUrl(dbUrl); - if (dbUrl.contains("mssql") || jdbcDriverClass.contains("mssql")) { + if (dbUrl.contains("mssql") || jdbcDriverClass.contains("mssql") || jdbcDriverClass.contains("sqlserver")) { log.info("Using alternative delimiter due the MSSQL"); - executer.setDelimiter("go"); + executer.setDelimiter("GO"); SQLExec.DelimiterType dt = new SQLExec.DelimiterType(); dt.setValue(SQLExec.DelimiterType.ROW); executer.setDelimiterType(dt);