Skip to content

Commit a346117

Browse files
committed
Fixed an issue that caused unexpected behavior with SODA functions in some platforms
1 parent af78f2e commit a346117

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

doc/src/release_notes.rst

+5-1
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,16 @@ Thin Mode Changes
5050
Thick Mode Changes
5151
+++++++++++++++++++
5252

53+
#) Fixed an issue that caused unexpected behavior with SODA functions in
54+
some platforms.
55+
5356
#) Fixed the bug which inserted the invalid value `~` into the database
54-
if an unacceptable out-of-bound number is bound to a DML statement. Now,
57+
if an unacceptable out-of-bounds number is bound to a DML statement. Now,
5558
numbers like 1.0e+128, -1e128, etc. will throw an error
5659
``NJS-115: value cannot be represented as an Oracle Database number``.
5760
Additionally, this fix resolves the issue related to JS numbers with
5861
precisions where `2.3` is returned as `2.300003`.
62+
See `Issue #1659 <https://github.com/oracle/node-oracledb/issues/1659>`__.
5963

6064
#) Fixed a regression that caused :meth:`~aqQueue.deqOne()` and
6165
:meth:`~aqQueue.deqMany()` to return an invalid object in node-oracledb

src/njsSodaOperation.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ static bool njsSodaOperation_processOptions(njsBaton *baton, napi_env env,
391391
napi_value options)
392392
{
393393
dpiVersionInfo *versionInfo;
394-
bool lock;
394+
bool lock = false;
395395

396396
// allocate memory for ODPI-C operations structure
397397
baton->sodaOperOptions = calloc(1, sizeof(dpiSodaOperOptions));

0 commit comments

Comments
 (0)