diff options
| author | Christophe Simonis <chs@tinyerp.com> | 2008-06-05 13:49:03 +0000 |
|---|---|---|
| committer | Christophe Simonis <chs@tinyerp.com> | 2008-06-05 13:49:03 +0000 |
| commit | a9e1da10ad6069720968514dedcaf1e889e2f7f2 (patch) | |
| tree | 38df873573df337bce81e3888cfb9cd2a661adb0 /bin/sql_db.py | |
| parent | 12febba1afa5267264d29368aae3c3860481e41b (diff) | |
when logging sql, queries and parameters are printed
bzr revid: chs@tinyerp.com-4b7b7b9042deab3f6f125e6eaf3b1a897545f199
Diffstat (limited to 'bin/sql_db.py')
| -rw-r--r-- | bin/sql_db.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/sql_db.py b/bin/sql_db.py index aa8a5162eb7..05c77db035c 100644 --- a/bin/sql_db.py +++ b/bin/sql_db.py @@ -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: |
