How to find out the exact SQL being executed?

Jorge Godoy <[email protected]> Mon, 26 Jul 2004 18:02:22 -0300
Newsgroups gmane.comp.python.db.pypgsql.user
Organization Particular
Message-ID <[email protected]>
Hi!


I'm trying to debug some code that involves dates and when I print the
SQL statement to be executed, I don't think that all the substitutions
and quotes are being correctly done. I'd like to find a way to print
what is being executed at the 'cursor.execute()' command. Is there any
way to do that?

Some modules provide a way to print the statement, but I couldn't find
this at pyPgSQL or its documentation.


TIA,
-- 
Godoy.     <[email protected]>



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click