Skip to content
Permalink
Browse files

[db_manager] Fix DBConnector.getSchemaTableName

2.18 Backport
Ref #15910
  • Loading branch information
arnaud-morvan authored and strk committed Apr 28, 2017
1 parent c36727d commit 4f4d63a61ec613bcc37ed961a219da3f9243a79d
Showing with 3 additions and 1 deletion.
  1. +3 −1 python/plugins/db_manager/db_plugins/connector.py
@@ -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])

0 comments on commit 4f4d63a

Please sign in to comment.
You can’t perform that action at this time.