server/querier.py
changeset 2621 1b9d08840a0e
parent 2601 5196d213f4e3
child 2629 0d445c2171e4
--- a/server/querier.py	Sat Aug 01 01:20:58 2009 +0200
+++ b/server/querier.py	Sat Aug 01 01:22:01 2009 +0200
@@ -586,9 +586,10 @@
         always use substitute arguments in queries (eg avoid query such as
         'Any X WHERE X eid 123'!)
         """
-        if server.DEBUG & (server.DBG_RQL | server.DBG_RQL):
-            print '*'*80
-            print 'QUERIER INPUT', rql
+        if server.DEBUG & (server.DBG_RQL | server.DBG_SQL):
+            if server.DEBUG & server.DBG_MORE:
+                print '*'*80
+            print 'QUERIER INPUT', rql, args
         # parse the query and binds variables
         if eid_key is not None:
             if not isinstance(eid_key, (tuple, list)):