[DB-SIG] paramstyles, again

Carsten Haese carsten at uniqsys.com
Mon Jun 4 14:43:59 CEST 2007


On Mon, 2007-06-04 at 10:41 +0200, M.-A. Lemburg wrote:
> I'd suggest to make the current module read-only paramstyle
> attribute and writable connection/cursor attribute which gets
> inherited from connections to cursors.
> 
> There's also the problem of parameter type if we allow named
> style. The parameters would then have to be dictionaries for
> named and tuples for qmark/numeric. So you effectively change
> the signature of the .execute() methods based on a parameter
> which is not good style.

In addition to what I said before, you're proposing that the .execute()
signature depend on a connection/cursor attribute. I'm not sure that
that's much better than having it depend directly on the query string.

Regards,

-- 
Carsten Haese
http://informixdb.sourceforge.net




More information about the DB-SIG mailing list