mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-27 04:05:58 +00:00
ms access connector update
This commit is contained in:
parent
a02ec29c15
commit
88d74a00c1
2 changed files with 11 additions and 5 deletions
|
|
@ -68,7 +68,7 @@ class Connector(GenericConnector):
|
|||
|
||||
try:
|
||||
self.cursor.execute(query)
|
||||
except pyodbc.OperationalError, msg:
|
||||
except (pyodbc.OperationalError, pyodbc.ProgrammingError), msg:
|
||||
logger.log(8, msg[1])
|
||||
except pyodbc.Error, msg:
|
||||
raise sqlmapConnectionException, msg[1]
|
||||
|
|
@ -76,9 +76,13 @@ class Connector(GenericConnector):
|
|||
self.connector.commit()
|
||||
|
||||
def select(self, query):
|
||||
self.cursor.execute(query)
|
||||
return self.cursor.fetchall()
|
||||
|
||||
try:
|
||||
self.cursor.execute(query)
|
||||
return self.cursor.fetchall()
|
||||
except pyodbc.ProgrammingError, msg:
|
||||
logger.log(8, msg[1])
|
||||
return None
|
||||
|
||||
def setCursor(self):
|
||||
self.cursor = self.connector.cursor()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue