VS2017 用MySQL Connector 链接 MySQL时 getString异常问题

原帖地址:http://www.sunnyu.com/?p=418

getString始终异常

异常代码类似:

ResultSet res;

...

res->getString(NAME);

经查询为basic_streambuf类中一个输出函数的指针错误。

更改为:

ResultSet res;

...

res->getString(NAME).c_str();

运行即可。

猜你喜欢

转载自www.cnblogs.com/mintcoder/p/9147779.html
今日推荐