Skip to content

Commit

Permalink
add support for default-catalog-name in SQL Server (DAT-10484) (#2940)
Browse files Browse the repository at this point in the history
Adds support for --default-catalog-name when using SQL Server.
  • Loading branch information
StevenMassaro committed Jun 17, 2022
1 parent 5bdb738 commit 1e231ee
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public static void initializeDatabase(String defaultCatalogName, String defaultS
schema = defaultSchemaName;
}
executor.execute(new RawSqlStatement("USE " + schema));
} else if (database instanceof MSSQLDatabase) {
executor.execute(new RawSqlStatement("USE " + defaultCatalogName));
}

}
Expand Down

0 comments on commit 1e231ee

Please sign in to comment.