terminate called after throwing an instance of 'otl_tmpl_exception<otl_exc, otl_conn, otl_cur>`解决方法
来源:互联网 发布:矩阵与向量运算法则 编辑:程序博客网 时间:2024/04/29 20:12
在linux下用c++连接MySQL或oracle数据库时,若频繁调用otlstream构造函数,发生 terminate called after throwing an instance of 'otl_tmpl_exception<otl_exc, otl_conn, otl_cur>`的问题,其解决方法为:
在调用otl_connect类的void rlogon(const char* connect_str, const int aauto_commit=0)函数时,将aauto_commit的值置为1。
示例代码:
db.rlogon("DSN=my_db;UID=sa;PWD=tiger",1);
其中db为otl_connect类的对象。
注意:第二参数aauto_commit设置为1,表示数据库事务自动提交;设置为0,表示数据库事务非自动提交。
0 0
- terminate called after throwing an instance of 'otl_tmpl_exception<otl_exc, otl_conn, otl_cur>`解决方法
- terminate called after throwing an instance of 'otl_tmpl_exception<otl_exc, otl_conn, otl_cur>'
- terminate called after throwing an instance of 'boost::thread_resource_error' what()
- terminate called after throwing an instance of 'std::string'
- terminate called after throwing an instance of 'std::out_of_range'
- terminate called after throwing an instance of 'std::bad_alloc
- terminate called after throwing an instance of 'std::length_error
- Terminate called after throwing an instance of 'ros::serialization::StreamOverrunException'
- 在roscore时出现 terminate called after throwing an instance of 'std::runtime_error'的解决方法
- 真机terminate called after throwing an instance
- 运行时错误: terminate called after throwing an instance of 'std::out_of_range'
- 运行时错误:terminate called after throwing an instance of 'std::logic_error'
- terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::substr
- Deal with the error "terminate called after throwing an instance of 'std::bad_alloc'"
- 移植CERTI解决terminate called after throwing an instance of 'certi::NetworkError'
- terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check
- [aidl] terminate called after throwing an instance of 'std::logic_error' [aidl] what(): basic_string
- terminate called after throwing an instance of 'std::logic_error' [aidl] what(): basic_string
- 关于dorado框架datatable处的右键菜单无法根据具体数据实现动态分别显示不同菜单的解决方法
- 兼容性:jquery在ie7下的(Rowspan)属性赋值问题
- 【MySQL】主从复制原理及配置
- Android ListView 获取不到Item点击事件
- 数组排序(冒泡)
- terminate called after throwing an instance of 'otl_tmpl_exception<otl_exc, otl_conn, otl_cur>`解决方法
- hdu 5150 暴力
- jquery.cookie中的操作
- ANSI,ASCII,Unicode的区别与联系
- android drawerlayout
- 在JSP中使用struts2的标签把request中的对象数据展示在JSP上
- 打油诗一首: 《版本失火, 波及涛哥》
- Oracle 11g 忘记用户名密码
- 关于dorado5树的刷新问题的解决方案。