Skip to content

Commit cfe8dfe

Browse files
committedApr 28, 2017
[db_manager] Fix DBConnector.getSchemaTableName
Fix #15910
1 parent 09d1263 commit cfe8dfe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎python/plugins/db_manager/db_plugins/connector.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,9 @@ def quoteString(self, txt):
213213
def getSchemaTableName(self, table):
214214
if not hasattr(table, '__iter__') and not isinstance(table, str):
215215
return (None, table)
216-
elif len(table) < 2:
216+
if isinstance(table, str):
217+
table = table.split('.')
218+
if len(table) < 2:
217219
return (None, table[0])
218220
else:
219221
return (table[0], table[1])

0 commit comments

Comments
 (0)