Initial test and documentation updates

This commit is contained in:
Sharad Chandran R 2024-01-03 11:59:40 +05:30
parent 43d0e51fe3
commit faa59030b5
4 changed files with 5 additions and 17 deletions

View File

@ -1399,15 +1399,6 @@ Connection Methods
It is only present if a DML statement was executed.
Due to Node.js type limitations, the largest value shown will be 232 - 1, even if more rows were affected. Larger values will wrap.
* - ``warning``
- Object
- .. _execmanywarning:
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()`.
See :ref:`plsqlcompwarnings` for more information.
.. versionadded:: 6.3
.. method:: connection.getDbObjectClass()

View File

@ -16,10 +16,7 @@ Common Changes
#) Added a :ref:`warning <execwarning>` property to the
:ref:`result <resultobject>` object for database warnings (such as PL/SQL
compilation warnings) that are generated by calls to
:meth:`connection.execute()`. Also, added the
:ref:`warning <execmanywarning>` property to the
:ref:`result <resultobjproperties>` object of
:meth:`connection.executeMany()`.
:meth:`connection.execute()`.
#) Added a :attr:`connection.warning` property for warnings (such as the
password being in the grace period) that are generated during connection.

View File

@ -940,7 +940,7 @@ Overview of node-oracledb functional tests
63.1 nested execute() functions
64. sqlWithWarnings.js
64.1 test case offered by GitHub user
64.1 SQL - Success With Info
64.1.1 Executes an aggregate query which causes warnings
64.2 PL/SQL - Success With Info
64.2.1 Execute SQL Statement to create PLSQL procedure with warnings

View File

@ -31,7 +31,7 @@
* table will result in warnings (OCI_SUCCESS_WITH_INFO).
*
*****************************************************************************/
"use strict";
'use strict';
const oracledb = require('oracledb');
const assert = require('assert');
@ -48,7 +48,7 @@ describe('64. sqlWithWarnings.js', function() {
await connection.close();
});
describe('64.1 test case offered by GitHub user', function() {
describe('64.1 SQL - Success With Info', function() {
const tableName = "nodb_aggregate";
@ -102,7 +102,7 @@ describe('64. sqlWithWarnings.js', function() {
it('64.2.1 Execute SQL Statement to create PLSQL procedure with warnings', async function() {
assert.strictEqual(typeof connection, "object");
await connection.execute (plsqlWithWarning);
await connection.execute(plsqlWithWarning);
}); // 64.2.1
}); // 64.2