where is escapeString defined?
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
Subject
Views
Written By
Posted
where is escapeString defined?
3466
November 16, 2011 04:50PM
1562
November 21, 2011 02:37PM
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.