[DB-SIG] cx_Oracle 2.5
Tom Jenkins
tjenkins@devis.com
17 Jul 2002 12:21:58 -0400
On Wed, 2002-07-17 at 12:25, M.-A. Lemburg wrote:
>
>
> Anthony Tuininga wrote:
> >
> > -------------------------------- QUOTE ---------------------------------
> > Prepare and execute a database operation (query or command). Parameters
> > may be provided as sequence or mapping and will be bound to variables in
> > the operation. Variables are specified in a database-specific notation
> > (see the module's paramstyle attribute for details). [5]
> > -------------------------------- QUOTE ---------------------------------
>
> Ah sorry, I forgot about that addition. The trick was that
> __getitem__ is used for finding the parameters in the data
> object.
>
> Strikes me as rather uncommon, though.
>
Actually this is our most common way to send parameters. i'd estimate
that around 85% of our execute calls use mappings to hold the
parameters. it just seems to fit really well into how we work.
--
Tom Jenkins
Development InfoStructure
http://www.devis.com