minor update

This commit is contained in:
Miroslav Stampar
2011-12-14 12:59:25 +00:00
parent 1fd1ec22a1
commit 8793fbc9f5
2 changed files with 3 additions and 1 deletions

View File

@@ -2824,6 +2824,8 @@ def safeSQLIdentificatorNaming(name, isTable=False):
retVal = name
if isinstance(name, basestring):
name = getUnicode(name)
if isTable and Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.SYBASE) and '.' not in name:
name = "%s.%s" % (DEFAULT_MSSQL_SCHEMA, name)