We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46e6522 commit f3ed467Copy full SHA for f3ed467
src/njsConnection.cpp
@@ -2822,6 +2822,19 @@ NAN_GETTER(njsConnection::GetCallTimeout)
2822
info.GetReturnValue().Set(Nan::Undefined());
2823
return;
2824
}
2825
+
2826
+ // if an Oracle Client less than 18.1 is being used, return undefined
2827
+ dpiVersionInfo versionInfo;
2828
+ dpiContext *context = njsOracledb::GetDPIContext();
2829
+ if (dpiContext_getClientVersion(context, &versionInfo) < 0) {
2830
+ njsOracledb::ThrowDPIError();
2831
+ return;
2832
+ }
2833
+ if (versionInfo.versionNum < 18) {
2834
+ info.GetReturnValue().Set(Nan::Undefined());
2835
2836
2837
2838
if (dpiConn_getCallTimeout(connection->dpiConnHandle, &callTimeout) < 0) {
2839
njsOracledb::ThrowDPIError();
2840
0 commit comments