minor update

This commit is contained in:
Miroslav Stampar 2010-12-25 11:16:35 +00:00
parent c5c4aae3d5
commit fb099615e2
2 changed files with 10 additions and 1 deletions

View File

@ -1211,6 +1211,15 @@ class Enumeration:
indexRange = getRange(count, dump=True, plusOne=plusOne)
if kb.dbms == DBMS.ACCESS:
for column in colList:
# It would be good to have a numeric column as a pivot
result = inject.checkBooleanExpression("%s" % safeStringFormat("EXISTS(SELECT %s FROM %s WHERE %s>0)", (column, conf.tbl, column)))
if result:
colList.remove(column)
colList.insert(0, column)
break
value = " "
for column in colList:
for index in indexRange:

View File

@ -359,7 +359,7 @@
<tables/>
<dump_table>
<inband query="SELECT %s FROM %s"/>
<blind query="SELECT MIN(%s) FROM %s WHERE CVAR(%s) > '%s'" query2="SELECT TOP 1 %s FROM %s WHERE %s LIKE '%s'" count="SELECT COUNT(*) FROM %s"/>
<blind query="SELECT MIN(%s) FROM %s WHERE CVAR(%s) > '%s'" query2="SELECT TOP 1 %s FROM %s WHERE CVAR(%s) LIKE '%s'" count="SELECT COUNT(*) FROM %s"/>
</dump_table>
</dbms>