mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-27 04:05:58 +00:00
Minor patching for binary fields and casting
This commit is contained in:
parent
40ccd801dc
commit
567e051215
5 changed files with 52 additions and 15 deletions
|
|
@ -68,9 +68,10 @@ class TestNullAndCastField(unittest.TestCase):
|
|||
|
||||
CASES = {
|
||||
DBMS.MYSQL: "IFNULL(CAST(col AS NCHAR),' ')",
|
||||
DBMS.MSSQL: "ISNULL(CAST(col AS NVARCHAR(4000)),' ')",
|
||||
# MSSQL/PGSQL casts are unbounded (NVARCHAR(MAX)/TEXT) so long values are not silently truncated
|
||||
DBMS.MSSQL: "ISNULL(CAST(col AS NVARCHAR(MAX)),' ')",
|
||||
DBMS.SYBASE: "ISNULL(CONVERT(VARCHAR(4000),col),' ')",
|
||||
DBMS.PGSQL: "COALESCE(CAST(col AS VARCHAR(10000))::text,' ')",
|
||||
DBMS.PGSQL: "COALESCE(CAST(col AS TEXT)::text,' ')",
|
||||
DBMS.ORACLE: "NVL(CAST(col AS VARCHAR(4000)),' ')",
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue