Skip to content

Commit 6764701

Browse files
committed
fix database selection
1 parent 07724f4 commit 6764701

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cid/helpers/cur.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def find_cur(self, database: str=None, table: str=None):
260260
res, message = self.table_is_cur(table=metadata, return_reason=True)
261261
if not res:
262262
raise CidCritical(f'Provided cur-table-name "{table}" in database "{cur_database or self.athena.DatabaseName}" is not cur. {message}')
263-
return cur_database, metadata
263+
return (cur_database or self.athena.DatabaseName), metadata
264264

265265
all_cur_tables = []
266266
filter_names = None

0 commit comments

Comments
 (0)