Re: API 3.0 limiting paramstyle to ['named', 'qmark'] is okay. ('format' is not desirable)

Michael Bayer <[email protected]>
Newsgroups gmane.comp.python.db
Message-ID <[email protected]>
On May 17, 2013, at 11:10 AM, Christoph Zwerschke <[email protected]> wrote:

> Am 17.05.2013 17:01, schrieb Vernon D. Cole:
> > What other options should be considered?
> 
> Another option would be to get rid of the parameter completely, and silently accept both styles, whatever is used in the sql command passed to the execute method.

that's how dbapi3 should work for sure.   for dbapi2 compatibility, some kind of switching would be needed.




_______________________________________________
DB-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/db-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.