File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ void njsSodaCollection::Init(Local<Object> target)
104
104
NAN_METHOD (njsSodaCollection::New)
105
105
{
106
106
njsSodaCollection *coll = new njsSodaCollection ();
107
- coll->Wrap (info.Holder ());
107
+ coll->Wrap (info.Holder ());
108
108
info.GetReturnValue ().Set (info.Holder ());
109
109
}
110
110
@@ -130,7 +130,6 @@ Local<Object> njsSodaCollection::CreateFromBaton(njsBaton *baton)
130
130
coll->dpiSodaDbHandle = baton->dpiSodaDbHandle ;
131
131
coll->jsOracledb .Reset (baton->jsOracledb );
132
132
baton->dpiSodaCollHandle = NULL ;
133
- baton->dpiSodaDbHandle = NULL ;
134
133
return scope.Escape (obj);
135
134
}
136
135
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ class njsSodaDatabase : public njsCommon {
84
84
static NAN_METHOD (CreateDocument);
85
85
86
86
bool IsValid () const { return ( true ); } // sodaDB never closes.
87
- njsErrorType GetInvalidErrorType () const { return errInvalidConnection ; }
87
+ njsErrorType GetInvalidErrorType () const { return errSuccess ; }
88
88
89
89
// Constructor
90
90
njsSodaDatabase () : dpiSodaDbHandle(NULL ) {}
@@ -95,6 +95,7 @@ class njsSodaDatabase : public njsCommon {
95
95
dpiSodaDb_release (dpiSodaDbHandle);
96
96
dpiSodaDbHandle = NULL ;
97
97
}
98
+ jsOracledb.Reset ();
98
99
}
99
100
100
101
// Member variables
You can’t perform that action at this time.
0 commit comments