Skip to content

Commit dd3b9ce

Browse files
committed
Improve comments in code
1 parent b26df98 commit dd3b9ce

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/errors.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ const ERR_INVALID_SID = 519;
161161
const ERR_TNS_NAMES_FILE_MISSING = 520;
162162
const ERR_CONNECTION_EOF = 521;
163163

164-
// define mapping for ODPI-C errors that need to be wrapped with NJS errors
164+
// define mapping for ODPI-C, OCI & ORA errors that need to be wrapped
165+
// with NJS errors
165166
const adjustErrorXref = new Map();
166167
adjustErrorXref.set("DPI-1010", ERR_CONNECTION_CLOSED);
167168
adjustErrorXref.set("DPI-1024", [ERR_INVALID_COLL_INDEX_GET, 'at index ([0-9]+) does']);

lib/settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class Settings {
6969
// database are returned as though they used the JavaScript time zone
7070
// setting. TIMESTAMP WITH TIME ZONE and TIMESTAMP WITH LOCAL TIME ZONE data
7171
// are returned in native JavaScript format (since they contain time zone
72-
// information).
72+
// information). This is used only in Thick mode (from node-oracledb 6.0.0).
7373
//---------------------------------------------------------------------------
7474
_getDateComponents(useLocal, date) {
7575
if (useLocal) {

0 commit comments

Comments
 (0)