[native source] log the used connection in doexecmany as in doexec
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 05 Mar 2015 11:44:29 +0100
changeset 10265 9bdc74142164
parent 10264 d5403de0792b
child 10273 ef74abcf369d
[native source] log the used connection in doexecmany as in doexec
server/sources/native.py
--- a/server/sources/native.py	Tue Feb 17 12:43:42 2015 +0100
+++ b/server/sources/native.py	Thu Mar 05 11:44:29 2015 +0100
@@ -757,7 +757,7 @@
         it's a function just so that it shows up in profiling
         """
         if server.DEBUG & server.DBG_SQL:
-            print 'execmany', query, 'with', len(args), 'arguments'
+            print 'execmany', query, 'with', len(args), 'arguments', cnx.cnxset.cnx
         cursor = cnx.cnxset.cu
         try:
             # str(query) to avoid error if it's a unicode string