[PyKDE] Re: Using QSqlQuery + bindValue = TypeError ?

Jorge Godoy godoy at ieee.org
Sun Feb 27 14:37:59 GMT 2005

Hans-Peter Jansen <hpj at urpla.net> writes:

> Try:
>     query.bindValue(":senha", QVariant(senhaNova))

I found out that this also don't work.  The binding variable isn't removed
from the query when it is sent to the database and it also fails.  If I use
"?" as a positional placeholder, the query is completed sucessfully.

Is it a bug too?

There's no mention that this is an exclusive option on the docs, they say that
I can use either the position or the name to bind values.


More information about the PyQt mailing list