Re: API 3.0 limiting paramstyle to ['named', 'qmark'] is okay. ('format' is not desirable)
Daniele Varrazzo <[email protected]>
| Newsgroups | gmane.comp.python.db |
|---|---|
| Message-ID | <CA+mi_8b1Wm=RN=9uH5ZaisLxH11q1vgDxOj2aMV=Dadzgfs_bQ@mail.gmail.com> |
On Fri, May 17, 2013 at 4:10 PM, Christoph Zwerschke <[email protected]> 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 _______________________________________________ DB-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/db-sig