[DB-SIG] Test suite update for format conversion accuracy.

Carl Karsten carl at personnelware.com
Mon May 20 17:49:23 CEST 2013


On Mon, May 20, 2013 at 9:12 AM, Daniele Varrazzo
<daniele.varrazzo at gmail.com> wrote:
>
> In [6]: cur.execute("insert into test values (?, 'wat?')", ('hi'))
> ---------------------------------------------------------------------------
> ProgrammingError                          Traceback (most recent call last)
> /home/piro/src/qmarkpg/<ipython-input-6-b8a3105dc710> in <module>()
> ----> 1 cur.execute("insert into test values (?, 'wat?')", ('hi'))
>
> ProgrammingError: Incorrect number of bindings supplied. The current
> statement uses 1, and there are 2 supplied.

Shouldn't ('hi') be ('hi',)  ?

>>> cur.execute("insert into test values (?, 'wat?')", ('hi',))
<sqlite3.Cursor object at 0x7f28919eb570>


-- 
Carl K


More information about the DB-SIG mailing list