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

Skip to content

Commit 6468211

Browse files
committed
tables and databases names on MSQLDB are capitalized
1 parent 2ca5df2 commit 6468211

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

plugins/generic/databases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def getTables(self, bruteForce=None):
205205
if conf.db == CURRENT_DB:
206206
conf.db = self.getCurrentDb()
207207

208-
if conf.db and Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.DB2):
208+
if conf.db and Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.DB2, DBMS.HSQLDB):
209209
conf.db = conf.db.upper()
210210

211211
if conf.db:
@@ -379,7 +379,7 @@ def getColumns(self, onlyColNames=False, colTuple=None, bruteForce=None):
379379
conf.db = self.getCurrentDb()
380380

381381
elif conf.db is not None:
382-
if Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.DB2):
382+
if Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.DB2, DBMS.HSQLDB):
383383
conf.db = conf.db.upper()
384384

385385
if ',' in conf.db:

plugins/generic/entries.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def dumpTable(self, foundData=None):
6464
conf.db = self.getCurrentDb()
6565

6666
elif conf.db is not None:
67-
if Backend.isDbms(DBMS.ORACLE):
67+
if Backend.isDbms(DBMS.ORACLE, DBMS.DB2, DBMS.HSQLDB):
6868
conf.db = conf.db.upper()
6969

7070
if ',' in conf.db:
@@ -75,7 +75,7 @@ def dumpTable(self, foundData=None):
7575
conf.db = safeSQLIdentificatorNaming(conf.db)
7676

7777
if conf.tbl:
78-
if Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.DB2):
78+
if Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.DB2, DBMS.HSQLDB):
7979
conf.tbl = conf.tbl.upper()
8080

8181
tblList = conf.tbl.split(",")

0 commit comments

Comments
 (0)