Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bd33128

Browse files
committed
Fix for an Issue #262
1 parent ed40f18 commit bd33128

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2759,7 +2759,7 @@ def safeSQLIdentificatorNaming(name, isTable=False):
27592759
elif Backend.getIdentifiedDbms() in (DBMS.MSSQL,):
27602760
retVal = "[%s]" % retVal.strip("[]")
27612761

2762-
if _ and DEFAULT_MSSQL_SCHEMA not in retVal:
2762+
if _ and DEFAULT_MSSQL_SCHEMA not in retVal and '.' not in re.sub(r"\[[^]]+\]", "", retVal):
27632763
retVal = "%s.%s" % (DEFAULT_MSSQL_SCHEMA, retVal)
27642764

27652765
return retVal

0 commit comments

Comments
 (0)