Quantcast
Channel: MySQL Forums - Connector/C++
Viewing all articles
Browse latest Browse all 527

windows example fails STRING TOO LONG (1 reply)

$
0
0
Hello,
I installed vs14 2015 linked to vs14 version of 2.0.3 prebuild library. I created a project with the exact source code from
http://dev.mysql.com/doc/dev/connector-cpp/devapi_ref.html

When I run the example, I got
Creating session on localhost, port 33060 ...
STD EXCEPTION: string too long
The exception happens at Impl::from_utf8(*this, utf8) where utf8="root".
// TODO: make utf8 conversions explicit

string(const char *other)
{
if (!other)
return;
std::string utf8(other);
--> Impl::from_utf8(*this, utf8);
}


catch (std::exception &ex)
{
cout << "STD EXCEPTION: " << ex.what() << endl;
return 1;
}

Would you please help?

Viewing all articles
Browse latest Browse all 527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>