C API Support for calling mysql stored procedure - Not working in case of...
Below code works fine in case of integer argument like CREATE PROCEDURE p1(IN p_in INT)but not for varchar arguments. varchar input parameter type is MYSQL_TYPE_STRING and output parameter type is...
View ArticleMysql c++ application help (2 replies)
I was wondering if anyone can help me figure how to do something. I have created an C++ application with a menu that links to mySql database to pull data from. I have managed to pull data from my...
View ArticleSegmentation fault when inserting a large string (no replies)
I have a repeatable segmentation fault when using prepared statements with large chunks of data bound to a mediumblob data type. I’ve searched the outstanding bugs, but can’t find anything relevant,...
View Articlei got the below errors while executing the visual studio c++ console...
i have written the code in visual studio c++ in console application in that i am trying to connect to mysql database but i am getting the following errors 1) unresolved external symbol _mysql_close@4...
View ArticleMySql C++ connector - conn->commit() doesn't throw exception (1 reply)
Hi, sql::Connection *conn I observed that conn->commit() doesn't throw exception if client loses connection to mysql server just before executing this commit statement. As no exception is thrown...
View Articlehow to escape strings in mysqlcppconn (no replies)
Hello, i wrote a C++ program and using the mysqlcppconn library. Now i would love to escape sql special characters for make it more stable and save. I don't know how to do with that API. Of course i...
View Articlestd::bad_alloc thrown on attemt to setSchema (1 reply)
Hi -- I have this really simple code: auto mysql_driver = get_driver_instance(); sql::Connection *c = mysql_driver->connect("172.17.0.1", "root", "tooth"); c->setSchema("mysql"); delete c; That...
View ArticleError trying to connect to MySQL with Eclipse (no replies)
Hello, I am trying to connect to the MySQL Database using Eclipse for C++. I have added the dynamic library mysqlcppconn.lib and also have the relevant dll files in my executable folder I get the...
View ArticleSQLException by PreparedStatement::getMoreResults in example C++ code (1 reply)
Hi all, I got the following exception when running the example code here: http://dev.mysql.com/doc/connector-cpp/en/connector-cpp-tutorials-stored-routines-prepared-statement-with-result.html # ERR:...
View ArticleHow do I set the LOCAL INFILE option (for load data file command) using...
I am writing a C++ function using the C++ connector library that will take a table name and data file name and will use the LOAD DATA command to bulk load the data from the file. How can i set the...
View ArticleExit clean up when use "sql::Connection" after network disabled. (1 reply)
Hello ^^ I'm new on using mysql_cpp_conn with c++ and having a problem. below is my testing code, ----------------------------------------------- sql::Connection * _con; sql::Statement * _stmt; ......
View ArticleIneffective Prepared Delete Statement (no replies)
I'm attempting to execute a prepared delete statement like so: prep_stmt = conn->prepareStatement("DELETE FROM my_table WHERE my_column = ?"); sql::SQLString test_string = "\'asdf\'";...
View ArticleC++ Connector / Json / Prepared Statements (1 reply)
For a JSON datatype which 'set' method should I use? for a string ... prep_statement->setString(2, pseudojson);
View Articlemysqlcppconn.dll RUNTIME advice and help (2 replies)
Hi to all, I would like to know 1. if it is possible to use mysql connector for c++ without the need of the mysqlcppconn.dll to be external (if it can be embed inside my executable c++ app and stay...
View ArticleUnresolved Externals (1 reply)
Hello i have a problem with this mysql c++ connector i setup everything all includes and libraries and is still gives me an errors : What have i done so far : Additional Include Directories :...
View Articlebuild 2.0.3 source on minGW64 fails (1 reply)
Hello, I am trying to build Connector/C++ 2.0.3 source on windows10 64bit with mingw64 6.2.0 installed (x86_64-6.2.0-posix-seh-rt_v5-rev1). cmake configuration runs fine. However, I got below errors...
View Articlemixing mingw64 gcc and prebuilt vs14 2.0.3 library (2 replies)
Hello, I try to compile the example given by using ming64 6.2.0 on windows10 64bit machine. I use the prebuilt vs14 2.0.3 library. None of the connector API implementations can be found whether I use...
View ArticleConnector/C++ fror OSX (1 reply)
Hi, ALL, On the download page for MySQL Connector/C++ for OSX it is said that it is compatible with 10.12, 10.11 and 10.10 for the latest version. There is also a link on that page which says:...
View Article