mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.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:
parent
ef6f37122d
commit
cd4e0f462b
1 changed files with 5 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue