开发者社区> 问答> 正文

MySQL++ 执行storein(vector<type>)方法时报错问题

最近用MySQL++写一个从MySQL数据库取数据的接口时,遇到了这个问题请看代码:
定义 table 结构
`sql_create_2(table,

    1, 0, 
    mysqlpp::sql_int, id,
    mysqlpp::sql_varchar, type 
   ) `

连接数据了
`Connection connect("dbname", "127.0.0.1", "root", "root", 3306);
if(connect.connected()) {

 cout << " Connect success..." << endl;

}
Query que = connect.query("select * from table");
cout << " SQL INFO: " << que << endl;que.parse();
vector

每次执行到que.storein( data )处接提示段错误
Segmentation fault
请指教。

展开
收起
落地花开啦 2016-02-11 15:55:59 2405 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
搭建电商项目架构连接MySQL 立即下载
搭建4层电商项目架构,实战连接MySQL 立即下载
PolarDB MySQL引擎重磅功能及产品能力盛大发布 立即下载

相关镜像