You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# note: we call close() on the connection pool instead of self.close() because self.close() calls close_all()
150
173
# on the connection pool but we just want to close the connection for this thread
151
174
self._connection_pool.close()
152
-
self._target_catalog=catalog_name# new connections will use this catalog
175
+
self._target_catalog=target_catalog
153
176
154
177
catalog_after_switch=self.get_current_catalog()
155
178
156
-
ifcatalog_after_switch!=catalog_name:
179
+
ifcatalog_after_switch!=target_catalog:
157
180
# We need to raise an error if the catalog switch failed to prevent the operation that needed the catalog switch from being run against the wrong catalog
158
181
raiseSQLMeshError(
159
-
f"Unable to switch catalog to {catalog_name}, catalog ended up as {catalog_after_switch}"
182
+
f"Unable to switch catalog to {target_catalog}, catalog ended up as {catalog_after_switch}"
0 commit comments