Skip to content

Commit

Permalink
[db_manager] Fix DBConnector.getSchemaTableName
Browse files Browse the repository at this point in the history
2.18 Backport
Ref #15910
  • Loading branch information
arnaud-morvan authored and strk committed Jun 6, 2017
1 parent c36727d commit 4f4d63a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/plugins/db_manager/db_plugins/connector.py
Expand Up @@ -211,7 +211,9 @@ def quoteString(self, txt):
def getSchemaTableName(self, table):
if not hasattr(table, '__iter__'):
return (None, table)
elif len(table) < 2:
if isinstance(table, str):
table = table.split('.')
if len(table) < 2:
return (None, table[0])
else:
return (table[0], table[1])
Expand Down

0 comments on commit 4f4d63a

Please sign in to comment.