mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
IFNULL-like mechanism now works on SQLite 2 too
This commit is contained in:
parent
75bf8528d1
commit
832d95984c
2 changed files with 4 additions and 3 deletions
|
|
@ -331,10 +331,11 @@ class Agent(object):
|
|||
rootQuery = queries[Backend.getIdentifiedDbms()]
|
||||
|
||||
if field.startswith("(CASE") or field.startswith("(IIF") or\
|
||||
conf.noCast or Backend.isDbms(DBMS.SQLITE) and not isDBMSVersionAtLeast('3'):
|
||||
conf.noCast:
|
||||
nulledCastedField = field
|
||||
else:
|
||||
nulledCastedField = rootQuery.cast.query % field
|
||||
if not (Backend.isDbms(DBMS.SQLITE) and not isDBMSVersionAtLeast('3')):
|
||||
nulledCastedField = rootQuery.cast.query % field
|
||||
if Backend.getIdentifiedDbms() in (DBMS.ACCESS,):
|
||||
nulledCastedField = rootQuery.isnull.query % (nulledCastedField, nulledCastedField)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue