Re: Test suite update for format conversion accuracy.

Carl Karsten <[email protected]>
Newsgroups gmane.comp.python.db
Message-ID <CADmzSShKNQUTZzWYFQdmJpX4dNhuc+xaG+f=eXUwCcH3ktf3kg@mail.gmail.com>
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
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.