diff -r ff9b0d5bd884 -r 535bc210f799 server/sources/native.py --- a/server/sources/native.py Sat Aug 01 01:16:19 2009 +0200 +++ b/server/sources/native.py Sat Aug 01 01:19:26 2009 +0200 @@ -309,9 +309,8 @@ print 'RQL FOR NATIVE SOURCE %s: %s' % (self.uri, union.as_string()) if varmap: print 'using varmap', varmap - if args: + if server.DEBUG & server.DBG_MORE: print 'args', args - if server.DEBUG & server.DBG_MORE: print 'cache key', cachekey print 'solutions', ','.join(str(s.solutions) for s in union.children) # remember number of actually selected term (sql generation may append some) @@ -438,7 +437,7 @@ """ cursor = session.pool[self.uri] if server.DEBUG & server.DBG_SQL: - print 'exec', query, args, session.pool.connection(self.uri)._cnx + print 'exec', query, args try: # str(query) to avoid error if it's an unicode string cursor.execute(str(query), args)