mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-07-11 19:13:12 +00:00
Update for an Issue #24
This commit is contained in:
parent
614f4657f1
commit
55a552ddc4
3 changed files with 23 additions and 22 deletions
|
|
@ -444,19 +444,9 @@ class Agent(object):
|
|||
|
||||
return fieldsSelectFrom, fieldsSelect, fieldsNoSelect, fieldsSelectTop, fieldsSelectCase, fieldsToCastList, fieldsToCastStr, fieldsExists
|
||||
|
||||
def simpleConcatQuery(self, query1, query2):
|
||||
concatenatedQuery = ""
|
||||
|
||||
if Backend.isDbms(DBMS.MYSQL):
|
||||
concatenatedQuery = "CONCAT(%s,%s)" % (query1, query2)
|
||||
|
||||
elif Backend.getIdentifiedDbms() in (DBMS.PGSQL, DBMS.ORACLE, DBMS.SQLITE, DBMS.DB2):
|
||||
concatenatedQuery = "%s||%s" % (query1, query2)
|
||||
|
||||
elif Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.SYBASE):
|
||||
concatenatedQuery = "%s+%s" % (query1, query2)
|
||||
|
||||
return concatenatedQuery
|
||||
def simpleConcatenate(self, first, second):
|
||||
rootQuery = queries[Backend.getIdentifiedDbms()]
|
||||
return rootQuery.concatenate.query % (first, second)
|
||||
|
||||
def concatQuery(self, query, unpack=True):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue