Re: [pysqlite] problems grokking SQL

Gerhard Häring <[email protected]> Tue, 14 Apr 2009 22:04:37 +0200
Newsgroups gmane.comp.python.db.pysqlite.user
Message-ID <[email protected]>
Fixed code in Mercurial that crept in during testing.

>      # Or use this recipe. It's useful and gets everything done in two lines of
>      # code.
>      with con:
> -        cur.execute("update test set data=? where id=?", (lst[1], lst[0] * 1000))
> +        cur.execute("update test set data=? where id=?", (lst[1], lst[0]))