minor update

This commit is contained in:
Miroslav Stampar 2011-02-19 09:40:41 +00:00
parent 72fc0a0565
commit de7ca5a27c

View File

@ -1130,7 +1130,6 @@ class Enumeration:
validColumnList = False validColumnList = False
validPivotValue = False validPivotValue = False
if len(colList) > 1:
for column in colList: for column in colList:
infoMsg = "fetching number of distinct " infoMsg = "fetching number of distinct "
infoMsg += "values for column '%s'" % column infoMsg += "values for column '%s'" % column
@ -1167,7 +1166,7 @@ class Enumeration:
pivotValue = " " pivotValue = " "
breakRetrieval = False breakRetrieval = False
for i in xrange(count): for i in xrange(int(count)):
if breakRetrieval: if breakRetrieval:
break break
@ -1376,7 +1375,7 @@ class Enumeration:
elif DBMS.SYBASE: elif DBMS.SYBASE:
table = "%s..%s" % (conf.db, conf.tbl) table = "%s..%s" % (conf.db, conf.tbl)
entries, lengths = self.__pivotDumpTable(rootQuery.blind, table, colList, int(count), blind=True) entries, lengths = self.__pivotDumpTable(rootQuery.blind, table, colList, count, blind=True)
else: else:
if Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.MSSQL, DBMS.SYBASE): if Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.MSSQL, DBMS.SYBASE):