From e19b097ab55ff66ba30194d38fec00cd0d10bcdc Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 24 Sep 2015 11:49:05 +0200 Subject: [PATCH] Bug fix (--columns has been broken for last couple of days) --- plugins/generic/databases.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/generic/databases.py b/plugins/generic/databases.py index 455403cc4..dba018808 100644 --- a/plugins/generic/databases.py +++ b/plugins/generic/databases.py @@ -664,12 +664,12 @@ class Databases: columns[safeSQLIdentificatorNaming(value)] = None index += 1 - if not columns: - errMsg = "unable to retrieve the %scolumns " % ("number of " if not Backend.isDbms(DBMS.MSSQL) else "") - errMsg += "for table '%s' " % unsafeSQLIdentificatorNaming(tbl) - errMsg += "in database '%s'" % unsafeSQLIdentificatorNaming(conf.db) - logger.error(errMsg) - continue + if not columns: + errMsg = "unable to retrieve the %scolumns " % ("number of " if not Backend.isDbms(DBMS.MSSQL) else "") + errMsg += "for table '%s' " % unsafeSQLIdentificatorNaming(tbl) + errMsg += "in database '%s'" % unsafeSQLIdentificatorNaming(conf.db) + logger.error(errMsg) + continue for index in getLimitRange(count): if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.PGSQL):