Skip to content

Commit 6491597

Browse files
committed
Update Timestamp tests for daylight savings adjustment
1 parent 8bc9796 commit 6491597

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/bindTimestamp.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2017, 2023, Oracle and/or its affiliates. */
1+
/* Copyright (c) 2017, 2024, Oracle and/or its affiliates. */
22

33
/******************************************************************************
44
*
@@ -86,7 +86,7 @@ describe('102. bindTimestamp.js', function() {
8686
{
8787
i: id,
8888
ts: bv,
89-
tz: bv
89+
tz: {type: oracledb.DB_TYPE_TIMESTAMP_TZ, val: bv }
9090
},
9191
{
9292
autoCommit: true
@@ -203,9 +203,9 @@ describe('102. bindTimestamp.js', function() {
203203
{
204204
i: id,
205205
ts: bv,
206-
tz: bv,
206+
tz: {type: oracledb.DB_TYPE_TIMESTAMP_TZ, val: bv},
207207
oid: {dir: oracledb.BIND_OUT, type: oracledb.NUMBER},
208-
otz: {dir: oracledb.BIND_OUT, type: oracledb.DATE}
208+
otz: {dir: oracledb.BIND_OUT, type: oracledb.DB_TYPE_TIMESTAMP_TZ}
209209
},
210210
{ autoCommit: true});
211211
assert(result);
@@ -276,9 +276,9 @@ describe('102. bindTimestamp.js', function() {
276276
{
277277
i: id,
278278
ts: { val: bv, dir: oracledb.BIND_IN, type: oracledb.DATE },
279-
tz: { val: bv, dir: oracledb.BIND_IN, type: oracledb.DATE },
279+
tz: { val: bv, dir: oracledb.BIND_IN, type: oracledb.DB_TYPE_TIMESTAMP_TZ },
280280
ts1: { dir: oracledb.BIND_OUT, type: oracledb.DATE },
281-
tz1: { dir: oracledb.BIND_OUT, type: oracledb.DATE }
281+
tz1: { dir: oracledb.BIND_OUT, type: oracledb.DB_TYPE_TIMESTAMP_TZ }
282282
},
283283
{ autoCommit: true});
284284

0 commit comments

Comments
 (0)