when logging sql, queries and parameters are printed

bzr revid: chs@tinyerp.com-4b7b7b9042deab3f6f125e6eaf3b1a897545f199
This commit is contained in:
Christophe Simonis
2008-06-05 13:49:03 +00:00
parent 12febba1af
commit a9e1da10ad
+2
View File
@@ -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: