print executed query

Miki miki.tebeka at gmail.com
Thu Apr 29 13:23:21 EDT 2010


> 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



More information about the Python-list mailing list