KEYCLOAK-10449 KEYCLOAK-10550 Fix manual DB migration test with MSSQL

This commit is contained in:
mposolda 2019-08-08 08:58:08 +02:00 committed by Marek Posolda
parent 925864530a
commit 67df6d03af

View file

@ -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);