mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
Major bugfix to avoid "IFNULL and CAST" on CASE
This commit is contained in:
parent
96db179ffe
commit
c25b49e80e
|
@ -184,8 +184,11 @@ class Agent:
|
|||
@rtype: C{str}
|
||||
"""
|
||||
|
||||
nulledCastedField = queries[kb.dbms].cast % field
|
||||
nulledCastedField = queries[kb.dbms].isnull % nulledCastedField
|
||||
if field.startswith("(CASE"):
|
||||
nulledCastedField = field
|
||||
else:
|
||||
nulledCastedField = queries[kb.dbms].cast % field
|
||||
nulledCastedField = queries[kb.dbms].isnull % nulledCastedField
|
||||
|
||||
return nulledCastedField
|
||||
|
||||
|
|
|
@ -83,7 +83,8 @@ SQL_STATEMENTS = {
|
|||
" limit ",
|
||||
" offset ",
|
||||
" union all ",
|
||||
" rownum as ", ),
|
||||
" rownum as ",
|
||||
"(case ", ),
|
||||
|
||||
"SQL data definition": (
|
||||
"create ",
|
||||
|
|
Loading…
Reference in New Issue
Block a user