Skip to content

Commit 1ef9380

Browse files
committed
Test and Copyright year updates
1 parent 55e4fc9 commit 1ef9380

File tree

8 files changed

+43
-12
lines changed

8 files changed

+43
-12
lines changed

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2015, 2023 Oracle and/or its affiliates.
1+
Copyright (c) 2015, 2024 Oracle and/or its affiliates.
22

33
This software is dual-licensed to you under the Universal Permissive License
44
(UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License

NOTICE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Copyright (c) 2015, 2023, Oracle and/or its affiliates.
1+
Copyright (c) 2015, 2024, Oracle and/or its affiliates.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ vulnerability disclosure process.
5050

5151
## License
5252

53-
Copyright (c) 2015, 2023, Oracle and/or its affiliates.
53+
Copyright (c) 2015, 2024, Oracle and/or its affiliates.
5454

5555
This software is dual-licensed to you under the Universal Permissive License
5656
(UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License

doc/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# node-oracledb Documentation for the Oracle Database Node.js Add-on
22

3-
*Copyright (c) 2015, 2023, Oracle and/or its affiliates.*
3+
*Copyright (c) 2015, 2024, Oracle and/or its affiliates.*
44

55
This software is dual-licensed to you under the Universal Permissive License
66
(UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License

doc/src/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
# General substitutions.
3636
project = 'node-oracledb'
37-
copyright = u'2015, 2023, Oracle and/or its affiliates'
37+
copyright = u'2015, 2024, Oracle and/or its affiliates'
3838
author = 'Oracle'
3939

4040
# The default replacements for |version| and |release|, also used in various

doc/src/license.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ License
1010

1111
.. centered:: **LICENSE AGREEMENT FOR node-oracledb**
1212

13-
Copyright |copy| 2015, 2023 Oracle and/or its affiliates.
13+
Copyright |copy| 2015, 2024 Oracle and/or its affiliates.
1414

1515
This software is dual-licensed to you under the Universal Permissive License
1616
(UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License

test/list.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5628,4 +5628,6 @@ oracledb.OUT_FORMAT_OBJECT and resultSet = true
56285628

56295629
293. plsqlWarnings.js
56305630
293.1 Warning on executing PL/SQL procedure
5631-
293.2 Warning from PL/SQL query on a non-existing table
5631+
293.2 Warning from PL/SQL query on a non-existing table
5632+
293.3 Warning from function in a PLSQL query
5633+
293.4 with poolMin=0 with password in grace time with heterogeneous pool

test/plsqlWarnings.js

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,16 @@ const oracledb = require('oracledb');
3636
const dbConfig = require('./dbconfig.js');
3737
const assert = require('assert');
3838

39-
4039
describe('293. plsqlWarnings.js', function() {
40+
let conn;
41+
before(async function() {
42+
conn = await oracledb.getConnection(dbConfig);
43+
});
44+
45+
after(async function() {
46+
await conn.close();
47+
});
48+
4149
it('293.1 Warning on executing PL/SQL procedure', async () => {
4250
const plsql = `
4351
CREATE OR REPLACE PROCEDURE GETDATEPROC(OUTTIME OUT TIMESTAMP) AS
@@ -46,13 +54,11 @@ describe('293. plsqlWarnings.js', function() {
4654
END;
4755
`;
4856

49-
const conn = await oracledb.getConnection(dbConfig);
5057
const result = await conn.execute(plsql);
5158
assert.strictEqual(result.warning.message.startsWith("NJS-700:"), true);
5259

5360
// cleanup
5461
await conn.execute(`DROP PROCEDURE GETDATEPROC`);
55-
await conn.close();
5662
}); // 293.1
5763

5864
// GH issue #823: https://github.com/oracle/node-oracledb/issues/823
@@ -65,13 +71,36 @@ describe('293. plsqlWarnings.js', function() {
6571
end;
6672
`;
6773

68-
const conn = await oracledb.getConnection(dbConfig);
6974
const result = await conn.execute(plsql);
7075
assert.strictEqual(result.warning.message.startsWith("NJS-700:"), true);
7176

7277
// cleanup
7378
await conn.execute(`DROP PROCEDURE test293_2`);
74-
await conn.close();
7579
}); // 293.2
7680

81+
it('293.3 Warning from function in a PLSQL query', async () => {
82+
const plsql = `
83+
create or replace function test293_3 (x in number)
84+
return varchar2(25)
85+
as
86+
f varchar2(25);
87+
begin
88+
f := 'This is a test';
89+
return f;
90+
end test293_3;
91+
`;
92+
93+
const result = await conn.execute(plsql);
94+
assert.strictEqual(result.warning.message.startsWith("NJS-700"), true);
95+
// cleanup
96+
await conn.execute(`DROP function test293_3`);
97+
}); // 293.3
98+
99+
it('293.4 with poolMin=0 with password in grace time with heterogeneous pool', async function() {
100+
const result = await conn.execute(`create or replace procedure selempty(empName in VARCHAR2) AS
101+
BEGIN
102+
select * from emp where ename = empName;
103+
end;`);
104+
assert.strictEqual(result.warning.code.startsWith("NJS-700"), true);
105+
}); // 293.4
77106
});

0 commit comments

Comments
 (0)