minor fix for retrieving stuff like "SELECT * FROM testdb..users"

This commit is contained in:
Miroslav Stampar 2011-05-23 19:45:40 +00:00
parent 1067d43f14
commit bfe8e51b7c

View File

@ -1096,6 +1096,9 @@ def expandAsteriskForColumns(expression):
dbTbl = asterisk.group(1) dbTbl = asterisk.group(1)
if dbTbl and ".." in dbTbl:
dbTbl = dbTbl.replace('..', '.dbo.')
if dbTbl and "." in dbTbl: if dbTbl and "." in dbTbl:
conf.db, conf.tbl = dbTbl.split(".", 1) conf.db, conf.tbl = dbTbl.split(".", 1)
else: else: