We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0faba0e commit 330a78cCopy full SHA for 330a78c
src/firebolt/model/V2/engine.py
@@ -35,7 +35,8 @@ def check_attached_to_database(func: Callable) -> Callable:
35
36
@functools.wraps(func)
37
def inner(self: Engine, *args: Any, **kwargs: Any) -> Any:
38
- if self.database is None:
+ # this check is only relevant for account version 1
39
+ if self._service.client._account_version != 2 and self.database is None:
40
raise NoAttachedDatabaseError(method_name=func.__name__)
41
return func(self, *args, **kwargs)
42
0 commit comments