On Mon, May 20, 2013 at 9:12 AM, Daniele Varrazzo
<[email protected]> 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
_______________________________________________
DB-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/db-sig