summaryrefslogtreecommitdiff
path: root/bin/sql_db.py
diff options
context:
space:
mode:
authorChristophe Simonis <christophe@cobalt>2008-12-19 20:47:25 +0100
committerChristophe Simonis <christophe@cobalt>2008-12-19 20:47:25 +0100
commitf16bd3f97e546564d3c2280984557e8d506e4642 (patch)
treec5c37bb2d96321394f23310d5a6ecdf5dce317e6 /bin/sql_db.py
parent654f03f72a2537904e89683f89203916f91b860c (diff)
parent395071a27ecb15330c38d0edbae0928a72a317c7 (diff)
[MERGE]
bzr revid: christophe@cobalt-20081219194725-43cy82scvaiwbnbo
Diffstat (limited to 'bin/sql_db.py')
-rw-r--r--bin/sql_db.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/sql_db.py b/bin/sql_db.py
index 4003ec64875..a5f19bbb414 100644
--- a/bin/sql_db.py
+++ b/bin/sql_db.py
@@ -101,6 +101,7 @@ class Cursor(object):
@check
def execute(self, query, params=None):
+ self.count+=1
if '%d' in query or '%f' in query:
log(query, netsvc.LOG_WARNING)
log("SQL queries mustn't containt %d or %f anymore. Use only %s", netsvc.LOG_WARNING)