Hi,
I need a little help.
I am using the mysql-connector-c++ 1.0.5 which I build from source on Cygwin with g++ (GCC) 4.5.3. When I try to use the escapeString method I get the compilation error:
error: ‘class sql::mysql::MySQL_Connection’ has no member named ‘escapeString’
The code is pretty straightforward:
sql::Connection *con = driver->connect(host, user, password);
sql::mysql::MySQL_Connection* mysql_conn = dynamic_cast<sql::mysql::MySQL_Connection*>(con);
std::string escaped_string = mysql_conn->escapeString("'");
I can't find the method in any of the mysql or cppcon header files. And the examples don't use the escapeString method.
What do I miss?
Any help is appreciated.
Thank you,
-- Bernd
I need a little help.
I am using the mysql-connector-c++ 1.0.5 which I build from source on Cygwin with g++ (GCC) 4.5.3. When I try to use the escapeString method I get the compilation error:
error: ‘class sql::mysql::MySQL_Connection’ has no member named ‘escapeString’
The code is pretty straightforward:
sql::Connection *con = driver->connect(host, user, password);
sql::mysql::MySQL_Connection* mysql_conn = dynamic_cast<sql::mysql::MySQL_Connection*>(con);
std::string escaped_string = mysql_conn->escapeString("'");
I can't find the method in any of the mysql or cppcon header files. And the examples don't use the escapeString method.
What do I miss?
Any help is appreciated.
Thank you,
-- Bernd