[db_manager] Fix DBConnector.getSchemaTableName

Fix #15910
This commit is contained in:
arnaud.morvan@camptocamp.com 2017-04-28 09:51:54 +02:00
parent 09d126325c
commit cfe8dfedae

View File

@ -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])