mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
parent
09d126325c
commit
cfe8dfedae
@ -213,7 +213,9 @@ class DBConnector(object):
|
||||
def getSchemaTableName(self, table):
|
||||
if not hasattr(table, '__iter__') and not isinstance(table, str):
|
||||
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])
|
||||
|
Loading…
x
Reference in New Issue
Block a user