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@127.0.0.1/sakila");

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");

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

Thanks.

Michael

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Run Time error: CDK Error: Failed string conversion
1432
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.