minor update

This commit is contained in:
Miroslav Stampar 2011-10-28 13:07:23 +00:00
parent f7be0ca4e2
commit bd7da45546
4 changed files with 8 additions and 4 deletions

View File

@ -85,6 +85,9 @@ class Enumeration(GenericEnumeration):
else: else:
kb.data.cachedTables[db].append(table) kb.data.cachedTables[db].append(table)
for db, tables in kb.data.cachedTables.items():
kb.data.cachedTables[db] = sorted(tables) if tables else tables
return kb.data.cachedTables return kb.data.cachedTables
def getColumns(self, onlyColNames=False): def getColumns(self, onlyColNames=False):

View File

@ -141,8 +141,7 @@ class Enumeration(GenericEnumeration):
raise sqlmapNoneDataException(errMsg) raise sqlmapNoneDataException(errMsg)
else: else:
for db, tables in kb.data.cachedTables.items(): for db, tables in kb.data.cachedTables.items():
if tables: kb.data.cachedTables[db] = sorted(tables) if tables else tables
kb.data.cachedTables[db] = sorted(tables)
return kb.data.cachedTables return kb.data.cachedTables

View File

@ -148,6 +148,9 @@ class Enumeration(GenericEnumeration):
kb.data.cachedTables[db].append(table) kb.data.cachedTables[db].append(table)
break break
for db, tables in kb.data.cachedTables.items():
kb.data.cachedTables[db] = sorted(tables) if tables else tables
return kb.data.cachedTables return kb.data.cachedTables
def getColumns(self, onlyColNames=False): def getColumns(self, onlyColNames=False):

View File

@ -974,8 +974,7 @@ class Enumeration:
raise sqlmapNoneDataException, errMsg raise sqlmapNoneDataException, errMsg
else: else:
for db, tables in kb.data.cachedTables.items(): for db, tables in kb.data.cachedTables.items():
if tables: kb.data.cachedTables[db] = sorted(tables) if tables else tables
kb.data.cachedTables[db] = sorted(tables)
return kb.data.cachedTables return kb.data.cachedTables