Friday, April 23, 2010

Re: Oracle cursor.execute problem

On Apr 23, 2:45 pm, Skylar Saveland <skylar.savel...@gmail.com> wrote:
> Ah, I guess it's only %s and strings for execute?  At anyrate, the
> third argument to connection.execute(self, query, parms=None), params,
> is a list of strings, each member of the list should have a '%s'
> placeholder in the query.  The string-formatting link is a not really
> germane ..

Despite the '%s', it's purely a placeholder syntax, not a formatting
system. The params don't have to be strings, because they don't
actually get interpolated into the query at any point. Ints, floats,
datetime objects, and cursor variables all work.

Ian

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate