Bug fix (--columns has been broken for last couple of days)

This commit is contained in:
Miroslav Stampar 2015-09-24 11:49:05 +02:00
parent 12b9939baa
commit e19b097ab5

View File

@ -664,12 +664,12 @@ class Databases:
columns[safeSQLIdentificatorNaming(value)] = None columns[safeSQLIdentificatorNaming(value)] = None
index += 1 index += 1
if not columns: if not columns:
errMsg = "unable to retrieve the %scolumns " % ("number of " if not Backend.isDbms(DBMS.MSSQL) else "") errMsg = "unable to retrieve the %scolumns " % ("number of " if not Backend.isDbms(DBMS.MSSQL) else "")
errMsg += "for table '%s' " % unsafeSQLIdentificatorNaming(tbl) errMsg += "for table '%s' " % unsafeSQLIdentificatorNaming(tbl)
errMsg += "in database '%s'" % unsafeSQLIdentificatorNaming(conf.db) errMsg += "in database '%s'" % unsafeSQLIdentificatorNaming(conf.db)
logger.error(errMsg) logger.error(errMsg)
continue continue
for index in getLimitRange(count): for index in getLimitRange(count):
if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.PGSQL): if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.PGSQL):