[DB-SIG] paramstyles (mysql string length?)

Andy Todd andy47 at halfcooked.com
Sun Apr 30 04:52:38 CEST 2006


Dittmar, Daniel wrote:
>> On Wed, 2006-04-19 at 08:24, M.-A. Lemburg wrote:
> 
> But how should a module support multiple notations?
> - by tokenizing any SQL statement to check which paramstyle was used
> - by having an option on the connection or the cursor
> - by having an additional method which requires qmark placeholders (this
> one would be backwards compatible)
> 
> 
> Daniel
> 

As paramstyle is currently an attribute of the module perhaps it could 
be inherited by the connection. That way the user (if the module allows) 
could set the paramstyle on their connection to one of the available 
options. If the module only supports a single paramstyle then changing 
the attribute on the connection would have no effect.

Regards,
Andy
-- 
--------------------------------------------------------------------------------
 From the desk of Andrew J Todd esq - http://www.halfcooked.com/


More information about the DB-SIG mailing list