Skip to content

Commit 4f4d63a

Browse files
arnaud-morvanstrk
authored andcommitted
[db_manager] Fix DBConnector.getSchemaTableName
2.18 Backport Ref #15910
1 parent c36727d commit 4f4d63a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/plugins/db_manager/db_plugins/connector.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,9 @@ def quoteString(self, txt):
211211
def getSchemaTableName(self, table):
212212
if not hasattr(table, '__iter__'):
213213
return (None, table)
214-
elif len(table) < 2:
214+
if isinstance(table, str):
215+
table = table.split('.')
216+
if len(table) < 2:
215217
return (None, table[0])
216218
else:
217219
return (table[0], table[1])

0 commit comments

Comments
 (0)