Re: How to View Raw Generated SQL

2008-09-26 Thread Malcolm Tredinnick
On Wed, 2008-09-24 at 20:45 -0700, Chris wrote: > I'm trying to debug a usage of callproc, which doesn't return any rows > when used inside Django. Is there anyway to view the SQL and escaped > values sent from db cursor? There is no public API in the Python database wrappers to determine how t

Re: How to View Raw Generated SQL

2008-09-25 Thread Thomas Guettler
Hi, maybe the SQLLogMiddleware snippet helps you: http://www.djangosnippets.org/snippets/344/ Thomas Güttler Chris schrieb: > I'm trying to debug a usage of callproc, which doesn't return any rows > when used inside Django. Is there anyway to view the SQL and escaped > values sent from db cur

Re: How to View Raw Generated SQL

2008-09-24 Thread John Allen
The FAQ recipe (when run from a manage.py shell) didn't produce anything in my application. I found this which might help: http://blog.michaeltrier.com/2007/8/11/display-the-sql-django-orm-is-generating On Sep 25, 5:45 am, Chris <[EMAIL PROTECTED]> wrote: > I'm trying to debug a usage of callpro

How to View Raw Generated SQL

2008-09-24 Thread Chris
I'm trying to debug a usage of callproc, which doesn't return any rows when used inside Django. Is there anyway to view the SQL and escaped values sent from db cursor? I found http://docs.djangoproject.com/en/dev/faq/models/#how-can-i-see-the-raw-sql-queries-django-is-running by this doesn't show