debug msg b4 execution

This commit is contained in:
Nabin Hait 2012-01-11 18:23:28 +05:30
parent 32f91fd041
commit 4988b2ebd7

View file

@ -138,12 +138,12 @@ class Database:
# execute
try:
if values!=():
self._cursor.execute(query, values)
if debug: webnotes.msgprint(query % values)
self._cursor.execute(query, values)
else:
self._cursor.execute(query)
if debug: webnotes.msgprint(query)
self._cursor.execute(query)
except Exception, e:
# ignore data definition errors
if ignore_ddl and e.args[0] in (1146,1054,1091):