Fix for an Issue #262

This commit is contained in:
Miroslav Stampar 2012-11-27 10:08:22 +01:00
parent ed40f18796
commit bd33128085

View File

@ -2759,7 +2759,7 @@ def safeSQLIdentificatorNaming(name, isTable=False):
elif Backend.getIdentifiedDbms() in (DBMS.MSSQL,):
retVal = "[%s]" % retVal.strip("[]")
if _ and DEFAULT_MSSQL_SCHEMA not in retVal:
if _ and DEFAULT_MSSQL_SCHEMA not in retVal and '.' not in re.sub(r"\[[^]]+\]", "", retVal):
retVal = "%s.%s" % (DEFAULT_MSSQL_SCHEMA, retVal)
return retVal