
开发
yifanernei
啥都不会!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
通过OCI库执行带输出参数和游标的存储过程造成程序崩溃的查错过程
手中有一套OCI操作的类似于JDBC的封装,要添加存储过程中对输出参数的支持,通过查看手册,只要调用OCIBindByName或者ByPos进行绑定即可,改好后代码大概是这样的: class OciStatement : public DBStatement { public : //... void regOutParam(int idx, int type, int max); p...原创 2019-04-27 12:55:07 · 507 阅读 · 0 评论 -
记一次虚函数使用的查错过程
起因 一个基础库中对资源回收的行为出现异常,经过排查,发现是基础库实现时对虚函数的调用出现问题造成的,记录下来吧。 纯虚函数的版本 #include <iostream> using namespace std; class B { public: ~B() { close(); } void close() { doClose(); } ...原创 2019-09-30 00:24:56 · 190 阅读 · 0 评论