Skip to content
Snippets Groups Projects
Commit a9e1da10 authored by Christophe Simonis's avatar Christophe Simonis
Browse files

when logging sql, queries and parameters are printed

bzr revid: chs@tinyerp.com-4b7b7b9042deab3f6f125e6eaf3b1a897545f199
parent 12febba1
No related branches found
No related tags found
No related merge requests found
......@@ -74,6 +74,8 @@ class fake_cursor:
else:
res = self.obj.execute(sql)
if self.sql_log:
print "SQL LOG query:", sql
print "SQL LOG params:", repr(p)
self.count+=1
res_from = re_from.match(sql.lower())
if res_from:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment