Skip to content

Commit 074b5dd

Browse files
committed
Fixed regression with end-to-end tracing attributes not being set.
1 parent 04ea440 commit 074b5dd

File tree

6 files changed

+33
-29
lines changed

6 files changed

+33
-29
lines changed

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Change Log
22

3+
## node-oracledb v2.1.2 (21 Feb 2018)
4+
5+
- Fixed regression with end-to-end tracing attributes not being set.
6+
37
## node-oracledb v2.1.1 (16 Feb 2018)
48

5-
Fixed regression with querystream() in Node 4 & 6.
9+
- Fixed regression with querystream() in Node 4 & 6.
610

711
## node-oracledb v2.1.0 (15 Feb 2018)
812

INSTALL.md

+23-23
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ version 2.0.
104104
- Install a C Compiler with support for C++ 11 (such as Xcode,
105105
GCC 4.8, Visual Studio 2015, or similar)
106106

107-
- Run `npm install oracle/node-oracledb.git#v2.1.1`, or add
108-
`oracle/node-oracledb.git#v2.1.1` to your `package.json`
107+
- Run `npm install oracle/node-oracledb.git#v2.1.2`, or add
108+
`oracle/node-oracledb.git#v2.1.2` to your `package.json`
109109
dependencies. Substitute your desired [GitHub tag][40].
110110

111111
- Add Oracle 12.2, 12.1 or 11.2 client libraries to your operating
@@ -1038,19 +1038,19 @@ export CC=gcc
10381038
```
10391039

10401040
Locate the [GitHub tag][40] of the desired node-oracledb version, for
1041-
example `v2.1.1`, and use the `npm` package manager (which is
1041+
example `v2.1.2`, and use the `npm` package manager (which is
10421042
included in Node.js) to install it.
10431043

10441044
If you have the `git` utility, you can install with:
10451045

10461046
```
1047-
npm install oracle/node-oracledb.git#v2.1.1
1047+
npm install oracle/node-oracledb.git#v2.1.2
10481048
```
10491049

10501050
Otherwise install using:
10511051

10521052
```
1053-
npm install https://github.com/oracle/node-oracledb/releases/download/v2.1.1/oracledb-src-2.1.1.tgz
1053+
npm install https://github.com/oracle/node-oracledb/releases/download/v2.1.2/oracledb-src-2.1.2.tgz
10541054
```
10551055

10561056
#### 3.9.4 Install the free Oracle Instant Client 'Basic' ZIP file
@@ -1161,19 +1161,19 @@ export MAKE=gmake
11611161
```
11621162

11631163
Locate the [GitHub tag][40] of the desired node-oracledb version, for
1164-
example `v2.1.1`, and use the `npm` package manager (which is
1164+
example `v2.1.2`, and use the `npm` package manager (which is
11651165
included in Node.js) to install it.
11661166

11671167
If you have the `git` utility, you can install with:
11681168

11691169
```
1170-
npm install oracle/node-oracledb.git#v2.1.1
1170+
npm install oracle/node-oracledb.git#v2.1.2
11711171
```
11721172

11731173
Otherwise install using:
11741174

11751175
```
1176-
npm install https://github.com/oracle/node-oracledb/releases/download/v2.1.1/oracledb-src-2.1.1.tgz
1176+
npm install https://github.com/oracle/node-oracledb/releases/download/v2.1.2/oracledb-src-2.1.2.tgz
11771177
```
11781178

11791179
#### 3.10.4 Install the free Oracle Instant Client 'Basic' ZIP file
@@ -1280,12 +1280,12 @@ The `git` utility is required for this method.
12801280

12811281
Build node-oracledb from source code by changing the package specifier
12821282
so that `npm` downloads from GitHub instead of from npmjs.com. For
1283-
example, to install the code from the GitHub tag 'v2.1.1', add
1284-
`oracle/node-oracledb#v2.1.1` to your `package.json` dependencies, or
1283+
example, to install the code from the GitHub tag 'v2.1.2', add
1284+
`oracle/node-oracledb#v2.1.2` to your `package.json` dependencies, or
12851285
use the command:
12861286

12871287
```
1288-
npm install oracle/node-oracledb#v2.1.1
1288+
npm install oracle/node-oracledb#v2.1.2
12891289
```
12901290

12911291
This will download, compile and install node-oracledb.
@@ -1299,7 +1299,7 @@ Users without `git`, or with older versions of `npm` such as included in
12991299
Node 4, may alternatively need to use pre-bundled source code:
13001300

13011301
```
1302-
npm install https://github.com/oracle/node-oracledb/releases/download/v2.1.1/oracledb-src-2.1.1.tgz
1302+
npm install https://github.com/oracle/node-oracledb/releases/download/v2.1.2/oracledb-src-2.1.2.tgz
13031303
```
13041304

13051305
Note it may take some time before compilation begins due to the slow
@@ -1354,21 +1354,21 @@ of Node.js and operating system, you can install manually:
13541354
on the [GitHub Release][41] page.
13551355

13561356
Download the release's main node-oracledb package, for example
1357-
`oracledb-2.1.1.tgz`.
1357+
`oracledb-2.1.2.tgz`.
13581358

13591359
Also download the appropriate binary package, for example
1360-
`oracledb-v2.1.1-node-v57-darwin-x64.gz`. To determine the correct
1360+
`oracledb-v2.1.2-node-v57-darwin-x64.gz`. To determine the correct
13611361
binary package, find your Node.js module version, platform and
13621362
architecture using:
13631363

13641364
- `node -p 'process.versions.modules'`
13651365
- `node -p 'process.platform'`
13661366
- `node -p 'process.arch'`
13671367

1368-
For example, when installing node-oracledb 2.1.1 on macOS with
1368+
For example, when installing node-oracledb 2.1.2 on macOS with
13691369
Node.js 8, these commands will show the module version is '57', the
13701370
platform is 'darwin' and the architecture is 'x64'. The package to
1371-
download is `oracledb-v2.1.1-node-v57-darwin-x64.gz`
1371+
download is `oracledb-v2.1.2-node-v57-darwin-x64.gz`
13721372

13731373
If an appropriate package is not available, follow the
13741374
[Node-oracledb Installation Instructions](#instructions) for your
@@ -1380,7 +1380,7 @@ of Node.js and operating system, you can install manually:
13801380
```
13811381
mkdir node_modules/oracledb
13821382
cd node_modules/oracledb
1383-
tar -xzf oracledb-2.1.1.tgz
1383+
tar -xzf oracledb-2.1.2.tgz
13841384
```
13851385

13861386
The node_modules directory will contain:
@@ -1416,7 +1416,7 @@ of Node.js and operating system, you can install manually:
14161416
to unarchive the binary package, for example:
14171417

14181418
```
1419-
node extractpackage.js path=oracledb-v2.1.1-node-v57-darwin-x64.gz
1419+
node extractpackage.js path=oracledb-v2.1.2-node-v57-darwin-x64.gz
14201420
```
14211421

14221422
- Create the subdirectory `node_modules/oracledb/build/Release` and
@@ -1432,7 +1432,7 @@ of Node.js and operating system, you can install manually:
14321432

14331433
Some companies block access to github.com so `npm install oracledb`
14341434
will fail to download binaries, as will installing source code from
1435-
GitHub with `npm install oracle/node-oracledb.git#v2.1.1`.
1435+
GitHub with `npm install oracle/node-oracledb.git#v2.1.2`.
14361436

14371437
There are two suggested methods for installation.
14381438

@@ -1456,16 +1456,16 @@ Alternatively you can compile the source code that is included in the
14561456
npm package:
14571457

14581458
- Download the node-oracledb package from npm, for example
1459-
`https://registry.npmjs.com/oracledb/-/oracledb-2.1.1.tgz`
1459+
`https://registry.npmjs.com/oracledb/-/oracledb-2.1.2.tgz`
14601460

14611461
- Create a directory such as `oracledb_build` and extract the package
14621462
inside it:
14631463

14641464
```
14651465
mkdir oracledb_build
1466-
mv oracledb-2.1.1.tgz oracledb_build
1466+
mv oracledb-2.1.2.tgz oracledb_build
14671467
cd oracledb_build
1468-
tar -xzf oracledb-2.1.1.tgz
1468+
tar -xzf oracledb-2.1.2.tgz
14691469
```
14701470

14711471
The directory contents will be the same as shown in the previous
@@ -1520,7 +1520,7 @@ sudo ldconfig
15201520
Install the node-oracledb package:
15211521

15221522
```
1523-
yum install node-oracledb-12c-node8-2.1.1
1523+
yum install node-oracledb-12c-node8-2.1.2
15241524
```
15251525

15261526
Since node-oracledb is installed globally, set `NODE_PATH` before

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oracledb",
3-
"version": "2.1.1",
3+
"version": "2.1.2",
44
"description": "Oracle Database driver by Oracle Corp.",
55
"license": "Apache-2.0",
66
"homepage": "http://www.oracle.com/technetwork/database/database-technologies/scripting-languages/node_js/",

package/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oracledb",
3-
"version": "2.1.1",
3+
"version": "2.1.2",
44
"description": "Oracle Database driver by Oracle Corp.",
55
"license": "Apache-2.0",
66
"homepage": "http://www.oracle.com/technetwork/database/database-technologies/scripting-languages/node_js/",

src/njsConnection.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1310,8 +1310,8 @@ void njsConnection::SetTextAttribute(Nan::NAN_SETTER_ARGS_TYPE args,
13101310
return;
13111311
}
13121312
v8::String::Utf8Value utfstr(value->ToString());
1313-
if ((*setter)(connection->dpiConnHandle, *utfstr,
1314-
static_cast<int32_t> (utfstr.length()) < 0))
1313+
uint32_t valueLength = static_cast<uint32_t>(utfstr.length());
1314+
if ((*setter)(connection->dpiConnHandle, *utfstr, valueLength) < 0)
13151315
njsOracledb::ThrowDPIError();
13161316
}
13171317

src/njsOracle.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ using namespace v8;
7171
// For production, leave NJS_NODE_ORACLEDB_SUFFIX undefined (not "")
7272
#define NJS_NODE_ORACLEDB_MAJOR 2
7373
#define NJS_NODE_ORACLEDB_MINOR 1
74-
#define NJS_NODE_ORACLEDB_PATCH 1
74+
#define NJS_NODE_ORACLEDB_PATCH 2
7575
#define NJS_NODE_ORACLEDB_SUFFIX
7676

7777
// define stringified version and driver name

0 commit comments

Comments
 (0)