disable metadata caching after switching database on connection directly
@@ -3082,6 +3082,8 @@ public class SQLServerConnection implements ISQLServerConnection {
checkClosed();
if (catalog != null) {
connectionCommand("use " + Util.escapeSQLId(catalog), "setCatalog");
+ contextIsAlreadyChanged = true;
+ contextChanged = true;
sCatalog = catalog;
}
loggerExternal.exiting(getClassNameLogging(), "setCatalog");
