X Tutup
Skip to content

Commit e19b097

Browse files
committed
Bug fix (--columns has been broken for last couple of days)
1 parent 12b9939 commit e19b097

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

plugins/generic/databases.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -664,12 +664,12 @@ def getColumns(self, onlyColNames=False, colTuple=None, bruteForce=None, dumpMod
664664
columns[safeSQLIdentificatorNaming(value)] = None
665665
index += 1
666666

667-
if not columns:
668-
errMsg = "unable to retrieve the %scolumns " % ("number of " if not Backend.isDbms(DBMS.MSSQL) else "")
669-
errMsg += "for table '%s' " % unsafeSQLIdentificatorNaming(tbl)
670-
errMsg += "in database '%s'" % unsafeSQLIdentificatorNaming(conf.db)
671-
logger.error(errMsg)
672-
continue
667+
if not columns:
668+
errMsg = "unable to retrieve the %scolumns " % ("number of " if not Backend.isDbms(DBMS.MSSQL) else "")
669+
errMsg += "for table '%s' " % unsafeSQLIdentificatorNaming(tbl)
670+
errMsg += "in database '%s'" % unsafeSQLIdentificatorNaming(conf.db)
671+
logger.error(errMsg)
672+
continue
673673

674674
for index in getLimitRange(count):
675675
if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.PGSQL):

0 commit comments

Comments
 (0)
X Tutup