.Oracle/Oc8.cpp: reference cursor initialization patch

git-svn-id: svn://ultimatepp.org/upp/trunk@4320 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
rylek 2011-12-18 17:05:14 +00:00
parent ef6f37122d
commit cd4e0f462b

View file

@ -346,6 +346,7 @@ void OCI8Connection::SetRawParam(int i, const String& s) {
p.ind[0] = l ? 0 : -1;
}
/*
class Oracle8RefCursorStub : public SqlSource {
public:
Oracle8RefCursorStub(SqlConnection *cn) : cn(cn) {}
@ -354,6 +355,7 @@ public:
private:
SqlConnection *cn;
};
*/
void OCI8Connection::SetParam(int i, Sql& rc) {
Item& w = PrepareParam(i, SQLT_RSET, -1, 0, VOID_V);
@ -361,8 +363,9 @@ void OCI8Connection::SetParam(int i, Sql& rc) {
w.refcursor -> refcursor = true;
*(OCIStmt **)w.Data() = w.refcursor -> stmthp;
w.ind[0] = 0;
Oracle8RefCursorStub stub(w.refcursor);
rc = Sql(stub);
// Oracle8RefCursorStub stub(w.refcursor);
rc.Attach(w.refcursor);
// rc = Sql(stub);
}
void OCI8Connection::SetParam(int i, const Value& q) {