Pool creation was simplified in DPI-C
This commit is contained in:
parent
dc9430ec01
commit
9dff23aefd
|
@ -722,8 +722,6 @@ void njsOracledb::Async_CreatePool(njsBaton *baton)
|
|||
{
|
||||
dpiErrorInfo errorInfo;
|
||||
dpiCreateParams params;
|
||||
uint32_t nameLength;
|
||||
const char *name;
|
||||
|
||||
dpiGlobal_InitializeCreateParams(¶ms);
|
||||
params.userName = baton->user.c_str();
|
||||
|
@ -736,8 +734,7 @@ void njsOracledb::Async_CreatePool(njsBaton *baton)
|
|||
params.maxSessions = baton->poolMax;
|
||||
params.sessionIncrement = baton->poolIncrement;
|
||||
params.externalAuth = baton->externalAuth;
|
||||
if (dpiPool_Create(¶ms, &name, &nameLength, &baton->dpiPoolHandle,
|
||||
&errorInfo) < 0)
|
||||
if (dpiPool_Create(¶ms, &baton->dpiPoolHandle, &errorInfo) < 0)
|
||||
baton->error = std::string(errorInfo.message, errorInfo.messageLength);
|
||||
else if (dpiPool_SetAttributeUint(baton->dpiPoolHandle,
|
||||
DPI_ATTR_POOL_TIMEOUT, baton->poolTimeout) < 0)
|
||||
|
|
Loading…
Reference in New Issue