when logging sql, queries and parameters are printed
bzr revid: chs@tinyerp.com-4b7b7b9042deab3f6f125e6eaf3b1a897545f199
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user