[Qt-interest] mysql select query returns null

berkan kısaoğlu berkankisaoglu at gmail.com
Tue Aug 11 12:35:33 CEST 2009


On Tue, Aug 11, 2009 at 12:54 PM, Martin Gebert
<martin.gebert at alpha-bit.de>wrote:

> > i need a fast reply, because i am at the deadline..
>
> It won't get faster with this disclaimer - you may even keep some people
> from replying...
>

yea, maybe you are right. but the situation is this :)


> > my question is why i can not execute select queries?
>
> I think you can; it just doesn't return a result. Use
> QSqlQuery::lastError()
> and QSqlDatabase::lastError() to find out what's wrong. If this doesn't
> reveal anything, you'll have to check your DB's contents and the query
> string (try to execute it on the mysql command line client).
>
> Martin


lastError() says nothing, and i executed it on the mysql command line
client, everything is OK. querystring is errorneous.
but then i find that, on my mysql server is version 5.0.45 and i made the
driver with the libraries of some other version of mysql.
thats the reason

thanks a lot

berkan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090811/a41f5b0f/attachment.html 


More information about the Qt-interest-old mailing list