@@ -66,13 +66,13 @@ If you specify non-integer values in the attributes of IntervalYM object, then
66
66
the ``NJS-007 `` error is raised.
67
67
68
68
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:
70
70
71
71
.. code-block :: javascript
72
72
73
73
await connection .execute (
74
74
` INSERT INTO TableIntervalYM VALUES (:bv)` ,
75
- { bv: { val: interval, type: oracledb .DB_TYPE_YM }
75
+ { bv: { val: interval, type: oracledb .DB_TYPE_INTERVAL_YM }
76
76
);
77
77
78
78
.. _fetchintervalyeartomonth :
@@ -139,13 +139,13 @@ If you specify non-integer values in the attributes of IntervalDS object, then
139
139
the ` ` NJS - 007 ` ` error is raised.
140
140
141
141
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:
143
143
144
144
.. code - block:: javascript
145
145
146
146
await connection .execute (
147
147
` INSERT INTO TableIntervalDS VALUES (:bv)` ,
148
- { bv: { val: data, type: oracledb .DB_TYPE_DS }
148
+ { bv: { val: data, type: oracledb .DB_TYPE_INTERVAL_DS }
149
149
);
150
150
151
151
.. _fetchintervaldaytosecond :
0 commit comments