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

运行即可。

posted @ 2018-06-06 22:33  Mintcoder  阅读(374)  评论(0编辑  收藏  举报