MySQL Forums
Forum List  »  Connector/C++

Re: Run Time error: CDK Error: Failed string conversion
Posted by: Michael Pi
Date: April 30, 2019 08:19AM

Hi, Luis,

Thanks for your reply.

After several attempts, it appears to be working after I changed the connection string to:
const char *url = ("mysqlx://sa:xxxxxxxx@");

I still do not understand why the following triggered error in string conversion:
mysqlx::Session mySession(mysqlx::SessionOption::HOST, L"localhost",
mysqlx::SessionOption::PORT, 33060,
mysqlx::SessionOption::USER, L"sa",
mysqlx::SessionOption::PWD, L"xxxxxxxx");

static void from_str(mysqlx::string &to, const string &from)
Impl::from_utf8(to, from);



Options: ReplyQuote

Written By
Re: Run Time error: CDK Error: Failed string conversion
April 30, 2019 08:19AM

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.