MySQL Forums
Forum List  »  Connector/C++

mysql-connector-cpp-8.0.20 CDK Error: Failed string conversion
Posted by: egor s
Date: July 10, 2020 03:12AM

I have a problem reading the utf-8 string from the database.
I found out that the problem is with the symbol U+FF08

Code example:
auto res = session.sql(u8"SELECT '(' as zh").execute();
try {
res.fetchOne()[0];
}
catch (std::exception ex) {
std::cout << ex.what() << std::endl;
}

Output:
CDK Error: Failed string conversion

Options: ReplyQuote




Sorry, only registered users may post in this forum.

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.