Skip to content

Commit a4faa25

Browse files
committed
Fix initOracleClient() with TypeScript 4.4 (Issue #1462)
1 parent d85833f commit a4faa25

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
- Added missing support for binding as `oracledb.DB_TYPE_BINARY_INTEGER`.
1212

13+
- Fixed calling `initOracleClient()` with TypeScript 4.4 ([Issue
14+
1462](https://github.com/oracle/node-oracledb/issues/1462)).
15+
1316
- Fixed numeric suffix feature (for duplicate SELECT column names when using
1417
`oracledb.OUT_FORMAT_OBJECT` mode) when the column name is also a JavaScript
1518
property or method name.

lib/oracledb.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ class OracleDb {
105105
this.createPool = nodbUtil.callbackify(createPool).bind(_oracledb);
106106
this.shutdown = nodbUtil.callbackify(shutdown).bind(_oracledb);
107107
this.startup = nodbUtil.callbackify(startup).bind(_oracledb);
108+
this.initOracleClient = this.initOracleClient.bind(_oracledb);
108109
}
109110

110111
// temporary method for determining if an object is a date until

0 commit comments

Comments
 (0)