Skip to content

Commit 02f74fa

Browse files
committed
Made public methods overwritable in new JavaScript layer
1 parent 9574093 commit 02f74fa

11 files changed

+276
-16
lines changed

CHANGELOG.md

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

3+
## node-oracledb v1.7.1 (1 Mar 2016)
4+
5+
- Made public methods overwritable in new JavaScript layer
6+
37
## node-oracledb v1.7.0 (29 Feb 2016)
48

59
- Added a JavaScript wrapper around the C++ API to allow for easier

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# node-oracledb version 1.7
1+
# node-oracledb version 1.7.1
22

33
## <a name="about"></a> About node-oracledb
44

doc/api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# node-oracledb 1.7: Documentation for the Oracle Database Node.js Add-on
1+
# node-oracledb 1.8: Documentation for the Oracle Database Node.js Add-on
22

33
*Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.*
44

lib/connection.js

+10-5
Original file line numberDiff line numberDiff line change
@@ -124,35 +124,40 @@ function extend(conn, pool) {
124124
},
125125
execute: {
126126
value: execute,
127-
enumerable: true
127+
enumerable: true,
128+
writable: true
128129
},
129130
_commit: {
130131
value: conn.commit
131132
},
132133
commit: {
133134
value: commit,
134-
enumerable: true
135+
enumerable: true,
136+
writable: true
135137
},
136138
_rollback: {
137139
value: conn.rollback
138140
},
139141
rollback: {
140142
value: rollback,
141-
enumerable: true
143+
enumerable: true,
144+
writable: true
142145
},
143146
_release: {
144147
value: conn.release
145148
},
146149
release: {
147150
value: release,
148-
enumerable: true
151+
enumerable: true,
152+
writable: true
149153
},
150154
_break: {
151155
value: conn.break
152156
},
153157
break: {
154158
value: module.break,
155-
enumerable: true
159+
enumerable: true,
160+
writable: true
156161
}
157162
}
158163
);

lib/oracledb.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,16 @@ function extend(oracledb) {
170170
},
171171
createPool: {
172172
value: createPool,
173-
enumerable: true
173+
enumerable: true,
174+
writable: true
174175
},
175176
_getConnection: {
176177
value: oracledb.getConnection
177178
},
178179
getConnection: {
179180
value: getConnection,
180-
enumerable: true
181+
enumerable: true,
182+
writable: true
181183
}
182184
}
183185
);

lib/pool.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -367,14 +367,16 @@ function extend(pool, poolAttrs, oracledb) {
367367
},
368368
getConnection: {
369369
value: getConnection,
370-
enumerable: true
370+
enumerable: true,
371+
writable: true
371372
},
372373
_terminate: {
373374
value: pool.terminate
374375
},
375376
terminate: {
376377
value: terminate,
377-
enumerable: true
378+
enumerable: true,
379+
writable: true
378380
}
379381
}
380382
);

lib/resultset.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,24 @@ function extend(resultSet) {
5252
},
5353
close: {
5454
value: close,
55-
enumerable: true
55+
enumerable: true,
56+
writable: true
5657
},
5758
_getRow: {
5859
value: resultSet.getRow
5960
},
6061
getRow: {
6162
value: getRow,
62-
enumerable: true
63+
enumerable: true,
64+
writable: true
6365
},
6466
_getRows: {
6567
value: resultSet.getRows
6668
},
6769
getRows: {
6870
value: getRows,
69-
enumerable: true
71+
enumerable: true,
72+
writable: true
7073
}
7174
}
7275
);

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oracledb",
3-
"version": "1.7.0",
3+
"version": "1.7.1",
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/njs/src/njsOracle.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ using namespace v8;
7070
/* Keep the version in sync with package.json */
7171
#define NJS_NODE_ORACLEDB_MAJOR 1
7272
#define NJS_NODE_ORACLEDB_MINOR 7
73-
#define NJS_NODE_ORACLEDB_PATCH 0
73+
#define NJS_NODE_ORACLEDB_PATCH 1
7474

7575
/* Used for Oracledb.version */
7676
#define NJS_NODE_ORACLEDB_VERSION ( (NJS_NODE_ORACLEDB_MAJOR * 10000) + \

test/list.txt

+7
Original file line numberDiff line numberDiff line change
@@ -596,3 +596,10 @@
596596

597597
65. uninitializedLob.js
598598
65.1 an uninitialized Lob is returned from a PL/SQL block
599+
600+
66. writableProperties.js
601+
66.1 allows overwriting of public methods on the oracledb instance
602+
66.2 allows overwriting of public methods on pool instances
603+
66.3 allows overwriting of public methods on connection instances
604+
66.4 allows overwriting of public methods on resultset instances
605+
66.5 allows overwriting of public methods on lob instances

0 commit comments

Comments
 (0)