[PyQt] Re: QSqlQuery.addBindValue malfunction
Henrik Pauli
henrik.pauli at gmail.com
Thu May 24 11:47:03 BST 2007
On 2007. May 24., Fabiano Sidler wrote:
> 2007/5/23, Fabiano Sidler <fabianosidler at gmail.com>:
> > As it seems to me, addBindValue does not properly substitute
> > the placeholders, but leave the query string untouched.
>
> I've found out, that the problem arises because the placeholder is in
> a LIKE statement between the "%" characters. How to substitute such a
> placeholder?
>
Maybe % is special in python (I vaguely remember it being so) — try %%
perhaps?
--
R, finally reregistered on his other address...
More information about the PyQt
mailing list