Skip to content

Commit da8722e

Browse files
committed
Use a standard prefix "nodb_" for test objects
1 parent de40aff commit da8722e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+666
-660
lines changed

test/accessTerminatedPoolAttributes.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. */
1+
/* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. */
22

33
/******************************************************************************
44
*
@@ -28,9 +28,10 @@
2828
* Test numbers follow this numbering rule:
2929
* 1 - 20 are reserved for basic functional tests
3030
* 21 - 50 are reserved for data type supporting tests
31-
* 51 - are for other tests
31+
* 51 onwards are for other tests
3232
*
3333
*****************************************************************************/
34+
'use strict';
3435

3536
var oracledb = require('oracledb');
3637
var should = require('should');

test/autoCommit.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. */
1+
/* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. */
22

33
/******************************************************************************
44
*
@@ -28,10 +28,10 @@
2828
* Test numbers follow this numbering rule:
2929
* 1 - 20 are reserved for basic functional tests
3030
* 21 - 50 are reserved for data type supporting tests
31-
* 51 - are for other tests
31+
* 51 onwards are for other tests
3232
*
3333
*****************************************************************************/
34-
"use strict";
34+
'use strict';
3535

3636
var oracledb = require('oracledb');
3737
var should = require('should');
@@ -56,13 +56,13 @@ describe('7. autoCommit.js', function() {
5656
e_table_exists EXCEPTION; \
5757
PRAGMA EXCEPTION_INIT(e_table_exists, -00942); \
5858
BEGIN \
59-
EXECUTE IMMEDIATE ('DROP TABLE oracledb_departments'); \
59+
EXECUTE IMMEDIATE ('DROP TABLE nodb_departments'); \
6060
EXCEPTION \
6161
WHEN e_table_exists \
6262
THEN NULL; \
6363
END; \
6464
EXECUTE IMMEDIATE (' \
65-
CREATE TABLE oracledb_departments ( \
65+
CREATE TABLE nodb_departments ( \
6666
department_id NUMBER, \
6767
department_name VARCHAR2(20) \
6868
) \
@@ -111,7 +111,7 @@ describe('7. autoCommit.js', function() {
111111
async.series([
112112
function(callback) {
113113
connection.execute(
114-
"DROP TABLE oracledb_departments",
114+
"DROP TABLE nodb_departments",
115115
function(err) {
116116
should.not.exist(err);
117117
callback();
@@ -137,7 +137,7 @@ describe('7. autoCommit.js', function() {
137137
oracledb.autoCommit = false; /* Restore to default value */
138138

139139
connection.execute(
140-
"TRUNCATE TABLE oracledb_departments",
140+
"TRUNCATE TABLE nodb_departments",
141141
function(err) {
142142
should.not.exist(err);
143143
done();
@@ -163,7 +163,7 @@ describe('7. autoCommit.js', function() {
163163
},
164164
function(callback) {
165165
conn1.execute(
166-
"INSERT INTO oracledb_departments VALUES (82, 'Security')",
166+
"INSERT INTO nodb_departments VALUES (82, 'Security')",
167167
function(err) {
168168
should.not.exist(err);
169169
callback();
@@ -181,7 +181,7 @@ describe('7. autoCommit.js', function() {
181181
},
182182
function(callback) {
183183
conn2.execute(
184-
"SELECT department_id FROM oracledb_departments WHERE department_name = 'Security'",
184+
"SELECT department_id FROM nodb_departments WHERE department_name = 'Security'",
185185
[],
186186
{ outFormat: oracledb.OBJECT },
187187
function(err, result) {
@@ -193,7 +193,7 @@ describe('7. autoCommit.js', function() {
193193
},
194194
function(callback) {
195195
conn1.execute(
196-
"UPDATE oracledb_departments SET department_id = 101 WHERE department_name = 'Security'",
196+
"UPDATE nodb_departments SET department_id = 101 WHERE department_name = 'Security'",
197197
function(err){
198198
should.not.exist(err);
199199
callback();
@@ -202,7 +202,7 @@ describe('7. autoCommit.js', function() {
202202
},
203203
function(callback) {
204204
conn2.execute(
205-
"SELECT department_id FROM oracledb_departments WHERE department_name = 'Security'",
205+
"SELECT department_id FROM nodb_departments WHERE department_name = 'Security'",
206206
[],
207207
{ outFormat: oracledb.OBJECT },
208208
function(err, result) {
@@ -244,7 +244,7 @@ describe('7. autoCommit.js', function() {
244244
function(callback) {
245245
oracledb.autoCommit = true; // change autoCommit after connection
246246
conn1.execute(
247-
"INSERT INTO oracledb_departments VALUES (82, 'Security')",
247+
"INSERT INTO nodb_departments VALUES (82, 'Security')",
248248
function(err) {
249249
should.not.exist(err);
250250
callback();
@@ -262,7 +262,7 @@ describe('7. autoCommit.js', function() {
262262
},
263263
function(callback) {
264264
conn2.execute(
265-
"SELECT department_id FROM oracledb_departments WHERE department_name = 'Security'",
265+
"SELECT department_id FROM nodb_departments WHERE department_name = 'Security'",
266266
[],
267267
{ outFormat: oracledb.OBJECT },
268268
function(err, result) {
@@ -274,7 +274,7 @@ describe('7. autoCommit.js', function() {
274274
},
275275
function(callback) {
276276
conn1.execute(
277-
"UPDATE oracledb_departments SET department_id = 101 WHERE department_name = 'Security'",
277+
"UPDATE nodb_departments SET department_id = 101 WHERE department_name = 'Security'",
278278
function(err){
279279
should.not.exist(err);
280280
callback();
@@ -283,7 +283,7 @@ describe('7. autoCommit.js', function() {
283283
},
284284
function(callback) {
285285
conn2.execute(
286-
"SELECT department_id FROM oracledb_departments WHERE department_name = 'Security'",
286+
"SELECT department_id FROM nodb_departments WHERE department_name = 'Security'",
287287
[],
288288
{ outFormat: oracledb.OBJECT },
289289
function(err, result) {
@@ -324,7 +324,7 @@ describe('7. autoCommit.js', function() {
324324
},
325325
function(callback) {
326326
conn1.execute(
327-
"INSERT INTO oracledb_departments VALUES (82, 'Security')",
327+
"INSERT INTO nodb_departments VALUES (82, 'Security')",
328328
function(err) {
329329
should.not.exist(err);
330330
callback();
@@ -343,7 +343,7 @@ describe('7. autoCommit.js', function() {
343343
function(callback) {
344344
oracledb.autoCommit = true; // change autoCommit after connection
345345
conn2.execute(
346-
"SELECT department_id FROM oracledb_departments WHERE department_name = 'Security'",
346+
"SELECT department_id FROM nodb_departments WHERE department_name = 'Security'",
347347
[],
348348
{ outFormat: oracledb.OBJECT },
349349
function(err, result) {
@@ -355,7 +355,7 @@ describe('7. autoCommit.js', function() {
355355
},
356356
function(callback) {
357357
conn2.execute(
358-
"INSERT INTO oracledb_departments VALUES (99, 'Marketing')",
358+
"INSERT INTO nodb_departments VALUES (99, 'Marketing')",
359359
function(err) {
360360
should.not.exist(err);
361361
callback();
@@ -364,7 +364,7 @@ describe('7. autoCommit.js', function() {
364364
},
365365
function(callback) {
366366
conn2.execute(
367-
"SELECT COUNT(*) as amount FROM oracledb_departments",
367+
"SELECT COUNT(*) as amount FROM nodb_departments",
368368
[],
369369
{ outFormat: oracledb.OBJECT },
370370
function(err, result) {
@@ -376,7 +376,7 @@ describe('7. autoCommit.js', function() {
376376
},
377377
function(callback) {
378378
conn1.execute(
379-
"SELECT COUNT(*) as amount FROM oracledb_departments",
379+
"SELECT COUNT(*) as amount FROM nodb_departments",
380380
[],
381381
{ outFormat: oracledb.OBJECT },
382382
function(err, result) {

test/autoCommit4nestedExecutes.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. */
1+
/* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. */
22

33
/******************************************************************************
44
*
@@ -33,7 +33,7 @@
3333
* Test numbers follow this numbering rule:
3434
* 1 - 20 are reserved for basic functional tests
3535
* 21 - 50 are reserved for data type supporting tests
36-
* 51 onwards are for other tests
36+
* 51 onwards are for other tests
3737
*
3838
*****************************************************************************/
3939
'use strict';
@@ -51,7 +51,7 @@ describe('63. autoCommit4nestedExecutes.js', function() {
5151
var credential = dbConfig;
5252
}
5353

54-
var tableName = "oracledb_issue269tab";
54+
var tableName = "nodb_issue269tab";
5555
var procName = "issue269proc";
5656
var connection = null;
5757

0 commit comments

Comments
 (0)