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?
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?