Show error query and values
svn: r11377
This commit is contained in:
parent
c61ac47d57
commit
005bb624e5
@ -62,10 +62,15 @@ class Database:
|
|||||||
self.cursor.execute(q, args)
|
self.cursor.execute(q, args)
|
||||||
self.db.commit()
|
self.db.commit()
|
||||||
except:
|
except:
|
||||||
"no such table to drop: '%s'" % q
|
"WARN: no such table to drop: '%s'" % q
|
||||||
else:
|
else:
|
||||||
self.cursor.execute(q, args)
|
try:
|
||||||
self.db.commit()
|
self.cursor.execute(q, args)
|
||||||
|
self.db.commit()
|
||||||
|
except:
|
||||||
|
print "ERROR: query :", q
|
||||||
|
print "ERROR: values:", args
|
||||||
|
raise
|
||||||
return self.cursor.fetchall()
|
return self.cursor.fetchall()
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user