Skip to content

Commit ea68e76

Browse files
committed
Use ..._TIMESTAMP_... for constants
1 parent 91ab0ae commit ea68e76

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

doc/api.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ limitations under the License.
2727
- 3.1.2 [Node-oracledb Type Constants](#oracledbconstantsnodbtype)
2828
- [`BLOB`](#oracledbconstantsnodbtype), [`BUFFER`](#oracledbconstantsnodbtype), [`CLOB`](#oracledbconstantsnodbtype), [`CURSOR`](#oracledbconstantsnodbtype), [`DATE`](#oracledbconstantsnodbtype), [`DEFAULT`](#oracledbconstantsnodbtype), [`NUMBER`](#oracledbconstantsnodbtype), [`STRING`](#oracledbconstantsnodbtype)
2929
- 3.1.3 [Oracle Database Type Constants](#oracledbconstantsdbtype)
30-
- [`DB_TYPE_BINARY_DOUBLE`](#oracledbconstantsdbtype), [`DB_TYPE_BINARY_FLOAT`](#oracledbconstantsdbtype), [`DB_TYPE_BLOB`](#oracledbconstantsdbtype), [`DB_TYPE_CLOB`](#oracledbconstantsdbtype), [`DB_TYPE_DATE`](#oracledbconstantsdbtype), [`DB_TYPE_CHAR`](#oracledbconstantsdbtype), [`DB_TYPE_NUMBER`](#oracledbconstantsdbtype), [`DB_TYPE_RAW`](#oracledbconstantsdbtype), [`DB_TYPE_ROWID`](#oracledbconstantsdbtype), [`DB_TYPE_TIMESTAMPLTZ`](#oracledbconstantsdbtype), [`DB_TYPE_TIMESTAMPTZ`](#oracledbconstantsdbtype), [`DB_TYPE_TIMESTAMP`](#oracledbconstantsdbtype), [`DB_TYPE_VARCHAR`](#oracledbconstantsdbtype)
30+
- [`DB_TYPE_BINARY_DOUBLE`](#oracledbconstantsdbtype), [`DB_TYPE_BINARY_FLOAT`](#oracledbconstantsdbtype), [`DB_TYPE_BLOB`](#oracledbconstantsdbtype), [`DB_TYPE_CLOB`](#oracledbconstantsdbtype), [`DB_TYPE_DATE`](#oracledbconstantsdbtype), [`DB_TYPE_CHAR`](#oracledbconstantsdbtype), [`DB_TYPE_NUMBER`](#oracledbconstantsdbtype), [`DB_TYPE_RAW`](#oracledbconstantsdbtype), [`DB_TYPE_ROWID`](#oracledbconstantsdbtype), [`DB_TYPE_TIMESTAMP_LTZ`](#oracledbconstantsdbtype), [`DB_TYPE_TIMESTAMP_TZ`](#oracledbconstantsdbtype), [`DB_TYPE_TIMESTAMP`](#oracledbconstantsdbtype), [`DB_TYPE_VARCHAR`](#oracledbconstantsdbtype)
3131
- 3.1.4 [Execute Bind Direction Constants](#oracledbconstantsbinddir)
3232
- [`BIND_IN`](#oracledbconstantsbinddir), [`BIND_INOUT`](#oracledbconstantsbinddir), [`BIND_OUT`](#oracledbconstantsbinddir)
3333
- 3.2 [Oracledb Properties](#oracledbproperties)
@@ -329,12 +329,12 @@ Oracledb.DB_TYPE_BINARY_FLOAT // (100) BINARY_FLOAT
329329
330330
Oracledb.DB_TYPE_BLOB // (113) BLOB
331331
332+
Oracledb.DB_TYPE_CHAR // (96) CHAR
333+
332334
Oracledb.DB_TYPE_CLOB // (112) CLOB
333335
334336
Oracledb.DB_TYPE_DATE // (12) DATE
335337
336-
Oracledb.DB_TYPE_CHAR // (96) CHAR
337-
338338
Oracledb.DB_TYPE_NUMBER // (2) NUMBER or FLOAT
339339
340340
Oracledb.DB_TYPE_RAW // (23) RAW
@@ -343,9 +343,9 @@ Oracledb.DB_TYPE_ROWID // (104) ROWID
343343
344344
Oracledb.DB_TYPE_TIMESTAMP // (187) TIMESTAMP
345345
346-
Oracledb.DB_TYPE_TIMESTAMPLTZ // (232) TIMESTAMP WITH LOCAL TIME ZONE
346+
Oracledb.DB_TYPE_TIMESTAMP_LTZ // (232) TIMESTAMP WITH LOCAL TIME ZONE
347347
348-
Oracledb.DB_TYPE_TIMESTAMPTZ // (188) TIMESTAMP WITH TIME ZONE
348+
Oracledb.DB_TYPE_TIMESTAMP_TZ // (188) TIMESTAMP WITH TIME ZONE
349349
350350
Oracledb.DB_TYPE_VARCHAR // (1) VARCHAR2
351351
```
@@ -1561,7 +1561,7 @@ additional information is included.
15611561
- `fetchType`: one of the [Node-oracledb Type Constant](#oracledbconstantsnodbtype) values.
15621562
- `dbType`: one of the [Oracle Database Type Constant](#oracledbconstantsdbtype) values.
15631563
- `byteSize`: the database byte size. This is only set for `DB_TYPE_VARCHAR`, `DB_TYPE_CHAR` and `DB_TYPE_RAW` column types.
1564-
- `precision`: set only for `DB_TYPE_NUMBER`, `DB_TYPE_TIMESTAMP`, `DB_TYPE_TIMESTAMPTZ` and `DB_TYPE_TIMESTAMPLTZ` columns.
1564+
- `precision`: set only for `DB_TYPE_NUMBER`, `DB_TYPE_TIMESTAMP`, `DB_TYPE_TIMESTAMP_TZ` and `DB_TYPE_TIMESTAMP_LTZ` columns.
15651565
- `scale`: set only for `DB_TYPE_NUMBER` columns.
15661566
- `nullable`: indicates whether `NULL` values are permitted for this column.
15671567

lib/oracledb.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,11 @@ function extend(oracledb) {
151151
value: 187,
152152
enumerable: true
153153
},
154-
DB_TYPE_TIMESTAMPTZ: {
154+
DB_TYPE_TIMESTAMP_TZ: {
155155
value: 188,
156156
enumerable: true
157157
},
158-
DB_TYPE_TIMESTAMPLTZ: {
158+
DB_TYPE_TIMESTAMP_LTZ: {
159159
value: 232,
160160
enumerable: true
161161
},

0 commit comments

Comments
 (0)