[DB-SIG] API 3.0 limiting paramstyle to ['named', 'qmark'] is okay. ('format' is not desirable)
Daniele Varrazzo
daniele.varrazzo at gmail.com
Fri May 17 17:33:59 CEST 2013
On Fri, May 17, 2013 at 4:10 PM, Christoph Zwerschke <cito at online.de> wrote:
>
> 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.
This is impossible:
cur.execute("""Select 'Guess how many params this query has?? ? ? %s';""", args)
Please, to everybody involved in this discussion: stop thinking that
giving more choices makes people's life easier. No: it makes it more
complicated, whatever the person in question is a database driver
author, a single database user or a multi-library database author.
-- Daniele
More information about the DB-SIG
mailing list