Skip to content

Commit 7715811

Browse files
committed
Minor doc update for 6.8
1 parent 09b317d commit 7715811

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/src/user_guide/interval_data_type.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ If you specify non-integer values in the attributes of IntervalYM object, then
6666
the ``NJS-007`` error is raised.
6767

6868
You can insert IntervalYM objects into an INTERVAL YEAR TO MONTH column by
69-
binding as ``oracledb.DB_TYPE_YM``, for example:
69+
binding as ``oracledb.DB_TYPE_INTERVAL_YM``, for example:
7070

7171
.. code-block:: javascript
7272
7373
await connection.execute(
7474
`INSERT INTO TableIntervalYM VALUES (:bv)`,
75-
{ bv: { val: interval, type: oracledb.DB_TYPE_YM }
75+
{ bv: { val: interval, type: oracledb.DB_TYPE_INTERVAL_YM }
7676
);
7777
7878
.. _fetchintervalyeartomonth:
@@ -139,13 +139,13 @@ If you specify non-integer values in the attributes of IntervalDS object, then
139139
the ``NJS-007`` error is raised.
140140
141141
You can insert IntervalDS objects into an INTERVAL DAY TO SECOND column by
142-
binding as ``oracledb.DB_TYPE_DS``, for example:
142+
binding as ``oracledb.DB_TYPE_INTERVAL_DS``, for example:
143143
144144
.. code-block:: javascript
145145
146146
await connection.execute(
147147
`INSERT INTO TableIntervalDS VALUES (:bv)`,
148-
{ bv: { val: data, type: oracledb.DB_TYPE_DS }
148+
{ bv: { val: data, type: oracledb.DB_TYPE_INTERVAL_DS }
149149
);
150150
151151
.. _fetchintervaldaytosecond:

0 commit comments

Comments
 (0)