设为首页 加入收藏

TOP

OCI : do NOT debug on TWO different wind(三)
2014-11-23 22:25:23 来源: 作者: 【 】 浏览:12
Tags:OCI NOT debug TWO different wind
t()
{
int ret = OCIStmtFetch2(_stmt, _conn->getEnvironment()->getError(), 1, OCI_FETCH_NEXT, 1, OCI_DEFAULT);
if(ret == OCI_NO_DATA)
return -1;
if(ret != OCI_SUCCESS)
{
throw Exception(ret, _conn->getEnvironment()->getError(), "fetch Stmt failed.");
}

syncDefVector();

return 0;
}

void Statement::syncDefVector()
{
for(TDefVector::iterator it = _vctDef.begin(); it != _vctDef.end(); ++ it)
{
it->str->assign(it->buf, strlen(it->buf));
}
}

void Statement::freeDefVector()
{
for(TDefVector::iterator it = _vctDef.begin(); it != _vctDef.end(); ++ it)
{
delete [] it->buf;
}
_vctDef.clear();
}


}

/**//////
std::ostream& operator << (std::ostream& os, const ocipp::Exception& e)
{
e.show(os);
return os;
}

首页 上一页 1 2 3 4 下一页 尾页 3/4/4
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇介绍python下wmi模块之二:得到本.. 下一篇判断一个点是否在指定三角形内(1..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: