Update tests: fix multiple SQL calls. Add tests for potential off-by-one cases

This commit is contained in:
Christopher Jones 2017-12-13 09:17:50 +11:00
parent 3dbbf8c1c6
commit 6766e176c3
9 changed files with 548 additions and 265 deletions

View File

@ -132,32 +132,25 @@ describe("149. fetchArraySize2.js", function() {
var resultLenExpected = maxRowsVal > (1000-affectedID) ? (1000-affectedID) : maxRowsVal;
if(maxRowsVal === 0) resultLenExpected = 1000 - affectedID;
should.strictEqual(result.rows.length, resultLenExpected);
verifyResult(result.rows, cb);
verifyResult(result.rows, affectedID, cb);
}
);
};
var verifyResult = function(rows, cb) {
async.each(
rows,
verifyEachRow,
function(err) {
should.not.exist(err);
return cb();
}
);
var verifyResult = function(result, affectedID, callback) {
async.forEach(result, function(element, cb) {
var index = result.indexOf(element);
verifyEachRow(index+1+affectedID, element);
cb();
}, function(err) {
should.not.exist(err);
callback();
});
};
var verifyEachRow = function(row, cb) {
var querySql = "select * from " + tableName + " where id = " + row[0];
connection.execute(
querySql,
function(err, result){
should.strictEqual(row[1], result.rows[0][1]);
should.strictEqual(row[0], result.rows[0][0]);
return cb(err);
}
);
var verifyEachRow = function(index, element) {
should.strictEqual(element[1], String(index));
should.strictEqual(element[0], index);
};
it("149.1.1 maxRows > table size > oracledb.fetchArraySize", function(done) {
@ -243,6 +236,20 @@ describe("149. fetchArraySize2.js", function() {
var affectedID = 0;
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
});
it("149.1.13 maxRows = (table size - 1), fetchArraySize = table size ", function(done) {
var fetchArraySizeVal = 1000;
var maxRowsVal = 999;
var affectedID = 0;
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
});
it("149.1.14 fetchArraySize = (table size - 1), maxRows = table size ", function(done) {
var fetchArraySizeVal = 999;
var maxRowsVal = 1000;
var affectedID = 0;
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
});
});
describe("149.2 REF CURSORS with different numRows and oracledb.fetchArraySize", function() {
@ -400,6 +407,18 @@ describe("149. fetchArraySize2.js", function() {
var numRowsVal = 210;
testRefCursor(fetchArraySizeVal, numRowsVal, done);
});
it("149.2.11 numRows = (table size - 1), fetchArraySize = table size", function(done) {
var fetchArraySizeVal = 1000;
var numRowsVal = 999;
testRefCursor(fetchArraySizeVal, numRowsVal, done);
});
it("149.2.12 fetchArraySize = (table size - 1), numRows = table size", function(done) {
var fetchArraySizeVal = 999;
var numRowsVal = 1000;
testRefCursor(fetchArraySizeVal, numRowsVal, done);
});
});
describe("149.3 queryStream() with different maxRows and oracledb.fetchArraySize", function() {
@ -434,7 +453,7 @@ describe("149. fetchArraySize2.js", function() {
oracledb.fetchArraySize = fetchArraySizeVal;
oracledb.maxRows = maxRowsVal;
var resultLenExpected = 1000-affectedID;
var querySql = "select * from " + tableName + " where id > " + affectedID + "order by id";
var querySql = "select * from " + tableName + " where id > " + affectedID + " order by id";
var stream = connection.queryStream(querySql);
stream.on('error', function (error) {
@ -445,7 +464,7 @@ describe("149. fetchArraySize2.js", function() {
stream.on('data', function(data) {
should.exist(data);
counter = counter + 1;
verifyResult(data);
verifyResult(data, counter, affectedID);
});
stream.on('end', function() {
@ -454,15 +473,9 @@ describe("149. fetchArraySize2.js", function() {
});
};
var verifyResult = function(data) {
connection.execute(
"select * from " + tableName + " where id = " + data[0],
function(err, result) {
should.not.exist(err);
should.strictEqual(data[0], result.rows[0][0]);
should.strictEqual(data[1], result.rows[0][1]);
}
);
var verifyResult = function(data, counter, affectedID) {
should.strictEqual(data[0], counter + affectedID);
should.strictEqual(data[1], String(counter + affectedID));
};
it("149.3.1 maxRows > table size > oracledb.fetchArraySize", function(done) {
@ -548,6 +561,20 @@ describe("149. fetchArraySize2.js", function() {
var affectedID = 0;
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
});
it("149.3.13 maxRows = (table size - 1), fetchArraySize = table size ", function(done) {
var fetchArraySizeVal = 1000;
var maxRowsVal = 999;
var affectedID = 0;
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
});
it("149.3.14 fetchArraySize = (table size - 1), maxRows = table size ", function(done) {
var fetchArraySizeVal = 999;
var maxRowsVal = 1000;
var affectedID = 0;
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
});
});
});

View File

@ -143,7 +143,7 @@ describe("150. fetchArraySize3.js", function() {
function(err, result) {
should.not.exist(err);
should.strictEqual(result.rows.length, 1000 - affectedRowId);
verifyResult(result.rows);
verifyResult(result.rows, affectedRowId);
callback();
}
);
@ -151,31 +151,39 @@ describe("150. fetchArraySize3.js", function() {
], cb);
};
var verifyResult = function(result) {
var verifyResult = function(result, affectedRowId) {
async.forEach(result, function(element, cb) {
var index = result.indexOf(element);
should.strictEqual(element[0], index+50+1);
should.strictEqual(element[1], "something");
verifyEachRow(index+1+affectedRowId, element);
cb();
}, function(err) {
should.not.exist(err);
});
};
var verifyEachRow = function(index, element) {
should.strictEqual(element[0], index);
should.strictEqual(element[1], "something");
};
it("150.1.1 oracledb.fetchArraySize = 1", function(done) {
dmlBinding(1, 50, done);
});
it("150.1.2 oracledb.fetchArraySize = 50", function(done) {
dmlBinding(50, 50, done);
dmlBinding(50, 0, done);
});
it("150.1.3 oracledb.fetchArraySize = 100", function(done) {
dmlBinding(100, 50, done);
dmlBinding(100, 2, done);
});
it("150.1.4 oracledb.fetchArraySize = 1000", function(done) {
dmlBinding(1000, 50, done);
dmlBinding(1000, 1, done);
});
it("150.1.5 oracledb.fetchArraySize = (table size - 1)", function(done) {
dmlBinding(999, 0, done);
});
});
@ -283,8 +291,7 @@ describe("150. fetchArraySize3.js", function() {
var proc_verifyResult_inout = function(result, updateFromId, callback) {
async.forEach(result, function(element, cb) {
var index = result.indexOf(element);
var expectedTail = index + updateFromId + 1;
should.strictEqual(element, "something new " + expectedTail);
proc_verifyEachRows_inout(index, element, updateFromId);
cb();
}, function(err) {
should.not.exist(err);
@ -292,6 +299,11 @@ describe("150. fetchArraySize3.js", function() {
});
};
var proc_verifyEachRows_inout = function(index, element, updateFromId) {
var expectedTail = index + updateFromId + 1;
should.strictEqual(element, "something new " + expectedTail);
};
var proc_query_out = function(maxArraySizeVal, fetchArraySizeVal, cb) {
oracledb.fetchArraySize = fetchArraySizeVal;
connection.execute(
@ -311,13 +323,17 @@ describe("150. fetchArraySize3.js", function() {
var proc_verifyResult_out = function(result) {
async.forEach(result, function(element, cb) {
var index = result.indexOf(element);
should.strictEqual(element, index+1);
proc_verifyEachRow_out(index, element);
cb();
}, function(err) {
should.not.exist(err);
});
};
var proc_verifyEachRow_out = function(index, element) {
should.strictEqual(element, index+1);
};
it("150.2.1 Bind OUT with oracledb.fetchArraySize = 1", function(done) {
var maxArraySizeVal = 1000;
var fetchArraySizeVal = 1;
@ -342,34 +358,47 @@ describe("150. fetchArraySize3.js", function() {
proc_query_out(maxArraySizeVal, fetchArraySizeVal, done);
});
it("150.2.5 Bind IN OUT with oracledb.fetchArraySize = 1", function(done) {
it("150.2.5 Bind OUT with oracledb.fetchArraySize = (table size - 1)", function(done) {
var maxArraySizeVal = 2000;
var fetchArraySizeVal = 999;
proc_query_out(maxArraySizeVal, fetchArraySizeVal, done);
});
it("150.2.6 Bind IN OUT with oracledb.fetchArraySize = 1", function(done) {
var updateFromId = 20;
var maxArraySizeVal = 1000;
var fetchArraySizeVal = 1;
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
});
it("150.2.6 Bind IN OUT with oracledb.fetchArraySize = 50", function(done) {
it("150.2.7 Bind IN OUT with oracledb.fetchArraySize = 50", function(done) {
var updateFromId = 20;
var maxArraySizeVal = 1000;
var fetchArraySizeVal = 50;
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
});
it("150.2.7 Bind IN OUT with oracledb.fetchArraySize = 100", function(done) {
it("150.2.8 Bind IN OUT with oracledb.fetchArraySize = 100", function(done) {
var updateFromId = 10;
var maxArraySizeVal = 2000;
var fetchArraySizeVal = 100;
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
});
it("150.2.8 Bind IN OUT with oracledb.fetchArraySize = 1000", function(done) {
it("150.2.9 Bind IN OUT with oracledb.fetchArraySize = 1000", function(done) {
var updateFromId = 5;
var maxArraySizeVal = 2000;
var fetchArraySizeVal = 1000;
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
});
it("150.2.10 Bind IN OUT with oracledb.fetchArraySize = (table size - 1)", function(done) {
var updateFromId = 0;
var maxArraySizeVal = 2000;
var fetchArraySizeVal = 999;
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
});
});
describe("150.3 function binding", function() {
@ -483,19 +512,22 @@ describe("150. fetchArraySize3.js", function() {
should.strictEqual(result.length, rowsAffected);
async.forEach(result, function(element, cb) {
var index = result.indexOf(element);
if(typeof element === "string") {
var expectedTail = index + updateFromId + 1;
should.strictEqual(element, "something new " + expectedTail);
} else if(typeof element === "number") {
should.strictEqual(element, index + 1 + updateFromId);
}
fun_verifyEachRow_inout(index, element, updateFromId);
cb();
}, function(err) {
should.not.exist(err);
});
};
var fun_verifyEachRow_inout = function(index, element, updateFromId) {
if(typeof element === "string") {
var expectedTail = index + updateFromId + 1;
should.strictEqual(element, "something new " + expectedTail);
} else if(typeof element === "number") {
should.strictEqual(element, index + 1 + updateFromId);
}
};
var fun_query_out = function(affectFromId, maxArraySizeVal, fetchArraySizeVal, cb) {
oracledb.fetchArraySize = fetchArraySizeVal;
connection.execute(
@ -516,13 +548,17 @@ describe("150. fetchArraySize3.js", function() {
var fun_verifyResult_out = function(result, affectFromId) {
async.forEach(result, function(element, cb) {
var index = result.indexOf(element);
should.strictEqual(element, index+1+affectFromId);
fun_verifyEachRow_out(index, element, affectFromId);
cb();
}, function(err) {
should.not.exist(err);
});
};
var fun_verifyEachRow_out = function(index, element, affectFromId) {
should.strictEqual(element, index+1+affectFromId);
};
it("150.3.1 Bind OUT with oracledb.fetchArraySize = 1", function(done) {
var affectFromId = 10;
var maxArraySizeVal = 1000;
@ -551,34 +587,48 @@ describe("150. fetchArraySize3.js", function() {
fun_query_out(affectFromId, maxArraySizeVal, fetchArraySizeVal, done);
});
it("150.3.5 Bind IN OUT with oracledb.fetchArraySize = 1", function(done) {
it("150.3.5 Bind OUT with oracledb.fetchArraySize = (table size - 1)", function(done) {
var affectFromId = 0;
var maxArraySizeVal = 10000;
var fetchArraySizeVal = 999;
fun_query_out(affectFromId, maxArraySizeVal, fetchArraySizeVal, done);
});
it("150.3.6 Bind IN OUT with oracledb.fetchArraySize = 1", function(done) {
var updateFromId = 20;
var maxArraySizeVal = 1000;
var fetchArraySizeVal = 1;
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
});
it("150.3.6 Bind IN OUT with oracledb.fetchArraySize = 50", function(done) {
it("150.3.7 Bind IN OUT with oracledb.fetchArraySize = 50", function(done) {
var updateFromId = 20;
var maxArraySizeVal = 1000;
var fetchArraySizeVal = 50;
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
});
it("150.3.7 Bind IN OUT with oracledb.fetchArraySize = 100", function(done) {
it("150.3.8 Bind IN OUT with oracledb.fetchArraySize = 100", function(done) {
var updateFromId = 10;
var maxArraySizeVal = 2000;
var fetchArraySizeVal = 100;
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
});
it("150.3.8 Bind IN OUT with oracledb.fetchArraySize = 1000", function(done) {
it("150.3.9 Bind IN OUT with oracledb.fetchArraySize = 1000", function(done) {
var updateFromId = 5;
var maxArraySizeVal = 2000;
var fetchArraySizeVal = 1000;
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
});
it("150.3.10 Bind IN OUT with oracledb.fetchArraySize = (table size - 1)", function(done) {
var updateFromId = 0;
var maxArraySizeVal = 2000;
var fetchArraySizeVal = 999;
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
});
});
});

View File

@ -215,6 +215,18 @@ describe("151. fetchArraySize4.js", function() {
testGetRow(fetchArraySizeVal, numRowsVal, done);
});
it("151.1.11 numRows = (table size - 1), fetchArraySize = table size", function(done) {
var fetchArraySizeVal = 1000;
var numRowsVal = 999;
testGetRow(fetchArraySizeVal, numRowsVal, done);
});
it("151.1.12 fetchArraySize = (table size - 1), numRows = table size", function(done) {
var fetchArraySizeVal = 999;
var numRowsVal = 1000;
testGetRow(fetchArraySizeVal, numRowsVal, done);
});
});
describe("151.2 getRow() of resultSet = true", function() {
@ -303,6 +315,10 @@ describe("151. fetchArraySize4.js", function() {
testGetRows(1000, done);
});
it("151.2.7 oracledb.fetchArraySize = (table size - 1)", function(done) {
testGetRows(999, done);
});
});
describe("151.3 interleaved calls to getRow() and getRows()", function() {
@ -450,6 +466,13 @@ describe("151. fetchArraySize4.js", function() {
testRS(fetchArraySizeVal, done);
});
it("151.3.6 oracledb.fetchArraySize = (table size - 1)", function(done) {
var fetchArraySizeVal = 999;
numRowsVal_1 = 999;
numRowsVal_2 = 1000;
testRS(fetchArraySizeVal, done);
});
});
});

View File

@ -24,7 +24,7 @@
* DESCRIPTION
* Basic test of fetching data from database with different execute() option
* fetchArraySize, oracledb.maxRows, and numRows.
* maxRows specifies maximum number of rows that are fetched by the execute()
* maxRows specifies maximum number of rows that are fetched by the execute()
* call of the Connection object when not using a ResultSet.
* Tests including:
* basic fetch tests with different fetchArraySize and oracledb.maxRows.
@ -133,32 +133,25 @@ describe("152. fetchArraySize5.js", function() {
var resultLenExpected = maxRowsVal > (1000-affectedID) ? (1000-affectedID) : maxRowsVal;
if(maxRowsVal === 0) resultLenExpected = 1000 - affectedID;
should.strictEqual(result.rows.length, resultLenExpected);
verifyResult(result.rows, cb);
verifyResult(result.rows, affectedID, cb);
}
);
};
var verifyResult = function(rows, cb) {
async.each(
rows,
verifyEachRow,
function(err) {
should.not.exist(err);
return cb();
}
);
var verifyResult = function(result, affectedID, callback) {
async.forEach(result, function(element, cb) {
var index = result.indexOf(element);
verifyEachRow(index+1+affectedID, element);
cb();
}, function(err) {
should.not.exist(err);
callback();
});
};
var verifyEachRow = function(row, cb) {
var querySql = "select * from " + tableName + " where id = " + row[0];
connection.execute(
querySql,
function(err, result){
should.strictEqual(row[1], result.rows[0][1]);
should.strictEqual(row[0], result.rows[0][0]);
return cb(err);
}
);
var verifyEachRow = function(index, element) {
should.strictEqual(element[1], String(index));
should.strictEqual(element[0], index);
};
it("152.1.1 maxRows > table size > fetchArraySize", function(done) {
@ -231,12 +224,26 @@ describe("152. fetchArraySize5.js", function() {
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
});
it("152.1.11 maxRows =0, fetchArraySize = table size ", function(done) {
it("152.1.11 maxRows = 0, fetchArraySize = table size ", function(done) {
var fetchArraySizeVal = 1000;
var maxRowsVal = 0;
var affectedID = 0;
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
});
it("152.1.12 maxRows = (table size - 1), fetchArraySize = table size ", function(done) {
var fetchArraySizeVal = 1000;
var maxRowsVal = 999;
var affectedID = 0;
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
});
it("152.1.13 fetchArraySize = (table size - 1), maxRows = table size ", function(done) {
var fetchArraySizeVal = 999;
var maxRowsVal = 1000;
var affectedID = 0;
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
});
});
describe("152.2 REF CURSORS with different numRows and fetchArraySize", function() {
@ -395,6 +402,18 @@ describe("152. fetchArraySize5.js", function() {
var numRowsVal = 210;
testRefCursor(fetchArraySizeVal, numRowsVal, done);
});
it("152.2.11 numRows = (table size - 1), fetchArraySize = table size", function(done) {
var fetchArraySizeVal = 1000;
var numRowsVal = 999;
testRefCursor(fetchArraySizeVal, numRowsVal, done);
});
it("152.2.12 fetchArraySize = (table size - 1), numRows = table size", function(done) {
var fetchArraySizeVal = 999;
var numRowsVal = 1000;
testRefCursor(fetchArraySizeVal, numRowsVal, done);
});
});
describe("152.3 queryStream() with different maxRows and fetchArraySize", function() {
@ -427,7 +446,7 @@ describe("152. fetchArraySize5.js", function() {
var testQueryStream = function(fetchArraySizeVal, maxRowsVal, affectedID, cb) {
oracledb.maxRows = maxRowsVal;
var resultLenExpected = 1000-affectedID;
var querySql = "select * from " + tableName + " where id > " + affectedID + "order by id";
var querySql = "select * from " + tableName + " where id > " + affectedID + " order by id";
var stream = connection.queryStream(querySql, [], {fetchArraySize: fetchArraySizeVal});
stream.on('error', function (error) {
@ -438,7 +457,7 @@ describe("152. fetchArraySize5.js", function() {
stream.on('data', function(data) {
should.exist(data);
counter = counter + 1;
verifyResult(data);
verifyResult(data, counter, affectedID);
});
stream.on('end', function() {
@ -447,15 +466,9 @@ describe("152. fetchArraySize5.js", function() {
});
};
var verifyResult = function(data) {
connection.execute(
"select * from " + tableName + " where id = " + data[0],
function(err, result) {
should.not.exist(err);
should.strictEqual(data[0], result.rows[0][0]);
should.strictEqual(data[1], result.rows[0][1]);
}
);
var verifyResult = function(data, counter, affectedID) {
should.strictEqual(data[0], counter + affectedID);
should.strictEqual(data[1], String(counter + affectedID));
};
it("152.3.1 maxRows > table size > fetchArraySize", function(done) {
@ -534,6 +547,20 @@ describe("152. fetchArraySize5.js", function() {
var affectedID = 0;
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
});
it("152.3.12 maxRows = (table size - 1), fetchArraySize = table size", function(done) {
var fetchArraySizeVal = 1000;
var maxRowsVal = 999;
var affectedID = 0;
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
});
it("152.3.13 fetchArraySize = (table size - 1), maxRows = table size", function(done) {
var fetchArraySizeVal = 999;
var maxRowsVal = 1000;
var affectedID = 0;
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
});
});
});

View File

@ -145,7 +145,7 @@ describe("153. fetchArraySize6.js", function() {
function(err, result) {
should.not.exist(err);
should.strictEqual(result.rows.length, 1000 - affectedRowId);
verifyResult(result.rows);
verifyResult(result.rows, affectedRowId);
callback();
}
);
@ -153,10 +153,10 @@ describe("153. fetchArraySize6.js", function() {
], cb);
};
var verifyResult = function(result) {
var verifyResult = function(result, affectedRowId) {
async.forEach(result, function(element, cb) {
var index = result.indexOf(element);
should.strictEqual(element[0], index+50+1);
should.strictEqual(element[0], index+affectedRowId+1);
should.strictEqual(element[1], "something");
cb();
}, function(err) {
@ -169,15 +169,19 @@ describe("153. fetchArraySize6.js", function() {
});
it("153.1.2 fetchArraySize = 50", function(done) {
dmlBinding(50, 50, done);
dmlBinding(50, 51, done);
});
it("153.1.3 fetchArraySize = 100", function(done) {
dmlBinding(100, 50, done);
dmlBinding(100, 2, done);
});
it("153.1.4 fetchArraySize = 1000", function(done) {
dmlBinding(1000, 50, done);
dmlBinding(1000, 38, done);
});
it("153.1.5 fetchArraySize = (table size - 1)", function(done) {
dmlBinding(1000, 0, done);
});
});
@ -347,34 +351,47 @@ describe("153. fetchArraySize6.js", function() {
proc_query_out(maxArraySizeVal, fetchArraySizeVal, done);
});
it("153.2.5 Bind IN OUT with fetchArraySize = 1", function(done) {
it("153.2.5 Bind OUT with fetchArraySize = (table size - 1)", function(done) {
var maxArraySizeVal = 2000;
var fetchArraySizeVal = 999;
proc_query_out(maxArraySizeVal, fetchArraySizeVal, done);
});
it("153.2.6 Bind IN OUT with fetchArraySize = 1", function(done) {
var updateFromId = 20;
var maxArraySizeVal = 1000;
var fetchArraySizeVal = 1;
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
});
it("153.2.6 Bind IN OUT with fetchArraySize = 50", function(done) {
it("153.2.7 Bind IN OUT with fetchArraySize = 50", function(done) {
var updateFromId = 20;
var maxArraySizeVal = 1000;
var fetchArraySizeVal = 50;
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
});
it("153.2.7 Bind IN OUT with fetchArraySize = 100", function(done) {
it("153.2.8 Bind IN OUT with fetchArraySize = 100", function(done) {
var updateFromId = 10;
var maxArraySizeVal = 2000;
var fetchArraySizeVal = 100;
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
});
it("153.2.8 Bind IN OUT with fetchArraySize = 1000", function(done) {
it("153.2.9 Bind IN OUT with fetchArraySize = 1000", function(done) {
var updateFromId = 5;
var maxArraySizeVal = 2000;
var fetchArraySizeVal = 1000;
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
});
it("153.2.10 Bind IN OUT with fetchArraySize = (table size - 1)", function(done) {
var updateFromId = 0;
var maxArraySizeVal = 2000;
var fetchArraySizeVal = 999;
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
});
});
describe("153.3 function binding", function() {
@ -553,40 +570,54 @@ describe("153. fetchArraySize6.js", function() {
});
it("153.3.4 Bind OUT with fetchArraySize = 1000", function(done) {
var affectFromId = 100;
var affectFromId = 29;
var maxArraySizeVal = 10000;
var fetchArraySizeVal = 1000;
fun_query_out(affectFromId, maxArraySizeVal, fetchArraySizeVal, done);
});
it("153.3.5 Bind IN OUT with fetchArraySize = 1", function(done) {
it("153.3.5 Bind OUT with fetchArraySize = (table size - 1)", function(done) {
var affectFromId = 0;
var maxArraySizeVal = 10000;
var fetchArraySizeVal = 999;
fun_query_out(affectFromId, maxArraySizeVal, fetchArraySizeVal, done);
});
it("153.3.6 Bind IN OUT with fetchArraySize = 1", function(done) {
var updateFromId = 20;
var maxArraySizeVal = 1000;
var fetchArraySizeVal = 1;
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
});
it("153.3.6 Bind IN OUT with fetchArraySize = 50", function(done) {
it("153.3.7 Bind IN OUT with fetchArraySize = 50", function(done) {
var updateFromId = 20;
var maxArraySizeVal = 1000;
var fetchArraySizeVal = 50;
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
});
it("153.3.7 Bind IN OUT with fetchArraySize = 100", function(done) {
it("153.3.8 Bind IN OUT with fetchArraySize = 100", function(done) {
var updateFromId = 10;
var maxArraySizeVal = 2000;
var fetchArraySizeVal = 100;
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
});
it("153.3.8 Bind IN OUT with fetchArraySize = 1000", function(done) {
it("153.3.9 Bind IN OUT with fetchArraySize = 1000", function(done) {
var updateFromId = 5;
var maxArraySizeVal = 2000;
var fetchArraySizeVal = 1000;
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
});
it("153.3.10 Bind IN OUT with fetchArraySize = (table size - 1)", function(done) {
var updateFromId = 0;
var maxArraySizeVal = 2000;
var fetchArraySizeVal = 999;
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
});
});
});

View File

@ -215,6 +215,18 @@ describe("154. fetchArraySize7.js", function() {
testGetRow(fetchArraySizeVal, numRowsVal, done);
});
it("154.1.11 numRows = (table size - 1), fetchArraySize = table size", function(done) {
var fetchArraySizeVal = 1000;
var numRowsVal = 999;
testGetRow(fetchArraySizeVal, numRowsVal, done);
});
it("154.1.12 fetchArraySize = (table size - 1), numRows = table size", function(done) {
var fetchArraySizeVal = 999;
var numRowsVal = 1000;
testGetRow(fetchArraySizeVal, numRowsVal, done);
});
});
describe("154.2 getRow() of resultSet = true", function() {
@ -304,6 +316,10 @@ describe("154. fetchArraySize7.js", function() {
testGetRows(1000, done);
});
it("154.2.7 fetchArraySize = (table size - 1)", function(done) {
testGetRows(999, done);
});
});
describe("154.3 interleaved calls to getRow() and getRows()", function() {
@ -452,6 +468,13 @@ describe("154. fetchArraySize7.js", function() {
testRS(fetchArraySizeVal, done);
});
it("154.3.7 fetchArraySize = (table size - 1)", function(done) {
var fetchArraySizeVal = 999;
numRowsVal_1 = 999;
numRowsVal_2 = 1000;
testRS(fetchArraySizeVal, done);
});
});
});

View File

@ -218,6 +218,22 @@ describe("155. fetchArraySize8.js", function() {
var affectedID = 0;
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
});
it("155.1.12 maxRows = (table size - 1), fetchArraySize = table size ", function(done) {
var tableSize = 100;
var fetchArraySizeVal = 100;
var maxRowsVal = 99;
var affectedID = 0;
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
});
it("155.1.13 fetchArraySize = (table size - 1), maxRows = table size ", function(done) {
var tableSize = 20;
var fetchArraySizeVal = 19;
var maxRowsVal = 20;
var affectedID = 0;
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
});
});
describe("155.2 Streaming clobs with different execute() option fetchArraySize", function() {
@ -357,6 +373,22 @@ describe("155. fetchArraySize8.js", function() {
var affectedID = 0;
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
});
it("155.2.12 maxRows = (table size - 1), fetchArraySize = table size ", function(done) {
var tableSize = 20;
var fetchArraySizeVal = 20;
var maxRowsVal = 19;
var affectedID = 0;
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
});
it("155.2.13 fetchArraySize = (table size - 1), maxRows = table size ", function(done) {
var tableSize = 20;
var fetchArraySizeVal = 19;
var maxRowsVal = 20;
var affectedID = 0;
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
});
});
var insertData = function(tableSize, cb) {
@ -393,7 +425,7 @@ describe("155. fetchArraySize8.js", function() {
};
var verifyResult = function(rows, cb) {
async.each(
async.eachSeries(
rows,
verifyEachRow,
function(err) {

View File

@ -222,6 +222,22 @@ describe("156. fetchArraySize9.js", function() {
var affectedID = 0;
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
});
it("156.1.12 maxRows = (table size - 1), fetchArraySize = table size ", function(done) {
var tableSize = 100;
var fetchArraySizeVal = 100;
var maxRowsVal = 99;
var affectedID = 0;
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
});
it("156.1.13 fetchArraySize = (table size - 1), maxRows = table size ", function(done) {
var tableSize = 100;
var fetchArraySizeVal = 99;
var maxRowsVal = 100;
var affectedID = 0;
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
});
});
describe("156.2 Streaming blobs with different execute() option fetchArraySize", function() {
@ -361,6 +377,22 @@ describe("156. fetchArraySize9.js", function() {
var affectedID = 0;
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
});
it("156.2.12 maxRows = (table size - 1), fetchArraySize = table size ", function(done) {
var tableSize = 100;
var fetchArraySizeVal = 100;
var maxRowsVal = 99;
var affectedID = 0;
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
});
it("156.2.13 fetchArraySize = (table size - 1), maxRows = table size ", function(done) {
var tableSize = 100;
var fetchArraySizeVal = 99;
var maxRowsVal = 100;
var affectedID = 0;
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
});
});
var insertData = function(i, cb) {
@ -380,7 +412,7 @@ describe("156. fetchArraySize9.js", function() {
};
var verifyResult = function(rows, cb) {
async.each(
async.eachSeries(
rows,
verifyEachRow,
function(err) {

View File

@ -3736,232 +3736,270 @@ Overview of node-oracledb functional tests
149. fetchArraySize2.js
149.1 basic fetch with different maxRows and oracledb.fetchArraySize
149.1.1 maxRow > table size > oracledb.fetchArraySize
149.1.2 maxRow > oracledb.fetchArraySize > table size
149.1.3 table size > maxRow > oracledb.fetchArraySize
149.1.1 maxRows > table size > oracledb.fetchArraySize
149.1.2 maxRows > oracledb.fetchArraySize > table size
149.1.3 table size > maxRows > oracledb.fetchArraySize
149.1.4 table size > oracledb.fetchArraySize > maxRow
149.1.5 maxRow = oracledb.fetchArraySize < table size
149.1.6 maxRow = oracledb.fetchArraySize = table size
149.1.7 maxRow = oracledb.fetchArraySize > table size
149.1.8 maxRow = oracledb.fetchArraySize/10
149.1.9 maxRow = 10 * oracledb.fetchArraySize
149.1.5 maxRows = oracledb.fetchArraySize < table size
149.1.6 maxRows = oracledb.fetchArraySize = table size
149.1.7 maxRows = oracledb.fetchArraySize > table size
149.1.8 maxRows = oracledb.fetchArraySize/10
149.1.9 maxRows = 10 * oracledb.fetchArraySize
149.1.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10
149.1.11 maxRows =0, fetchArraySize = table size
149.1.12 maxRows = 9999999, fetchArraySize = table size
149.1.11 maxRows = 0, fetchArraySize = table size
149.1.12 maxRows = 9999999, fetchArraySize = table size
149.1.13 maxRows = (table size - 1), fetchArraySize = table size
149.1.14 fetchArraySize = (table size - 1), maxRows = table size
149.2 REF CURSORS with different numRows and oracledb.fetchArraySize
149.2.1 numRows > table size > oracledb.fetchArraySize
149.2.2 numRows > oracledb.fetchArraySize > table size
149.2.3 table size > numRows > oracledb.fetchArraySize
149.2.1 numRows > table size > oracledb.fetchArraySize
149.2.2 numRows > oracledb.fetchArraySize > table size
149.2.3 table size > numRows > oracledb.fetchArraySize
149.2.4 table size > oracledb.fetchArraySize > maxRow
149.2.5 numRows = oracledb.fetchArraySize < table size
149.2.6 numRows = oracledb.fetchArraySize = table size
149.2.7 numRows = oracledb.fetchArraySize > table size
149.2.7 numRows = oracledb.fetchArraySize > table size
149.2.8 numRows = oracledb.fetchArraySize/10
149.2.9 numRows = 10 * oracledb.fetchArraySize
149.2.10 numRows > fetchArraySize, fetchArraySize = (table size)/10
149.2.11 numRows = (table size - 1), fetchArraySize = table size
149.2.12 fetchArraySize = (table size - 1), numRows = table size
149.3 queryStream() with different maxRows and oracledb.fetchArraySize
149.3.1 maxRow > table size > oracledb.fetchArraySize
149.3.2 maxRow > oracledb.fetchArraySize > table size
149.3.3 table size > maxRow > oracledb.fetchArraySize
149.3.4 table size > oracledb.fetchArraySize > maxRow
149.3.5 maxRow = oracledb.fetchArraySize < table size
149.3.6 maxRow = oracledb.fetchArraySize = table size
149.3.7 maxRow = oracledb.fetchArraySize > table size
149.3.8 maxRow = oracledb.fetchArraySize/10
149.3.9 maxRow = 10 * oracledb.fetchArraySize
149.3.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10
149.3.11 maxRows = 0, fetchArraySize = table size
149.3.12 maxRows = 9999999, fetchArraySize = table size
149.3.1 maxRows > table size > oracledb.fetchArraySize
149.3.2 maxRows > oracledb.fetchArraySize > table size
149.3.3 table size > maxRows > oracledb.fetchArraySize
149.3.4 table size > oracledb.fetchArraySize > maxRow
149.3.5 maxRows = oracledb.fetchArraySize < table size
149.3.6 maxRows = oracledb.fetchArraySize = table size
149.3.7 maxRows = oracledb.fetchArraySize > table size
149.3.8 maxRows = oracledb.fetchArraySize/10
149.3.9 maxRows = 10 * oracledb.fetchArraySize
149.3.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10
149.3.11 maxRows = 0, fetchArraySize = table size
149.3.12 maxRows = 9999999, fetchArraySize = table size
149.3.13 maxRows = (table size - 1), fetchArraySize = table size
149.3.14 fetchArraySize = (table size - 1), maxRows = table size
150. fetchArraySize3.js
150.1 DML binding
150.1.1 oracledb.fetchArraySize = 1
150.1.1 oracledb.fetchArraySize = 1
150.1.2 oracledb.fetchArraySize = 50
150.1.3 oracledb.fetchArraySize = 100
150.1.4 oracledb.fetchArraySize = 1000
150.1.5 oracledb.fetchArraySize = (table size - 1)
150.2 procedure binding
150.2.1 Bind OUT with oracledb.fetchArraySize = 1
150.2.2 Bind OUT with oracledb.fetchArraySize = 50
150.2.3 Bind OUT with oracledb.fetchArraySize = 100
150.2.4 Bind OUT with oracledb.fetchArraySize = 1000
150.2.5 Bind IN OUT with oracledb.fetchArraySize = 1
150.2.6 Bind IN OUT with oracledb.fetchArraySize = 50
150.2.7 Bind IN OUT with oracledb.fetchArraySize = 100
150.2.8 Bind IN OUT with oracledb.fetchArraySize = 1000
150.2.5 Bind OUT with oracledb.fetchArraySize = (table size - 1)
150.2.6 Bind IN OUT with oracledb.fetchArraySize = 1
150.2.7 Bind IN OUT with oracledb.fetchArraySize = 50
150.2.8 Bind IN OUT with oracledb.fetchArraySize = 100
150.2.9 Bind IN OUT with oracledb.fetchArraySize = 1000
150.2.10 Bind IN OUT with oracledb.fetchArraySize = (table size - 1)
150.3 function binding
150.3.1 Bind OUT with oracledb.fetchArraySize = 1
150.3.2 Bind OUT with oracledb.fetchArraySize = 50
150.3.3 Bind OUT with oracledb.fetchArraySize = 100
150.3.4 Bind OUT with oracledb.fetchArraySize = 1000
150.3.5 Bind IN OUT with oracledb.fetchArraySize = 1
150.3.6 Bind IN OUT with oracledb.fetchArraySize = 50
150.3.7 Bind IN OUT with oracledb.fetchArraySize = 100
150.3.8 Bind IN OUT with oracledb.fetchArraySize = 1000
150.3.5 Bind OUT with oracledb.fetchArraySize = (table size - 1)、
150.3.6 Bind IN OUT with oracledb.fetchArraySize = 1
150.3.7 Bind IN OUT with oracledb.fetchArraySize = 50
150.3.8 Bind IN OUT with oracledb.fetchArraySize = 100
150.3.9 Bind IN OUT with oracledb.fetchArraySize = 1000
150.3.10 Bind IN OUT with oracledb.fetchArraySize = (table size - 1)
151. fetchArraySize4.js
151.1 getRows() of resultSet = true
151.1.1 numRows > table size > oracledb.fetchArraySize
151.1.2 numRows > oracledb.fetchArraySize > table size
151.1.3 table size > numRows > oracledb.fetchArraySize
151.1.3 table size > numRows > oracledb.fetchArraySize
151.1.4 table size > oracledb.fetchArraySize > maxRow
151.1.5 numRows = oracledb.fetchArraySize < table size
151.1.6 numRows = oracledb.fetchArraySize = table size
151.1.7 numRows = oracledb.fetchArraySize > table size
151.1.8 numRows = oracledb.fetchArraySize/10
151.1.9 numRows = 10 * oracledb.fetchArraySize
151.1.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10
151.1.10 numRows > fetchArraySize, fetchArraySize = (table size)/10
151.1.11 numRows = (table size - 1), fetchArraySize = table size
151.1.12 fetchArraySize = (table size - 1), numRows = table size
151.2 getRow() of resultSet = true
151.2.1 oracledb.fetchArraySize = 1
151.2.1 oracledb.fetchArraySize = 1
151.2.2 oracledb.fetchArraySize = 20
151.2.3 oracledb.fetchArraySize = 50
151.2.4 oracledb.fetchArraySize = 100
151.2.5 oracledb.fetchArraySize = 200
151.2.6 oracledb.fetchArraySize = 1000
151.2.7 oracledb.fetchArraySize = (table size - 1)
151.3 interleaved calls to getRow() and getRows()
151.3.1 oracledb.fetchArraySize = 1
151.3.1 oracledb.fetchArraySize = 1
151.3.2 oracledb.fetchArraySize = 20
151.3.3 oracledb.fetchArraySize = 50
151.3.4 oracledb.fetchArraySize = 100
151.3.5 oracledb.fetchArraySize = 200
151.3.6 oracledb.fetchArraySize = 1000
151.3.6 oracledb.fetchArraySize = (table size - 1)
152. fetchArraySize5.js
152.1 basic fetch with different maxRows and oracledb.fetchArraySize
152.1.1 maxRow > table size > oracledb.fetchArraySize
152.1.2 maxRow > oracledb.fetchArraySize > table size
152.1.3 table size > maxRow > oracledb.fetchArraySize
152.1.4 table size > oracledb.fetchArraySize > maxRow
152.1.5 maxRow = oracledb.fetchArraySize < table size
152.1.6 maxRow = oracledb.fetchArraySize = table size
152.1.7 maxRow = oracledb.fetchArraySize > table size
152.1.8 maxRow = oracledb.fetchArraySize/10
152.1.9 maxRow = 10 * oracledb.fetchArraySize
152.1 basic fetch with different maxRows and fetchArraySize
152.1.1 maxRows > table size > fetchArraySize
152.1.2 maxRows > fetchArraySize > table size
152.1.3 table size > maxRows > fetchArraySize
152.1.4 table size > fetchArraySize > maxRow
152.1.5 maxRows = fetchArraySize < table size
152.1.6 maxRows = fetchArraySize = table size
152.1.7 maxRows = fetchArraySize > table size
152.1.8 maxRows = fetchArraySize/10
152.1.9 maxRows = 10 * fetchArraySize
152.1.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10
152.1.11 maxRows =0, fetchArraySize = table size
152.2 REF CURSORS with different numRows and oracledb.fetchArraySize
152.2.1 numRows > table size > oracledb.fetchArraySize
152.2.2 numRows > oracledb.fetchArraySize > table size
152.2.3 table size > numRows > oracledb.fetchArraySize
152.2.4 table size > oracledb.fetchArraySize > maxRow
152.2.5 numRows = oracledb.fetchArraySize < table size
152.2.6 numRows = oracledb.fetchArraySize = table size
152.2.7 numRows = oracledb.fetchArraySize > table size
152.2.8 numRows = oracledb.fetchArraySize/10
152.2.9 numRows = 10 * oracledb.fetchArraySize
152.1.11 maxRows = 0, fetchArraySize = table size
152.1.12 maxRows = (table size - 1), fetchArraySize = table size
152.1.13 fetchArraySize = (table size - 1), maxRows = table size
152.2 REF CURSORS with different numRows and fetchArraySize
152.2.1 numRows > table size > fetchArraySize
152.2.2 numRows > fetchArraySize > table size
152.2.3 table size > numRows > fetchArraySize
152.2.4 table size > fetchArraySize > maxRow
152.2.5 numRows = fetchArraySize < table size
152.2.6 numRows = fetchArraySize = table size
152.2.7 numRows = fetchArraySize > table size
152.2.8 numRows = fetchArraySize/10
152.2.9 numRows = 10 * fetchArraySize
152.2.10 numRows > fetchArraySize, fetchArraySize = (table size)/10
152.3 queryStream() with different maxRows and oracledb.fetchArraySize
152.3.1 maxRow > table size > oracledb.fetchArraySize
152.3.2 maxRow > oracledb.fetchArraySize > table size
152.3.3 table size > maxRow > oracledb.fetchArraySize
152.3.4 table size > oracledb.fetchArraySize > maxRow
152.3.5 maxRow = oracledb.fetchArraySize < table size
152.3.6 maxRow = oracledb.fetchArraySize = table size
152.3.7 maxRow = oracledb.fetchArraySize > table size
152.3.8 maxRow = oracledb.fetchArraySize/10
152.3.9 maxRow = 10 * oracledb.fetchArraySize
152.3.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10
152.3.11 maxRows = 0, fetchArraySize = table size
152.2.11 numRows = (table size - 1), fetchArraySize = table size
152.2.12 fetchArraySize = (table size - 1), numRows = table size
152.3 queryStream() with different maxRows and fetchArraySize
152.3.1 maxRows > table size > fetchArraySize
152.3.2 maxRows > fetchArraySize > table size
152.3.3 table size > maxRows > fetchArraySize
152.3.4 table size > fetchArraySize > maxRow
152.3.5 maxRows = fetchArraySize < table size
152.3.6 maxRows = fetchArraySize = table size
152.3.7 maxRows = fetchArraySize > table size
152.3.8 maxRows = fetchArraySize/10
152.3.9 maxRows = 10 * fetchArraySize
152.3.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10
152.3.11 maxRows = 0, fetchArraySize = table size
152.3.12 maxRows = (table size - 1), fetchArraySize = table size
152.3.13 fetchArraySize = (table size - 1), maxRows = table size
153. fetchArraySize6.js
153.1 DML binding
153.1.1 oracledb.fetchArraySize = 1
153.1.2 oracledb.fetchArraySize = 50
153.1.3 oracledb.fetchArraySize = 100
153.1.4 oracledb.fetchArraySize = 1000
153.1.1 fetchArraySize = 1
153.1.2 fetchArraySize = 50
153.1.3 fetchArraySize = 100
153.1.4 fetchArraySize = 1000
153.1.5 fetchArraySize = (table size - 1)
153.2 procedure binding
153.2.1 Bind OUT with oracledb.fetchArraySize = 1
153.2.2 Bind OUT with oracledb.fetchArraySize = 50
153.2.3 Bind OUT with oracledb.fetchArraySize = 100
153.2.4 Bind OUT with oracledb.fetchArraySize = 1000
153.2.5 Bind IN OUT with oracledb.fetchArraySize = 1
153.2.6 Bind IN OUT with oracledb.fetchArraySize = 50
153.2.7 Bind IN OUT with oracledb.fetchArraySize = 100
153.2.8 Bind IN OUT with oracledb.fetchArraySize = 1000
153.2.1 Bind OUT with fetchArraySize = 1
153.2.2 Bind OUT with fetchArraySize = 50
153.2.3 Bind OUT with fetchArraySize = 100
153.2.4 Bind OUT with fetchArraySize = 1000
153.2.5 Bind OUT with fetchArraySize = (table size - 1)
153.2.6 Bind IN OUT with fetchArraySize = 1
153.2.7 Bind IN OUT with fetchArraySize = 50
153.2.8 Bind IN OUT with fetchArraySize = 100
153.2.9 Bind IN OUT with fetchArraySize = 1000
153.2.10 Bind IN OUT with fetchArraySize = (table size - 1)
153.3 function binding
153.3.1 Bind OUT with oracledb.fetchArraySize = 1
153.3.2 Bind OUT with oracledb.fetchArraySize = 50
153.3.3 Bind OUT with oracledb.fetchArraySize = 100
153.3.4 Bind OUT with oracledb.fetchArraySize = 1000
153.3.5 Bind IN OUT with oracledb.fetchArraySize = 1
153.3.6 Bind IN OUT with oracledb.fetchArraySize = 50
153.3.7 Bind IN OUT with oracledb.fetchArraySize = 100
153.3.8 Bind IN OUT with oracledb.fetchArraySize = 1000
153.3.1 Bind OUT with fetchArraySize = 1
153.3.2 Bind OUT with fetchArraySize = 50
153.3.3 Bind OUT with fetchArraySize = 100
153.3.4 Bind OUT with fetchArraySize = 1000
153.3.5 Bind OUT with fetchArraySize = (table size - 1)
153.3.6 Bind IN OUT with fetchArraySize = 1
153.3.7 Bind IN OUT with fetchArraySize = 50
153.3.8 Bind IN OUT with fetchArraySize = 100
153.3.9 Bind IN OUT with fetchArraySize = 1000
153.3.10 Bind IN OUT with fetchArraySize = (table size - 1)
154. fetchArraySize7.js
154.1 getRows() of resultSet = true
154.1.1 numRows > table size > oracledb.fetchArraySize
154.1.2 numRows > oracledb.fetchArraySize > table size
154.1.3 table size > numRows > oracledb.fetchArraySize
154.1.4 table size > oracledb.fetchArraySize > maxRow
154.1.5 numRows = oracledb.fetchArraySize < table size
154.1.6 numRows = oracledb.fetchArraySize = table size
154.1.7 numRows = oracledb.fetchArraySize > table size
154.1.8 numRows = oracledb.fetchArraySize/10
154.1.9 numRows = 10 * oracledb.fetchArraySize
154.1.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10
154.1.1 numRows > table size > fetchArraySize
154.1.2 numRows > fetchArraySize > table size
154.1.3 table size > numRows > fetchArraySize
154.1.4 table size > fetchArraySize > maxRow
154.1.5 numRows = fetchArraySize < table size
154.1.6 numRows = fetchArraySize = table size
154.1.7 numRows = fetchArraySize > table size
154.1.8 numRows = fetchArraySize/10
154.1.9 numRows = 10 * fetchArraySize
154.1.10 numRows > fetchArraySize, fetchArraySize = (table size)/10
154.1.11 numRows = (table size - 1), fetchArraySize = table size
154.1.12 fetchArraySize = (table size - 1), numRows = table size
154.2 getRow() of resultSet = true
154.2.1 oracledb.fetchArraySize = 1
154.2.2 oracledb.fetchArraySize = 20
154.2.3 oracledb.fetchArraySize = 50
154.2.4 oracledb.fetchArraySize = 100
154.2.5 oracledb.fetchArraySize = 200
154.2.6 oracledb.fetchArraySize = 1000
154.2.1 fetchArraySize = 1
154.2.2 fetchArraySize = 20
154.2.3 fetchArraySize = 50
154.2.4 fetchArraySize = 100
154.2.5 fetchArraySize = 200
154.2.6 fetchArraySize = 1000
154.2.7 fetchArraySize = (table size - 1)
154.3 interleaved calls to getRow() and getRows()
154.3.1 oracledb.fetchArraySize = 1
154.3.2 oracledb.fetchArraySize = 20
154.3.3 oracledb.fetchArraySize = 50
154.3.4 oracledb.fetchArraySize = 100
154.3.5 oracledb.fetchArraySize = 200
154.3.6 oracledb.fetchArraySize = 1000
154.3.1 fetchArraySize = 1
154.3.2 fetchArraySize = 20
154.3.3 fetchArraySize = 50
154.3.4 fetchArraySize = 100
154.3.5 fetchArraySize = 200
154.3.6 fetchArraySize = 1000
154.3.7 fetchArraySize = (table size - 1)
155. fetchArraySize8.js
155.1 Streaming clobs with different oracledb.fetchArraySize
155.1.1 maxRows > table size > oracledb.fetchArraySize
155.1.2 maxRows > oracledb.fetchArraySize > table size
155.1.3 table size > maxRows > oracledb.fetchArraySize
155.1.4 table size > oracledb.fetchArraySize > maxRow
155.1.5 maxRows = oracledb.fetchArraySize < table size
155.1.6 maxRows = oracledb.fetchArraySize = table size
155.1.7 maxRows = oracledb.fetchArraySize > table size
155.1.8 maxRows = oracledb.fetchArraySize/10
155.1.9 maxRows = 10 * oracledb.fetchArraySize
155.1.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10
155.1.11 maxRows = 0, fetchArraySize = table size
155.1.1 maxRows > table size > oracledb.fetchArraySize
155.1.2 maxRows > oracledb.fetchArraySize > table size
155.1.3 table size > maxRows > oracledb.fetchArraySize
155.1.4 table size > oracledb.fetchArraySize > maxRow
155.1.5 maxRows = oracledb.fetchArraySize < table size
155.1.6 maxRows = oracledb.fetchArraySize = table size
155.1.7 maxRows = oracledb.fetchArraySize > table size
155.1.8 maxRows = oracledb.fetchArraySize/10
155.1.9 maxRows = 10 * oracledb.fetchArraySize
155.1.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10
155.1.11 maxRows = 0, fetchArraySize = table size
155.1.12 maxRows = (table size - 1), fetchArraySize = table size
155.1.13 fetchArraySize = (table size - 1), maxRows = table size
155.2 Streaming clobs with different execute() option fetchArraySize
155.2.1 maxRows > table size > oracledb.fetchArraySize
155.2.2 maxRows > oracledb.fetchArraySize > table size
155.2.3 table size > maxRows > oracledb.fetchArraySize
155.2.4 table size > oracledb.fetchArraySize > maxRow
155.2.5 maxRows = oracledb.fetchArraySize < table size
155.2.6 maxRows = oracledb.fetchArraySize = table size
155.2.7 maxRows = oracledb.fetchArraySize > table size
155.2.8 maxRows = oracledb.fetchArraySize/10
155.2.9 maxRows = 10 * oracledb.fetchArraySize
155.2.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10
155.2.11 maxRows = 0, fetchArraySize = table size
155.2.1 maxRows > table size > oracledb.fetchArraySize
155.2.2 maxRows > oracledb.fetchArraySize > table size
155.2.3 table size > maxRows > oracledb.fetchArraySize
155.2.4 table size > oracledb.fetchArraySize > maxRow
155.2.5 maxRows = oracledb.fetchArraySize < table size
155.2.6 maxRows = oracledb.fetchArraySize = table size
155.2.7 maxRows = oracledb.fetchArraySize > table size
155.2.8 maxRows = oracledb.fetchArraySize/10
155.2.9 maxRows = 10 * oracledb.fetchArraySize
155.2.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10
155.2.11 maxRows = 0, fetchArraySize = table size
155.2.12 maxRows = (table size - 1), fetchArraySize = table size
155.2.13 fetchArraySize = (table size - 1), maxRows = table size
156. fetchArraySize9.js
156.1 Streaming blobs with different oracledb.fetchArraySize
156.1.1 maxRows > table size > oracledb.fetchArraySize
156.1.2 maxRows > oracledb.fetchArraySize > table size
156.1.3 table size > maxRows > oracledb.fetchArraySize
156.1.4 table size > oracledb.fetchArraySize > maxRow
156.1.5 maxRows = oracledb.fetchArraySize < table size
156.1.6 maxRows = oracledb.fetchArraySize = table size
156.1.7 maxRows = oracledb.fetchArraySize > table size
156.1.8 maxRows = oracledb.fetchArraySize/10
156.1.9 maxRows = 10 * oracledb.fetchArraySize
156.1.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10
156.1.11 maxRows = 0, fetchArraySize = table size
156.1.1 maxRows > table size > oracledb.fetchArraySize
156.1.2 maxRows > oracledb.fetchArraySize > table size
156.1.3 table size > maxRows > oracledb.fetchArraySize
156.1.4 table size > oracledb.fetchArraySize > maxRow
156.1.5 maxRows = oracledb.fetchArraySize < table size
156.1.6 maxRows = oracledb.fetchArraySize = table size
156.1.7 maxRows = oracledb.fetchArraySize > table size
156.1.8 maxRows = oracledb.fetchArraySize/10
156.1.9 maxRows = 10 * oracledb.fetchArraySize
156.1.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10
156.1.11 maxRows = 0, fetchArraySize = table size
156.1.12 maxRows = (table size - 1), fetchArraySize = table size
156.1.13 fetchArraySize = (table size - 1), maxRows = table size
156.2 Streaming blobs with different execute() option fetchArraySize
156.2.1 maxRows > table size > oracledb.fetchArraySize
156.2.2 maxRows > oracledb.fetchArraySize > table size
156.2.3 table size > maxRows > oracledb.fetchArraySize
156.2.4 table size > oracledb.fetchArraySize > maxRow
156.2.5 maxRows = oracledb.fetchArraySize < table size
156.2.6 maxRows = oracledb.fetchArraySize = table size
156.2.7 maxRows = oracledb.fetchArraySize > table size
156.2.8 maxRows = oracledb.fetchArraySize/10
156.2.9 maxRows = 10 * oracledb.fetchArraySize
156.2.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10
156.2.11 maxRows = 0, fetchArraySize = table size
156.2.1 maxRows > table size > oracledb.fetchArraySize
156.2.2 maxRows > oracledb.fetchArraySize > table size
156.2.3 table size > maxRows > oracledb.fetchArraySize
156.2.4 table size > oracledb.fetchArraySize > maxRow
156.2.5 maxRows = oracledb.fetchArraySize < table size
156.2.6 maxRows = oracledb.fetchArraySize = table size
156.2.7 maxRows = oracledb.fetchArraySize > table size
156.2.8 maxRows = oracledb.fetchArraySize/10
156.2.9 maxRows = 10 * oracledb.fetchArraySize
156.2.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10
156.2.11 maxRows = 0, fetchArraySize = table size
156.2.12 maxRows = (table size - 1), fetchArraySize = table size
156.2.13 fetchArraySize = (table size - 1), maxRows = table size