@@ -80,7 +80,7 @@ void njsConnection::Init(Handle<Object> target)
80
80
tpl->SetClassName (Nan::New<v8::String>(" Connection" ).ToLocalChecked ());
81
81
82
82
Nan::SetPrototypeMethod (tpl, " execute" , Execute);
83
- Nan::SetPrototypeMethod (tpl, " release " , Release );
83
+ Nan::SetPrototypeMethod (tpl, " close " , Close );
84
84
Nan::SetPrototypeMethod (tpl, " commit" , Commit);
85
85
Nan::SetPrototypeMethod (tpl, " rollback" , Rollback);
86
86
Nan::SetPrototypeMethod (tpl, " break" , Break);
@@ -1481,7 +1481,7 @@ void njsConnection::Async_AfterExecute(njsBaton *baton, Local<Value> argv[])
1481
1481
1482
1482
1483
1483
// -----------------------------------------------------------------------------
1484
- // njsConnection::Release ()
1484
+ // njsConnection::Close ()
1485
1485
// Releases the connection from use by JS. This releases the connection back
1486
1486
// to the pool or closes the standalone connection so further use is not
1487
1487
// possible. The reference to the DPI handle is transferred to the baton so
@@ -1491,7 +1491,7 @@ void njsConnection::Async_AfterExecute(njsBaton *baton, Local<Value> argv[])
1491
1491
// PARAMETERS
1492
1492
// - JS callback which will receive (error)
1493
1493
// -----------------------------------------------------------------------------
1494
- NAN_METHOD (njsConnection::Release )
1494
+ NAN_METHOD (njsConnection::Close )
1495
1495
{
1496
1496
njsConnection *connection;
1497
1497
njsBaton *baton;
@@ -1504,17 +1504,17 @@ NAN_METHOD(njsConnection::Release)
1504
1504
return ;
1505
1505
baton->dpiConnHandle = connection->dpiConnHandle ;
1506
1506
connection->dpiConnHandle = NULL ;
1507
- baton->QueueWork (" Release " , Async_Release , NULL , 1 );
1507
+ baton->QueueWork (" Close " , Async_Close , NULL , 1 );
1508
1508
}
1509
1509
1510
1510
1511
1511
// -----------------------------------------------------------------------------
1512
- // njsConnection::Async_Release ()
1513
- // Worker function for njsConnection::Release () method. If the attempt to
1512
+ // njsConnection::Async_Close ()
1513
+ // Worker function for njsConnection::Close () method. If the attempt to
1514
1514
// close fails, the reference to the DPI handle is transferred back from the
1515
1515
// baton to the connection.
1516
1516
// -----------------------------------------------------------------------------
1517
- void njsConnection::Async_Release (njsBaton *baton)
1517
+ void njsConnection::Async_Close (njsBaton *baton)
1518
1518
{
1519
1519
if (dpiConn_close (baton->dpiConnHandle , DPI_MODE_CONN_CLOSE_DEFAULT, NULL ,
1520
1520
0 ) < 0 ) {
@@ -1527,10 +1527,10 @@ void njsConnection::Async_Release(njsBaton *baton)
1527
1527
1528
1528
1529
1529
// -----------------------------------------------------------------------------
1530
- // njsConnection::Async_AfterRelease ()
1531
- // Finishes release by cleaning up references.
1530
+ // njsConnection::Async_AfterClose ()
1531
+ // Finishes close by cleaning up references.
1532
1532
// -----------------------------------------------------------------------------
1533
- void njsConnection::Async_AfterRelease (njsBaton *baton, Local<Value> argv[])
1533
+ void njsConnection::Async_AfterClose (njsBaton *baton, Local<Value> argv[])
1534
1534
{
1535
1535
njsConnection *connection = (njsConnection*) baton->callingObj ;
1536
1536
connection->jsOracledb .Reset ();
0 commit comments