On 7/11/07, James Bennett <[EMAIL PROTECTED]> wrote:
> No, the question here is whether Django is calling cursor.execute()
> with an empty params list or with a non-empty params list (the answer
> is: the latter, in most cases). Prepared statements are something else
> entirely, and should not be confused with APIs which allow
> specification of placeholders to be filled in at execution time (e.g.,
> doing "cursor.execute('SELECT %s from %s', ['foo', 'bar'])" will
> execute only a SELECT, not a PREPARE followed by a SELECT).

Thanks for clearing that up. Thanks to Django, I haven't bothered
reading the DB-API docs.

-Gul

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to