You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
standalone connections and pooled connections). This attribute is present
354
+
if a warning is thrown by the database but the operation is otherwise
355
+
completed successfully. The connection will be usable despite the warning.
356
+
357
+
For :ref:`standalone connections <standaloneconnection>`, the error object
358
+
returned by ``connection.warning`` will be present for the lifetime of the
359
+
connection.
360
+
361
+
For :ref:`pooled connections <connpooling>`, the error object returned by
362
+
``connection.warning`` will be cleared when a connection is released to
363
+
the pool using :meth:`connection.close()`.
364
+
365
+
In node-oracledb Thick mode, warnings may be generated during pool
366
+
creation itself. These warnings will be placed on the new connections
367
+
created by the pool, provided no warnings were generated by the individual
368
+
connection creations, in which case those connection warnings will be
369
+
returned.
370
+
345
371
.. _connectionmethods:
346
372
347
373
Connection Methods
@@ -1120,6 +1146,14 @@ Connection Methods
1120
1146
This property is a number. For `DML <https://www.oracle.com/pls/topic/lookup?ctx=dblatest&id=GUID-2E008D4A-F6FD-4F34-9071-7E10419CA24D>`__ statements this contains the number of rows affected, for example the number of rows inserted. For non-DML statements such as queries and PL/SQL statements, ``rowsAffected`` is undefined.
1121
1147
1122
1148
Due to Node.js type limitations, the largest value shown will be 232 - 1, even if more rows were affected. Larger values will wrap.
1149
+
* - ``warning``
1150
+
- .. _execwarning:
1151
+
1152
+
This property provides an :ref:`error <errorobj>` object that gives information about any database warnings (such as PL/SQL compilation warnings) that were generated during the last call to :meth:`connection.execute()`.
1153
+
1154
+
See :ref:`plsqlcompwarnings` for more information.
1155
+
1156
+
.. versionadded:: 6.3
1123
1157
1124
1158
.. method:: connection.executeMany()
1125
1159
@@ -1365,6 +1399,15 @@ Connection Methods
1365
1399
It is only present if a DML statement was executed.
1366
1400
1367
1401
Due to Node.js type limitations, the largest value shown will be 232 - 1, even if more rows were affected. Larger values will wrap.
1402
+
* - ``warning``
1403
+
- Object
1404
+
- .. _execmanywarning:
1405
+
1406
+
This property provides an :ref:`error <errorobj>` object that gives information about any database warnings (such as PL/SQL compilation warnings) that were generated during the last call to :meth:`connection.executeMany()`.
1407
+
1408
+
See :ref:`plsqlcompwarnings` for more information.
0 commit comments