Adding switch '--unsafe-naming'

This commit is contained in:
Miroslav Stampar
2024-02-10 15:24:28 +01:00
parent 9c1879b08d
commit 76a2e658b5
5 changed files with 11 additions and 1 deletions

View File

@@ -4273,6 +4273,9 @@ def safeSQLIdentificatorNaming(name, isTable=False):
retVal = name
if conf.unsafeNaming:
return retVal
if isinstance(name, six.string_types):
retVal = getUnicode(name)
_ = isTable and Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.SYBASE)