MySQL Forums
Forum List  »  Connector/C++

Re: C++ MySQL Connector 1.1.0 Throws exception but query succeeds
Posted by: James Barajas
Date: August 02, 2012 12:56PM

OK! I think I found out what the problem was:

I was calling:

stmt->executeQuery(query);

for a query which is not supposed to return a ResultSet*

so I changed it to

stmt->execute(query);

and the exception went away.

Thanks Andrii for having me look at the examples. That's how I noticed the difference.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: C++ MySQL Connector 1.1.0 Throws exception but query succeeds
2734
August 02, 2012 12:56PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.