fixes, updates, patches

This commit is contained in:
Miroslav Stampar
2012-02-09 10:16:58 +00:00
parent 948cf25de4
commit 7bca926a0b
10 changed files with 20 additions and 20 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env python
"""
$Id$
$Id$
Copyright (c) 2006-2012 sqlmap developers (http://www.sqlmap.org/)
See the file 'doc/COPYING' for copying permission
@@ -45,14 +45,14 @@ class Connector(GenericConnector):
try:
return self.cursor.fetchall()
except ibm_db_dbi.ProgrammingError, msg:
logger.warn(msg[1])
logger.warn("(remote) %s" % msg[1])
return None
def execute(self, query):
try:
self.cursor.execute(query)
except (ibm_db_dbi.OperationalError, ibm_db_dbi.ProgrammingError), msg:
logger.warn(msg[1])
logger.warn("(remote) %s" % msg[1])
except ibm_db_dbi.InternalError, msg:
raise sqlmapConnectionException, msg[1]