[PyQt] Bug in QSqlQuery.bindValue() ?

Thiago Zanetti thiago.project at gmail.com
Sat Jun 5 17:32:37 BST 2010

2010/5/13 Lorenz Quack <don at amberfisharts.com>

> Hi,
> I'm experiencing strange behaviour to the point where I suspect a bug in
> PyQt4.
> When I bind a value to a named placeholder in a prepared SqlQuery and that
> placeholder occures more than once, than not all (only the last?) occurances
> are bound correctly.
> I'll attach an example demonstrating the problem.
> sincerely yours
> //Lorenz
> PS: PyQt4 version: 4.7.3
>    Python version: 2.6.5
>    Qt verstion: 4.6.2
Why don't you try to pass QStrings instead of python pure strings when
you're preparing your query?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100605/5cdc4d26/attachment.html>

More information about the PyQt mailing list