> Is there a way to print a query for logging purpose as it was or will > be sent to database, if I don't escape values of query by myself? > ... > Im using psycopg2, btw http://initd.org/psycopg/docs/advanced.html#connection-and-cursor-factories
HTH, -- Miki http://pythonwise.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list