MySQL Forums
Forum List  »  Connector/C++

Re: C++ MySQL Connector 1.1.0 Throws exception but query succeeds
Posted by: Andrii Nikitin
Date: August 02, 2012 09:00AM

do you have the same problem when running examples from official web site:
http://dev.mysql.com/doc/refman/5.1/en/connector-cpp-examples-query.html
http://dev.mysql.com/doc/refman/5.1/en/connector-cpp-tutorials.html

I.e. instead of m_mySqlConnection -> createStatement(); try:

driver = sql::mysql::get_mysql_driver_instance();
con = driver->connect("tcp://127.0.0.1:3306", "user", "password");
stmt = con->createStatement();

Do you run program in some debugger or exception is printed into std out?

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: C++ MySQL Connector 1.1.0 Throws exception but query succeeds
2900
August 02, 2012 09:00AM


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.