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

Skip to content

Commit 9b5f335

Browse files
committed
Oracle is too specific (only column names can be enclosed) - removing it
1 parent bf82506 commit 9b5f335

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

lib/core/common.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2818,8 +2818,6 @@ def safeSQLIdentificatorNaming(name, isTable=False):
28182818
if retVal.upper() in kb.keywords or not re.match(r"\A[A-Za-z0-9_@%s\$]+\Z" % ("." if _ else ""), retVal): # MsSQL is the only DBMS where we automatically prepend schema to table name (dot is normal)
28192819
if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.ACCESS):
28202820
retVal = "`%s`" % retVal.strip("`")
2821-
elif Backend.getIdentifiedDbms() in (DBMS.ORACLE,) and not isTable:
2822-
retVal = "\"%s\"" % retVal.strip("\"")
28232821
elif Backend.getIdentifiedDbms() in (DBMS.PGSQL, DBMS.DB2):
28242822
retVal = "\"%s\"" % retVal.strip("\"")
28252823
elif Backend.getIdentifiedDbms() in (DBMS.MSSQL,):

0 commit comments

Comments
 (0)