Update fetchArraySize tests
This commit is contained in:
parent
556f6f3d7a
commit
6f6670a748
|
@ -50,6 +50,7 @@ describe("149. fetchArraySize2.js", function() {
|
||||||
var default_fetcArraySize = oracledb.fetchArraySize;
|
var default_fetcArraySize = oracledb.fetchArraySize;
|
||||||
var default_maxRows = oracledb.maxRows;
|
var default_maxRows = oracledb.maxRows;
|
||||||
var tableName = "nodb_fetchArraySize_149";
|
var tableName = "nodb_fetchArraySize_149";
|
||||||
|
var tableSize = 1000;
|
||||||
|
|
||||||
var create_table = "BEGIN \n" +
|
var create_table = "BEGIN \n" +
|
||||||
" DECLARE \n" +
|
" DECLARE \n" +
|
||||||
|
@ -67,7 +68,7 @@ describe("149. fetchArraySize2.js", function() {
|
||||||
" content VARCHAR(2000) \n" +
|
" content VARCHAR(2000) \n" +
|
||||||
" ) \n" +
|
" ) \n" +
|
||||||
" '); \n" +
|
" '); \n" +
|
||||||
" FOR i IN 1..1000 LOOP \n" +
|
" FOR i IN 1.." + tableSize + " LOOP \n" +
|
||||||
" EXECUTE IMMEDIATE (' \n" +
|
" EXECUTE IMMEDIATE (' \n" +
|
||||||
" insert into " + tableName + " values (' || i || ',' || to_char(i) ||') \n" +
|
" insert into " + tableName + " values (' || i || ',' || to_char(i) ||') \n" +
|
||||||
" '); \n" +
|
" '); \n" +
|
||||||
|
@ -129,8 +130,8 @@ describe("149. fetchArraySize2.js", function() {
|
||||||
"select * from " + tableName + " where id > " + affectedID + " order by id",
|
"select * from " + tableName + " where id > " + affectedID + " order by id",
|
||||||
function(err, result) {
|
function(err, result) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
var resultLenExpected = maxRowsVal > (1000-affectedID) ? (1000-affectedID) : maxRowsVal;
|
var resultLenExpected = maxRowsVal > (tableSize-affectedID) ? (tableSize-affectedID) : maxRowsVal;
|
||||||
if(maxRowsVal === 0) resultLenExpected = 1000 - affectedID;
|
if(maxRowsVal === 0) resultLenExpected = tableSize - affectedID;
|
||||||
should.strictEqual(result.rows.length, resultLenExpected);
|
should.strictEqual(result.rows.length, resultLenExpected);
|
||||||
verifyResult(result.rows, affectedID, cb);
|
verifyResult(result.rows, affectedID, cb);
|
||||||
}
|
}
|
||||||
|
@ -154,58 +155,58 @@ describe("149. fetchArraySize2.js", function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
it("149.1.1 maxRows > table size > oracledb.fetchArraySize", function(done) {
|
it("149.1.1 maxRows > table size > oracledb.fetchArraySize", function(done) {
|
||||||
var fetchArraySizeVal = 50;
|
var fetchArraySizeVal = tableSize - 1;
|
||||||
var maxRowsVal = 10000;
|
var maxRowsVal = tableSize + 1;
|
||||||
var affectedID = 20;
|
var affectedID = 0;
|
||||||
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.1.2 maxRows > oracledb.fetchArraySize > table size", function(done) {
|
it("149.1.2 maxRows > oracledb.fetchArraySize > table size", function(done) {
|
||||||
var fetchArraySizeVal = 1001;
|
var fetchArraySizeVal = tableSize - 99;
|
||||||
var maxRowsVal = 10000;
|
var maxRowsVal = tableSize - 7;
|
||||||
var affectedID = 20;
|
var affectedID = 20;
|
||||||
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.1.3 table size > maxRows > oracledb.fetchArraySize", function(done) {
|
it("149.1.3 table size > maxRows > oracledb.fetchArraySize", function(done) {
|
||||||
var fetchArraySizeVal = 1;
|
var fetchArraySizeVal = tableSize - 100;
|
||||||
var maxRowsVal = 2;
|
var maxRowsVal = tableSize - 2;
|
||||||
var affectedID = 10;
|
var affectedID = 10;
|
||||||
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.1.4 table size > oracledb.fetchArraySize > maxRow", function(done) {
|
it("149.1.4 table size > oracledb.fetchArraySize > maxRow", function(done) {
|
||||||
var fetchArraySizeVal = 90;
|
var fetchArraySizeVal = tableSize - 3;
|
||||||
var maxRowsVal = 150;
|
var maxRowsVal = tableSize - 77;
|
||||||
var affectedID = 50;
|
var affectedID = 50;
|
||||||
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.1.5 maxRows = oracledb.fetchArraySize < table size", function(done) {
|
it("149.1.5 maxRows = oracledb.fetchArraySize < table size", function(done) {
|
||||||
var fetchArraySizeVal = 110;
|
var fetchArraySizeVal = tableSize - 110;
|
||||||
var maxRowsVal = 110;
|
var maxRowsVal = tableSize - 110;
|
||||||
var affectedID = 20;
|
var affectedID = 20;
|
||||||
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.1.6 maxRows = oracledb.fetchArraySize = table size", function(done) {
|
it("149.1.6 maxRows = oracledb.fetchArraySize = table size", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
var maxRowsVal = 1000;
|
var maxRowsVal = tableSize;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.1.7 maxRows = oracledb.fetchArraySize > table size", function(done) {
|
it("149.1.7 maxRows = oracledb.fetchArraySize > table size", function(done) {
|
||||||
var fetchArraySizeVal = 9999;
|
var fetchArraySizeVal = tableSize + 9999;
|
||||||
var maxRowsVal = 9999;
|
var maxRowsVal = tableSize + 9999;
|
||||||
var affectedID = 10;
|
var affectedID = 10;
|
||||||
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.1.8 maxRows = oracledb.fetchArraySize/10", function(done) {
|
it("149.1.8 maxRows = oracledb.fetchArraySize/10", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize/10 - 1;
|
||||||
var maxRowsVal = 100;
|
var maxRowsVal = tableSize/10;
|
||||||
var affectedID = 7;
|
var affectedID = 0;
|
||||||
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -217,36 +218,36 @@ describe("149. fetchArraySize2.js", function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.1.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10", function(done) {
|
it("149.1.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10", function(done) {
|
||||||
var fetchArraySizeVal = 100;
|
var fetchArraySizeVal = tableSize/10;
|
||||||
var maxRowsVal = 210;
|
var maxRowsVal = tableSize/10 + 1;
|
||||||
var affectedID = 50;
|
var affectedID = 0;
|
||||||
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.1.11 maxRows = 0, fetchArraySize = table size ", function(done) {
|
it("149.1.11 maxRows = 0, fetchArraySize = table size ", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
var maxRowsVal = 0;
|
var maxRowsVal = 0;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.1.12 maxRows = 9999999, fetchArraySize = table size ", function(done) {
|
it("149.1.12 maxRows = 9999999, fetchArraySize = table size ", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
var maxRowsVal = 9999999;
|
var maxRowsVal = 9999999;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.1.13 maxRows = (table size - 1), fetchArraySize = table size ", function(done) {
|
it("149.1.13 maxRows = (table size - 1), fetchArraySize = table size ", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
var maxRowsVal = 999;
|
var maxRowsVal = tableSize - 1;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.1.14 fetchArraySize = (table size - 1), maxRows = table size ", function(done) {
|
it("149.1.14 fetchArraySize = (table size - 1), maxRows = table size ", function(done) {
|
||||||
var fetchArraySizeVal = 999;
|
var fetchArraySizeVal = tableSize - 1;
|
||||||
var maxRowsVal = 1000;
|
var maxRowsVal = tableSize;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
@ -339,7 +340,7 @@ describe("149. fetchArraySize2.js", function() {
|
||||||
}
|
}
|
||||||
return fetchRowsFromRS(rs, numRowsVal, rowCount, cb);
|
return fetchRowsFromRS(rs, numRowsVal, rowCount, cb);
|
||||||
} else {
|
} else {
|
||||||
should.strictEqual(rowCount, 1000);
|
should.strictEqual(rowCount, tableSize);
|
||||||
rs.close(function(err) {
|
rs.close(function(err) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
cb();
|
cb();
|
||||||
|
@ -349,50 +350,50 @@ describe("149. fetchArraySize2.js", function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
it("149.2.1 numRows > table size > oracledb.fetchArraySize", function(done) {
|
it("149.2.1 numRows > table size > oracledb.fetchArraySize", function(done) {
|
||||||
var fetchArraySizeVal = 50;
|
var fetchArraySizeVal = tableSize - 1;
|
||||||
var numRowsVal = 10000;
|
var numRowsVal = tableSize + 1;
|
||||||
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.2.2 numRows > oracledb.fetchArraySize > table size", function(done) {
|
it("149.2.2 numRows > oracledb.fetchArraySize > table size", function(done) {
|
||||||
var fetchArraySizeVal = 1200;
|
var fetchArraySizeVal = tableSize + 7;
|
||||||
var numRowsVal = 10000;
|
var numRowsVal = tableSize + 77;
|
||||||
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.2.3 table size > numRows > oracledb.fetchArraySize", function(done) {
|
it("149.2.3 table size > numRows > oracledb.fetchArraySize", function(done) {
|
||||||
var fetchArraySizeVal = 1;
|
var fetchArraySizeVal = tableSize - 11;
|
||||||
var numRowsVal = 2;
|
var numRowsVal = tableSize - 2;
|
||||||
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.2.4 table size > oracledb.fetchArraySize > maxRow", function(done) {
|
it("149.2.4 table size > oracledb.fetchArraySize > maxRow", function(done) {
|
||||||
var fetchArraySizeVal = 90;
|
var fetchArraySizeVal = tableSize - 90;
|
||||||
var numRowsVal = 150;
|
var numRowsVal = tableSize - 150;
|
||||||
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.2.5 numRows = oracledb.fetchArraySize < table size", function(done) {
|
it("149.2.5 numRows = oracledb.fetchArraySize < table size", function(done) {
|
||||||
var fetchArraySizeVal = 110;
|
var fetchArraySizeVal = tableSize - 110;
|
||||||
var numRowsVal = 110;
|
var numRowsVal = tableSize - 110;
|
||||||
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.2.6 numRows = oracledb.fetchArraySize = table size", function(done) {
|
it("149.2.6 numRows = oracledb.fetchArraySize = table size", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
var numRowsVal = 1000;
|
var numRowsVal = tableSize;
|
||||||
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.2.7 numRows = oracledb.fetchArraySize > table size", function(done) {
|
it("149.2.7 numRows = oracledb.fetchArraySize > table size", function(done) {
|
||||||
var fetchArraySizeVal = 9999;
|
var fetchArraySizeVal = tableSize + 9999;
|
||||||
var numRowsVal = 9999;
|
var numRowsVal = tableSize + 9999;
|
||||||
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.2.8 numRows = oracledb.fetchArraySize/10", function(done) {
|
it("149.2.8 numRows = oracledb.fetchArraySize/10", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize/10 + 1;
|
||||||
var numRowsVal = 100;
|
var numRowsVal = tableSize/10;
|
||||||
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -403,20 +404,20 @@ describe("149. fetchArraySize2.js", function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.2.10 numRows > fetchArraySize, fetchArraySize = (table size)/10", function(done) {
|
it("149.2.10 numRows > fetchArraySize, fetchArraySize = (table size)/10", function(done) {
|
||||||
var fetchArraySizeVal = 100;
|
var fetchArraySizeVal = tableSize/10;
|
||||||
var numRowsVal = 210;
|
var numRowsVal = tableSize/10 + 1;
|
||||||
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.2.11 numRows = (table size - 1), fetchArraySize = table size", function(done) {
|
it("149.2.11 numRows = (table size - 1), fetchArraySize = table size", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
var numRowsVal = 999;
|
var numRowsVal = tableSize - 1;
|
||||||
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.2.12 fetchArraySize = (table size - 1), numRows = table size", function(done) {
|
it("149.2.12 fetchArraySize = (table size - 1), numRows = table size", function(done) {
|
||||||
var fetchArraySizeVal = 999;
|
var fetchArraySizeVal = tableSize - 1;
|
||||||
var numRowsVal = 1000;
|
var numRowsVal = tableSize;
|
||||||
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -452,7 +453,7 @@ describe("149. fetchArraySize2.js", function() {
|
||||||
var testQueryStream = function(fetchArraySizeVal, maxRowsVal, affectedID, cb) {
|
var testQueryStream = function(fetchArraySizeVal, maxRowsVal, affectedID, cb) {
|
||||||
oracledb.fetchArraySize = fetchArraySizeVal;
|
oracledb.fetchArraySize = fetchArraySizeVal;
|
||||||
oracledb.maxRows = maxRowsVal;
|
oracledb.maxRows = maxRowsVal;
|
||||||
var resultLenExpected = 1000-affectedID;
|
var resultLenExpected = tableSize-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);
|
var stream = connection.queryStream(querySql);
|
||||||
|
|
||||||
|
@ -479,58 +480,58 @@ describe("149. fetchArraySize2.js", function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
it("149.3.1 maxRows > table size > oracledb.fetchArraySize", function(done) {
|
it("149.3.1 maxRows > table size > oracledb.fetchArraySize", function(done) {
|
||||||
var fetchArraySizeVal = 50;
|
var fetchArraySizeVal = tableSize - 1;
|
||||||
var maxRowsVal = 10000;
|
var maxRowsVal = tableSize + 1;
|
||||||
var affectedID = 20;
|
var affectedID = 0;
|
||||||
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.3.2 maxRows > oracledb.fetchArraySize > table size", function(done) {
|
it("149.3.2 maxRows > oracledb.fetchArraySize > table size", function(done) {
|
||||||
var fetchArraySizeVal = 1001;
|
var fetchArraySizeVal = tableSize + 101;
|
||||||
var maxRowsVal = 10000;
|
var maxRowsVal = tableSize + 1000;
|
||||||
var affectedID = 20;
|
var affectedID = 20;
|
||||||
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.3.3 table size > maxRows > oracledb.fetchArraySize", function(done) {
|
it("149.3.3 table size > maxRows > oracledb.fetchArraySize", function(done) {
|
||||||
var fetchArraySizeVal = 1;
|
var fetchArraySizeVal = tableSize - 11;
|
||||||
var maxRowsVal = 2;
|
var maxRowsVal = tableSize - 2;
|
||||||
var affectedID = 10;
|
var affectedID = 0;
|
||||||
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.3.4 table size > oracledb.fetchArraySize > maxRow", function(done) {
|
it("149.3.4 table size > oracledb.fetchArraySize > maxRow", function(done) {
|
||||||
var fetchArraySizeVal = 90;
|
var fetchArraySizeVal = tableSize - 90;
|
||||||
var maxRowsVal = 150;
|
var maxRowsVal = tableSize - 150;
|
||||||
var affectedID = 50;
|
var affectedID = 50;
|
||||||
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.3.5 maxRows = oracledb.fetchArraySize < table size", function(done) {
|
it("149.3.5 maxRows = oracledb.fetchArraySize < table size", function(done) {
|
||||||
var fetchArraySizeVal = 110;
|
var fetchArraySizeVal = tableSize - 110;
|
||||||
var maxRowsVal = 110;
|
var maxRowsVal = tableSize - 110;
|
||||||
var affectedID = 20;
|
var affectedID = 20;
|
||||||
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.3.6 maxRows = oracledb.fetchArraySize = table size", function(done) {
|
it("149.3.6 maxRows = oracledb.fetchArraySize = table size", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
var maxRowsVal = 1000;
|
var maxRowsVal = tableSize;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.3.7 maxRows = oracledb.fetchArraySize > table size", function(done) {
|
it("149.3.7 maxRows = oracledb.fetchArraySize > table size", function(done) {
|
||||||
var fetchArraySizeVal = 9999;
|
var fetchArraySizeVal = tableSize + 9999;
|
||||||
var maxRowsVal = 9999;
|
var maxRowsVal = tableSize + 9999;
|
||||||
var affectedID = 10;
|
var affectedID = 10;
|
||||||
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.3.8 maxRows = oracledb.fetchArraySize/10", function(done) {
|
it("149.3.8 maxRows = oracledb.fetchArraySize/10", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize/10 + 1;
|
||||||
var maxRowsVal = 100;
|
var maxRowsVal = tableSize/10;
|
||||||
var affectedID = 7;
|
var affectedID = 0;
|
||||||
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -542,36 +543,36 @@ describe("149. fetchArraySize2.js", function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.3.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10", function(done) {
|
it("149.3.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10", function(done) {
|
||||||
var fetchArraySizeVal = 100;
|
var fetchArraySizeVal = tableSize/10;
|
||||||
var maxRowsVal = 210;
|
var maxRowsVal = tableSize/10 + 1;
|
||||||
var affectedID = 50;
|
var affectedID = 50;
|
||||||
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.3.11 maxRows = 0, fetchArraySize = table size", function(done) {
|
it("149.3.11 maxRows = 0, fetchArraySize = table size", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
var maxRowsVal = 0;
|
var maxRowsVal = 0;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.3.12 maxRows = 9999999, fetchArraySize = table size", function(done) {
|
it("149.3.12 maxRows = 9999999, fetchArraySize = table size", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
var maxRowsVal = 9999999;
|
var maxRowsVal = 9999999;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.3.13 maxRows = (table size - 1), fetchArraySize = table size ", function(done) {
|
it("149.3.13 maxRows = (table size - 1), fetchArraySize = table size ", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
var maxRowsVal = 999;
|
var maxRowsVal = tableSize - 1;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("149.3.14 fetchArraySize = (table size - 1), maxRows = table size ", function(done) {
|
it("149.3.14 fetchArraySize = (table size - 1), maxRows = table size ", function(done) {
|
||||||
var fetchArraySizeVal = 999;
|
var fetchArraySizeVal = tableSize - 1;
|
||||||
var maxRowsVal = 1000;
|
var maxRowsVal = tableSize;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
|
@ -48,6 +48,7 @@ describe("150. fetchArraySize3.js", function() {
|
||||||
var default_fetcArraySize = oracledb.fetchArraySize;
|
var default_fetcArraySize = oracledb.fetchArraySize;
|
||||||
var default_maxRows = oracledb.maxRows;
|
var default_maxRows = oracledb.maxRows;
|
||||||
var tableName = "nodb_fetchArraySize_150";
|
var tableName = "nodb_fetchArraySize_150";
|
||||||
|
var tableSize = 1000;
|
||||||
|
|
||||||
var create_table = "BEGIN \n" +
|
var create_table = "BEGIN \n" +
|
||||||
" DECLARE \n" +
|
" DECLARE \n" +
|
||||||
|
@ -65,7 +66,7 @@ describe("150. fetchArraySize3.js", function() {
|
||||||
" content VARCHAR(2000) \n" +
|
" content VARCHAR(2000) \n" +
|
||||||
" ) \n" +
|
" ) \n" +
|
||||||
" '); \n" +
|
" '); \n" +
|
||||||
" FOR i IN 1..1000 LOOP \n" +
|
" FOR i IN 1.." + tableSize + " LOOP \n" +
|
||||||
" EXECUTE IMMEDIATE (' \n" +
|
" EXECUTE IMMEDIATE (' \n" +
|
||||||
" insert into " + tableName + " values (' || i || ',' || to_char(i) ||') \n" +
|
" insert into " + tableName + " values (' || i || ',' || to_char(i) ||') \n" +
|
||||||
" '); \n" +
|
" '); \n" +
|
||||||
|
@ -132,7 +133,7 @@ describe("150. fetchArraySize3.js", function() {
|
||||||
},
|
},
|
||||||
function(err, result) {
|
function(err, result) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
should.strictEqual(result.rowsAffected, 1000 - affectedRowId);
|
should.strictEqual(result.rowsAffected, tableSize - affectedRowId);
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -142,7 +143,7 @@ describe("150. fetchArraySize3.js", function() {
|
||||||
{ num: { val: affectedRowId, dir: oracledb.BIND_IN, type: oracledb.NUMBER } },
|
{ num: { val: affectedRowId, dir: oracledb.BIND_IN, type: oracledb.NUMBER } },
|
||||||
function(err, result) {
|
function(err, result) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
should.strictEqual(result.rows.length, 1000 - affectedRowId);
|
should.strictEqual(result.rows.length, tableSize - affectedRowId);
|
||||||
verifyResult(result.rows, affectedRowId);
|
verifyResult(result.rows, affectedRowId);
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
|
@ -170,20 +171,20 @@ describe("150. fetchArraySize3.js", function() {
|
||||||
dmlBinding(1, 50, done);
|
dmlBinding(1, 50, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("150.1.2 oracledb.fetchArraySize = 50", function(done) {
|
it("150.1.2 oracledb.fetchArraySize = tableSize/20", function(done) {
|
||||||
dmlBinding(50, 0, done);
|
dmlBinding(tableSize/20, 0, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("150.1.3 oracledb.fetchArraySize = 100", function(done) {
|
it("150.1.3 oracledb.fetchArraySize = tableSize/10", function(done) {
|
||||||
dmlBinding(100, 2, done);
|
dmlBinding(tableSize/10, 2, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("150.1.4 oracledb.fetchArraySize = 1000", function(done) {
|
it("150.1.4 oracledb.fetchArraySize = tableSize", function(done) {
|
||||||
dmlBinding(1000, 1, done);
|
dmlBinding(tableSize, 1, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("150.1.5 oracledb.fetchArraySize = (table size - 1)", function(done) {
|
it("150.1.5 oracledb.fetchArraySize = (table size - 1)", function(done) {
|
||||||
dmlBinding(999, 0, done);
|
dmlBinding(tableSize - 1 , 0, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -281,7 +282,7 @@ describe("150. fetchArraySize3.js", function() {
|
||||||
},
|
},
|
||||||
function(err, result) {
|
function(err, result) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
var rowsAffected = 1000 - updateFromId;
|
var rowsAffected = tableSize - updateFromId;
|
||||||
should.strictEqual(result.outBinds.c.length, rowsAffected);
|
should.strictEqual(result.outBinds.c.length, rowsAffected);
|
||||||
proc_verifyResult_inout(result.outBinds.c, updateFromId, cb);
|
proc_verifyResult_inout(result.outBinds.c, updateFromId, cb);
|
||||||
}
|
}
|
||||||
|
@ -313,7 +314,7 @@ describe("150. fetchArraySize3.js", function() {
|
||||||
},
|
},
|
||||||
function(err, result) {
|
function(err, result) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
should.strictEqual(result.outBinds.c.length, 1000);
|
should.strictEqual(result.outBinds.c.length, tableSize);
|
||||||
proc_verifyResult_out(result.outBinds.c);
|
proc_verifyResult_out(result.outBinds.c);
|
||||||
cb();
|
cb();
|
||||||
}
|
}
|
||||||
|
@ -335,67 +336,67 @@ describe("150. fetchArraySize3.js", function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
it("150.2.1 Bind OUT with oracledb.fetchArraySize = 1", function(done) {
|
it("150.2.1 Bind OUT with oracledb.fetchArraySize = 1", function(done) {
|
||||||
var maxArraySizeVal = 1000;
|
var maxArraySizeVal = tableSize;
|
||||||
var fetchArraySizeVal = 1;
|
var fetchArraySizeVal = 1;
|
||||||
proc_query_out(maxArraySizeVal, fetchArraySizeVal, done);
|
proc_query_out(maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("150.2.2 Bind OUT with oracledb.fetchArraySize = 50", function(done) {
|
it("150.2.2 Bind OUT with oracledb.fetchArraySize = tableSize/20", function(done) {
|
||||||
var maxArraySizeVal = 1000;
|
var maxArraySizeVal = tableSize;
|
||||||
var fetchArraySizeVal = 50;
|
var fetchArraySizeVal = tableSize/20;
|
||||||
proc_query_out(maxArraySizeVal, fetchArraySizeVal, done);
|
proc_query_out(maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("150.2.3 Bind OUT with oracledb.fetchArraySize = 100", function(done) {
|
it("150.2.3 Bind OUT with oracledb.fetchArraySize = tableSize/10", function(done) {
|
||||||
var maxArraySizeVal = 10000;
|
var maxArraySizeVal = tableSize;
|
||||||
var fetchArraySizeVal = 100;
|
var fetchArraySizeVal = tableSize/10;
|
||||||
proc_query_out(maxArraySizeVal, fetchArraySizeVal, done);
|
proc_query_out(maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("150.2.4 Bind OUT with oracledb.fetchArraySize = 1000", function(done) {
|
it("150.2.4 Bind OUT with oracledb.fetchArraySize = tableSize", function(done) {
|
||||||
var maxArraySizeVal = 2000;
|
var maxArraySizeVal = tableSize + 1;
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
proc_query_out(maxArraySizeVal, fetchArraySizeVal, done);
|
proc_query_out(maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("150.2.5 Bind OUT with oracledb.fetchArraySize = (table size - 1)", function(done) {
|
it("150.2.5 Bind OUT with oracledb.fetchArraySize = (table size - 1)", function(done) {
|
||||||
var maxArraySizeVal = 2000;
|
var maxArraySizeVal = tableSize;
|
||||||
var fetchArraySizeVal = 999;
|
var fetchArraySizeVal = tableSize - 1;
|
||||||
proc_query_out(maxArraySizeVal, fetchArraySizeVal, done);
|
proc_query_out(maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("150.2.6 Bind IN OUT with oracledb.fetchArraySize = 1", function(done) {
|
it("150.2.6 Bind IN OUT with oracledb.fetchArraySize = 1", function(done) {
|
||||||
var updateFromId = 20;
|
var updateFromId = 20;
|
||||||
var maxArraySizeVal = 1000;
|
var maxArraySizeVal = tableSize;
|
||||||
var fetchArraySizeVal = 1;
|
var fetchArraySizeVal = 1;
|
||||||
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("150.2.7 Bind IN OUT with oracledb.fetchArraySize = 50", function(done) {
|
it("150.2.7 Bind IN OUT with oracledb.fetchArraySize = tableSize/20", function(done) {
|
||||||
var updateFromId = 20;
|
var updateFromId = 0;
|
||||||
var maxArraySizeVal = 1000;
|
var maxArraySizeVal = tableSize;
|
||||||
var fetchArraySizeVal = 50;
|
var fetchArraySizeVal = tableSize/20;
|
||||||
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("150.2.8 Bind IN OUT with oracledb.fetchArraySize = 100", function(done) {
|
it("150.2.8 Bind IN OUT with oracledb.fetchArraySize = tableSize/10", function(done) {
|
||||||
var updateFromId = 10;
|
var updateFromId = 0;
|
||||||
var maxArraySizeVal = 2000;
|
var maxArraySizeVal = tableSize;
|
||||||
var fetchArraySizeVal = 100;
|
var fetchArraySizeVal = tableSize/10;
|
||||||
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("150.2.9 Bind IN OUT with oracledb.fetchArraySize = 1000", function(done) {
|
it("150.2.9 Bind IN OUT with oracledb.fetchArraySize = tableSize", function(done) {
|
||||||
var updateFromId = 5;
|
var updateFromId = 0;
|
||||||
var maxArraySizeVal = 2000;
|
var maxArraySizeVal = tableSize + 10;
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("150.2.10 Bind IN OUT with oracledb.fetchArraySize = (table size - 1)", function(done) {
|
it("150.2.10 Bind IN OUT with oracledb.fetchArraySize = (table size - 1)", function(done) {
|
||||||
var updateFromId = 0;
|
var updateFromId = 0;
|
||||||
var maxArraySizeVal = 2000;
|
var maxArraySizeVal = tableSize;
|
||||||
var fetchArraySizeVal = 999;
|
var fetchArraySizeVal = tableSize - 1;
|
||||||
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -508,7 +509,7 @@ describe("150. fetchArraySize3.js", function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
var fun_verifyResult_inout = function(result, updateFromId) {
|
var fun_verifyResult_inout = function(result, updateFromId) {
|
||||||
var rowsAffected = 1000-updateFromId;
|
var rowsAffected = tableSize - updateFromId;
|
||||||
should.strictEqual(result.length, rowsAffected);
|
should.strictEqual(result.length, rowsAffected);
|
||||||
async.forEach(result, function(element, cb) {
|
async.forEach(result, function(element, cb) {
|
||||||
var index = result.indexOf(element);
|
var index = result.indexOf(element);
|
||||||
|
@ -538,7 +539,7 @@ describe("150. fetchArraySize3.js", function() {
|
||||||
},
|
},
|
||||||
function(err, result) {
|
function(err, result) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
should.strictEqual(result.outBinds.output.length, 1000-affectFromId);
|
should.strictEqual(result.outBinds.output.length, tableSize - affectFromId);
|
||||||
fun_verifyResult_out(result.outBinds.output, affectFromId);
|
fun_verifyResult_out(result.outBinds.output, affectFromId);
|
||||||
cb();
|
cb();
|
||||||
}
|
}
|
||||||
|
@ -560,72 +561,72 @@ describe("150. fetchArraySize3.js", function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
it("150.3.1 Bind OUT with oracledb.fetchArraySize = 1", function(done) {
|
it("150.3.1 Bind OUT with oracledb.fetchArraySize = 1", function(done) {
|
||||||
var affectFromId = 10;
|
var affectFromId = 0;
|
||||||
var maxArraySizeVal = 1000;
|
var maxArraySizeVal = tableSize;
|
||||||
var fetchArraySizeVal = 1;
|
var fetchArraySizeVal = 1;
|
||||||
fun_query_out(affectFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
fun_query_out(affectFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("150.3.2 Bind OUT with oracledb.fetchArraySize = 50", function(done) {
|
it("150.3.2 Bind OUT with oracledb.fetchArraySize = tableSize/20", function(done) {
|
||||||
var affectFromId = 20;
|
var affectFromId = 0;
|
||||||
var maxArraySizeVal = 1000;
|
var maxArraySizeVal = tableSize;
|
||||||
var fetchArraySizeVal = 50;
|
var fetchArraySizeVal = tableSize/20;
|
||||||
fun_query_out(affectFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
fun_query_out(affectFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("150.3.3 Bind OUT with oracledb.fetchArraySize = 100", function(done) {
|
it("150.3.3 Bind OUT with oracledb.fetchArraySize = tableSize/10", function(done) {
|
||||||
var affectFromId = 5;
|
var affectFromId = 0;
|
||||||
var maxArraySizeVal = 1000;
|
var maxArraySizeVal = tableSize;
|
||||||
var fetchArraySizeVal = 100;
|
var fetchArraySizeVal = tableSize/10;
|
||||||
fun_query_out(affectFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
fun_query_out(affectFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("150.3.4 Bind OUT with oracledb.fetchArraySize = 1000", function(done) {
|
it("150.3.4 Bind OUT with oracledb.fetchArraySize = tableSize", function(done) {
|
||||||
var affectFromId = 100;
|
var affectFromId = 0;
|
||||||
var maxArraySizeVal = 10000;
|
var maxArraySizeVal = tableSize;
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
fun_query_out(affectFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
fun_query_out(affectFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("150.3.5 Bind OUT with oracledb.fetchArraySize = (table size - 1)", function(done) {
|
it("150.3.5 Bind OUT with oracledb.fetchArraySize = (table size - 1)", function(done) {
|
||||||
var affectFromId = 0;
|
var affectFromId = 0;
|
||||||
var maxArraySizeVal = 10000;
|
var maxArraySizeVal = tableSize;
|
||||||
var fetchArraySizeVal = 999;
|
var fetchArraySizeVal = tableSize - 1;
|
||||||
fun_query_out(affectFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
fun_query_out(affectFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("150.3.6 Bind IN OUT with oracledb.fetchArraySize = 1", function(done) {
|
it("150.3.6 Bind IN OUT with oracledb.fetchArraySize = 1", function(done) {
|
||||||
var updateFromId = 20;
|
var updateFromId = 20;
|
||||||
var maxArraySizeVal = 1000;
|
var maxArraySizeVal = tableSize;
|
||||||
var fetchArraySizeVal = 1;
|
var fetchArraySizeVal = 1;
|
||||||
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("150.3.7 Bind IN OUT with oracledb.fetchArraySize = 50", function(done) {
|
it("150.3.7 Bind IN OUT with oracledb.fetchArraySize = tableSize/20", function(done) {
|
||||||
var updateFromId = 20;
|
var updateFromId = 0;
|
||||||
var maxArraySizeVal = 1000;
|
var maxArraySizeVal = tableSize;
|
||||||
var fetchArraySizeVal = 50;
|
var fetchArraySizeVal = tableSize/20;
|
||||||
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("150.3.8 Bind IN OUT with oracledb.fetchArraySize = 100", function(done) {
|
it("150.3.8 Bind IN OUT with oracledb.fetchArraySize = tableSize/10", function(done) {
|
||||||
var updateFromId = 10;
|
var updateFromId = 0;
|
||||||
var maxArraySizeVal = 2000;
|
var maxArraySizeVal = tableSize * 2;
|
||||||
var fetchArraySizeVal = 100;
|
var fetchArraySizeVal = tableSize/10;
|
||||||
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("150.3.9 Bind IN OUT with oracledb.fetchArraySize = 1000", function(done) {
|
it("150.3.9 Bind IN OUT with oracledb.fetchArraySize = tableSize", function(done) {
|
||||||
var updateFromId = 5;
|
var updateFromId = 0;
|
||||||
var maxArraySizeVal = 2000;
|
var maxArraySizeVal = tableSize * 2;
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("150.3.10 Bind IN OUT with oracledb.fetchArraySize = (table size - 1)", function(done) {
|
it("150.3.10 Bind IN OUT with oracledb.fetchArraySize = (table size - 1)", function(done) {
|
||||||
var updateFromId = 0;
|
var updateFromId = 0;
|
||||||
var maxArraySizeVal = 2000;
|
var maxArraySizeVal = tableSize;
|
||||||
var fetchArraySizeVal = 999;
|
var fetchArraySizeVal = tableSize - 1;
|
||||||
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,8 @@ describe("151. fetchArraySize4.js", function() {
|
||||||
var connection = null;
|
var connection = null;
|
||||||
var default_fetcArraySize = oracledb.fetchArraySize;
|
var default_fetcArraySize = oracledb.fetchArraySize;
|
||||||
var default_maxRows = oracledb.maxRows;
|
var default_maxRows = oracledb.maxRows;
|
||||||
var tableName = "nodb_fetchArraySize_149";
|
var tableName = "nodb_fetchArraySize_151";
|
||||||
|
var tableSize = 1000;
|
||||||
|
|
||||||
var create_table = "BEGIN \n" +
|
var create_table = "BEGIN \n" +
|
||||||
" DECLARE \n" +
|
" DECLARE \n" +
|
||||||
|
@ -64,7 +65,7 @@ describe("151. fetchArraySize4.js", function() {
|
||||||
" content VARCHAR(2000) \n" +
|
" content VARCHAR(2000) \n" +
|
||||||
" ) \n" +
|
" ) \n" +
|
||||||
" '); \n" +
|
" '); \n" +
|
||||||
" FOR i IN 1..1000 LOOP \n" +
|
" FOR i IN 1.." + tableSize + " LOOP \n" +
|
||||||
" EXECUTE IMMEDIATE (' \n" +
|
" EXECUTE IMMEDIATE (' \n" +
|
||||||
" insert into " + tableName + " values (' || i || ',' || to_char(i) ||') \n" +
|
" insert into " + tableName + " values (' || i || ',' || to_char(i) ||') \n" +
|
||||||
" '); \n" +
|
" '); \n" +
|
||||||
|
@ -146,7 +147,7 @@ describe("151. fetchArraySize4.js", function() {
|
||||||
}
|
}
|
||||||
return fetchRowsFromRS(rs, numRowsVal, rowCount, cb);
|
return fetchRowsFromRS(rs, numRowsVal, rowCount, cb);
|
||||||
} else {
|
} else {
|
||||||
should.strictEqual(rowCount, 1000);
|
should.strictEqual(rowCount, tableSize);
|
||||||
rs.close(function(err) {
|
rs.close(function(err) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
cb();
|
cb();
|
||||||
|
@ -156,50 +157,50 @@ describe("151. fetchArraySize4.js", function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
it("151.1.1 numRows > table size > oracledb.fetchArraySize", function(done) {
|
it("151.1.1 numRows > table size > oracledb.fetchArraySize", function(done) {
|
||||||
var fetchArraySizeVal = 50;
|
var fetchArraySizeVal = tableSize - 1;
|
||||||
var numRowsVal = 10000;
|
var numRowsVal = tableSize + 1;
|
||||||
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("151.1.2 numRows > oracledb.fetchArraySize > table size", function(done) {
|
it("151.1.2 numRows > oracledb.fetchArraySize > table size", function(done) {
|
||||||
var fetchArraySizeVal = 1200;
|
var fetchArraySizeVal = tableSize + 1200;
|
||||||
var numRowsVal = 10000;
|
var numRowsVal = tableSize + 10000;
|
||||||
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("151.1.3 table size > numRows > oracledb.fetchArraySize", function(done) {
|
it("151.1.3 table size > numRows > oracledb.fetchArraySize", function(done) {
|
||||||
var fetchArraySizeVal = 1;
|
var fetchArraySizeVal = tableSize - 11;
|
||||||
var numRowsVal = 2;
|
var numRowsVal = tableSize - 2;
|
||||||
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("151.1.4 table size > oracledb.fetchArraySize > maxRow", function(done) {
|
it("151.1.4 table size > oracledb.fetchArraySize > maxRow", function(done) {
|
||||||
var fetchArraySizeVal = 90;
|
var fetchArraySizeVal = tableSize - 90;
|
||||||
var numRowsVal = 150;
|
var numRowsVal = tableSize - 150;
|
||||||
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("151.1.5 numRows = oracledb.fetchArraySize < table size", function(done) {
|
it("151.1.5 numRows = oracledb.fetchArraySize < table size", function(done) {
|
||||||
var fetchArraySizeVal = 110;
|
var fetchArraySizeVal = tableSize - 110;
|
||||||
var numRowsVal = 110;
|
var numRowsVal = tableSize- 110;
|
||||||
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("151.1.6 numRows = oracledb.fetchArraySize = table size", function(done) {
|
it("151.1.6 numRows = oracledb.fetchArraySize = table size", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
var numRowsVal = 1000;
|
var numRowsVal = tableSize;
|
||||||
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("151.1.7 numRows = oracledb.fetchArraySize > table size", function(done) {
|
it("151.1.7 numRows = oracledb.fetchArraySize > table size", function(done) {
|
||||||
var fetchArraySizeVal = 9999;
|
var fetchArraySizeVal = tableSize + 9999;
|
||||||
var numRowsVal = 9999;
|
var numRowsVal = tableSize + 9999;
|
||||||
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("151.1.8 numRows = oracledb.fetchArraySize/10", function(done) {
|
it("151.1.8 numRows = oracledb.fetchArraySize/10", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize/10 + 1;
|
||||||
var numRowsVal = 100;
|
var numRowsVal = tableSize/10;
|
||||||
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -210,20 +211,20 @@ describe("151. fetchArraySize4.js", function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("151.1.10 numRows > fetchArraySize, fetchArraySize = (table size)/10", function(done) {
|
it("151.1.10 numRows > fetchArraySize, fetchArraySize = (table size)/10", function(done) {
|
||||||
var fetchArraySizeVal = 100;
|
var fetchArraySizeVal = tableSize/10;
|
||||||
var numRowsVal = 210;
|
var numRowsVal = tableSize/10 + 1;
|
||||||
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("151.1.11 numRows = (table size - 1), fetchArraySize = table size", function(done) {
|
it("151.1.11 numRows = (table size - 1), fetchArraySize = table size", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
var numRowsVal = 999;
|
var numRowsVal = tableSize - 1;
|
||||||
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("151.1.12 fetchArraySize = (table size - 1), numRows = table size", function(done) {
|
it("151.1.12 fetchArraySize = (table size - 1), numRows = table size", function(done) {
|
||||||
var fetchArraySizeVal = 999;
|
var fetchArraySizeVal = tableSize - 1;
|
||||||
var numRowsVal = 1000;
|
var numRowsVal = tableSize;
|
||||||
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -282,7 +283,7 @@ describe("151. fetchArraySize4.js", function() {
|
||||||
should.strictEqual(row[1], rowCount.toString());
|
should.strictEqual(row[1], rowCount.toString());
|
||||||
return fetchRowFromRS(rs, rowCount, cb);
|
return fetchRowFromRS(rs, rowCount, cb);
|
||||||
} else {
|
} else {
|
||||||
should.strictEqual(rowCount, 1000);
|
should.strictEqual(rowCount, tableSize);
|
||||||
rs.close(function(err) {
|
rs.close(function(err) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
cb();
|
cb();
|
||||||
|
@ -295,28 +296,28 @@ describe("151. fetchArraySize4.js", function() {
|
||||||
testGetRows(1, done);
|
testGetRows(1, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("151.2.2 oracledb.fetchArraySize = 20", function(done) {
|
it("151.2.2 oracledb.fetchArraySize = tableSize/50", function(done) {
|
||||||
testGetRows(10, done);
|
testGetRows(tableSize/50, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("151.2.3 oracledb.fetchArraySize = 50", function(done) {
|
it("151.2.3 oracledb.fetchArraySize = tableSize/20", function(done) {
|
||||||
testGetRows(50, done);
|
testGetRows(tableSize/20, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("151.2.4 oracledb.fetchArraySize = 100", function(done) {
|
it("151.2.4 oracledb.fetchArraySize = tableSize/10", function(done) {
|
||||||
testGetRows(100, done);
|
testGetRows(tableSize/10, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("151.2.5 oracledb.fetchArraySize = 200", function(done) {
|
it("151.2.5 oracledb.fetchArraySize = tableSize/5", function(done) {
|
||||||
testGetRows(200, done);
|
testGetRows(tableSize/5, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("151.2.6 oracledb.fetchArraySize = 1000", function(done) {
|
it("151.2.6 oracledb.fetchArraySize = tableSize", function(done) {
|
||||||
testGetRows(1000, done);
|
testGetRows(tableSize, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("151.2.7 oracledb.fetchArraySize = (table size - 1)", function(done) {
|
it("151.2.7 oracledb.fetchArraySize = (tableSize - 1)", function(done) {
|
||||||
testGetRows(999, done);
|
testGetRows(tableSize - 1, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -373,7 +374,7 @@ describe("151. fetchArraySize4.js", function() {
|
||||||
should.strictEqual(row[1], rowCount.toString());
|
should.strictEqual(row[1], rowCount.toString());
|
||||||
return fetchRowsFromRS_1(rs, rowCount, cb);
|
return fetchRowsFromRS_1(rs, rowCount, cb);
|
||||||
} else {
|
} else {
|
||||||
should.strictEqual(rowCount, 1000);
|
should.strictEqual(rowCount, tableSize);
|
||||||
rs.close(function(err) {
|
rs.close(function(err) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
cb();
|
cb();
|
||||||
|
@ -394,7 +395,7 @@ describe("151. fetchArraySize4.js", function() {
|
||||||
}
|
}
|
||||||
return fetchRowsFromRS_2(rs, rowCount, cb);
|
return fetchRowsFromRS_2(rs, rowCount, cb);
|
||||||
} else {
|
} else {
|
||||||
should.strictEqual(rowCount, 1000);
|
should.strictEqual(rowCount, tableSize);
|
||||||
rs.close(function(err) {
|
rs.close(function(err) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
cb();
|
cb();
|
||||||
|
@ -415,7 +416,7 @@ describe("151. fetchArraySize4.js", function() {
|
||||||
}
|
}
|
||||||
return fetchRowFromRS(rs, rowCount, cb);
|
return fetchRowFromRS(rs, rowCount, cb);
|
||||||
} else {
|
} else {
|
||||||
should.strictEqual(rowCount, 1000);
|
should.strictEqual(rowCount, tableSize);
|
||||||
rs.close(function(err) {
|
rs.close(function(err) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
cb();
|
cb();
|
||||||
|
@ -431,45 +432,45 @@ describe("151. fetchArraySize4.js", function() {
|
||||||
testRS(fetchArraySizeVal, done);
|
testRS(fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("151.3.2 oracledb.fetchArraySize = 20", function(done) {
|
it("151.3.2 oracledb.fetchArraySize = tableSize/50", function(done) {
|
||||||
var fetchArraySizeVal = 20;
|
var fetchArraySizeVal = tableSize/50;
|
||||||
numRowsVal_1 = 5;
|
numRowsVal_1 = 5;
|
||||||
numRowsVal_2 = 88;
|
numRowsVal_2 = 88;
|
||||||
testRS(fetchArraySizeVal, done);
|
testRS(fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("151.3.3 oracledb.fetchArraySize = 50", function(done) {
|
it("151.3.3 oracledb.fetchArraySize = tableSize/20", function(done) {
|
||||||
var fetchArraySizeVal = 50;
|
var fetchArraySizeVal = tableSize/20;
|
||||||
numRowsVal_1 = 50;
|
numRowsVal_1 = 50;
|
||||||
numRowsVal_2 = 100;
|
numRowsVal_2 = 100;
|
||||||
testRS(fetchArraySizeVal, done);
|
testRS(fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("151.3.4 oracledb.fetchArraySize = 100", function(done) {
|
it("151.3.4 oracledb.fetchArraySize = tableSize/10", function(done) {
|
||||||
var fetchArraySizeVal = 100;
|
var fetchArraySizeVal = tableSize/10;
|
||||||
numRowsVal_1 = 30;
|
numRowsVal_1 = 30;
|
||||||
numRowsVal_2 = 99;
|
numRowsVal_2 = 99;
|
||||||
testRS(fetchArraySizeVal, done);
|
testRS(fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("151.3.5 oracledb.fetchArraySize = 200", function(done) {
|
it("151.3.5 oracledb.fetchArraySize = tableSize/5", function(done) {
|
||||||
var fetchArraySizeVal = 200;
|
var fetchArraySizeVal = tableSize/5;
|
||||||
numRowsVal_1 = 5;
|
numRowsVal_1 = 5;
|
||||||
numRowsVal_2 = 88;
|
numRowsVal_2 = 88;
|
||||||
testRS(fetchArraySizeVal, done);
|
testRS(fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("151.3.6 oracledb.fetchArraySize = 1000", function(done) {
|
it("151.3.6 oracledb.fetchArraySize = tableSize", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
numRowsVal_1 = 15;
|
numRowsVal_1 = 15;
|
||||||
numRowsVal_2 = 1000;
|
numRowsVal_2 = tableSize;
|
||||||
testRS(fetchArraySizeVal, done);
|
testRS(fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("151.3.6 oracledb.fetchArraySize = (table size - 1)", function(done) {
|
it("151.3.6 oracledb.fetchArraySize = (tableSize - 1)", function(done) {
|
||||||
var fetchArraySizeVal = 999;
|
var fetchArraySizeVal = tableSize - 1;
|
||||||
numRowsVal_1 = 999;
|
numRowsVal_1 = tableSize - 1;
|
||||||
numRowsVal_2 = 1000;
|
numRowsVal_2 = tableSize;
|
||||||
testRS(fetchArraySizeVal, done);
|
testRS(fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,7 @@ describe("152. fetchArraySize5.js", function() {
|
||||||
var connection = null;
|
var connection = null;
|
||||||
var default_maxRows = oracledb.maxRows;
|
var default_maxRows = oracledb.maxRows;
|
||||||
var tableName = "nodb_fetchArraySize_152";
|
var tableName = "nodb_fetchArraySize_152";
|
||||||
|
var tableSize = 1000;
|
||||||
|
|
||||||
var create_table = "BEGIN \n" +
|
var create_table = "BEGIN \n" +
|
||||||
" DECLARE \n" +
|
" DECLARE \n" +
|
||||||
|
@ -67,7 +68,7 @@ describe("152. fetchArraySize5.js", function() {
|
||||||
" content VARCHAR(2000) \n" +
|
" content VARCHAR(2000) \n" +
|
||||||
" ) \n" +
|
" ) \n" +
|
||||||
" '); \n" +
|
" '); \n" +
|
||||||
" FOR i IN 1..1000 LOOP \n" +
|
" FOR i IN 1.." + tableSize + " LOOP \n" +
|
||||||
" EXECUTE IMMEDIATE (' \n" +
|
" EXECUTE IMMEDIATE (' \n" +
|
||||||
" insert into " + tableName + " values (' || i || ',' || to_char(i) ||') \n" +
|
" insert into " + tableName + " values (' || i || ',' || to_char(i) ||') \n" +
|
||||||
" '); \n" +
|
" '); \n" +
|
||||||
|
@ -130,8 +131,8 @@ describe("152. fetchArraySize5.js", function() {
|
||||||
},
|
},
|
||||||
function(err, result) {
|
function(err, result) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
var resultLenExpected = maxRowsVal > (1000-affectedID) ? (1000-affectedID) : maxRowsVal;
|
var resultLenExpected = maxRowsVal > (tableSize-affectedID) ? (tableSize-affectedID) : maxRowsVal;
|
||||||
if(maxRowsVal === 0) resultLenExpected = 1000 - affectedID;
|
if(maxRowsVal === 0) resultLenExpected = tableSize - affectedID;
|
||||||
should.strictEqual(result.rows.length, resultLenExpected);
|
should.strictEqual(result.rows.length, resultLenExpected);
|
||||||
verifyResult(result.rows, affectedID, cb);
|
verifyResult(result.rows, affectedID, cb);
|
||||||
}
|
}
|
||||||
|
@ -155,57 +156,57 @@ describe("152. fetchArraySize5.js", function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
it("152.1.1 maxRows > table size > fetchArraySize", function(done) {
|
it("152.1.1 maxRows > table size > fetchArraySize", function(done) {
|
||||||
var fetchArraySizeVal = 50;
|
var fetchArraySizeVal = tableSize - 50;
|
||||||
var maxRowsVal = 10000;
|
var maxRowsVal = tableSize + 10000;
|
||||||
var affectedID = 20;
|
var affectedID = 20;
|
||||||
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.1.2 maxRows > fetchArraySize > table size", function(done) {
|
it("152.1.2 maxRows > fetchArraySize > table size", function(done) {
|
||||||
var fetchArraySizeVal = 1001;
|
var fetchArraySizeVal = tableSize + 1001;
|
||||||
var maxRowsVal = 10000;
|
var maxRowsVal = tableSize + 10000;
|
||||||
var affectedID = 20;
|
var affectedID = 20;
|
||||||
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.1.3 table size > maxRows > fetchArraySize", function(done) {
|
it("152.1.3 table size > maxRows > fetchArraySize", function(done) {
|
||||||
var fetchArraySizeVal = 1;
|
var fetchArraySizeVal = tableSize - 11;
|
||||||
var maxRowsVal = 2;
|
var maxRowsVal = tableSize - 2;
|
||||||
var affectedID = 10;
|
var affectedID = 0;
|
||||||
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.1.4 table size > fetchArraySize > maxRow", function(done) {
|
it("152.1.4 table size > fetchArraySize > maxRow", function(done) {
|
||||||
var fetchArraySizeVal = 90;
|
var fetchArraySizeVal = tableSize - 90;
|
||||||
var maxRowsVal = 150;
|
var maxRowsVal = tableSize - 150;
|
||||||
var affectedID = 50;
|
var affectedID = 50;
|
||||||
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.1.5 maxRows = fetchArraySize < table size", function(done) {
|
it("152.1.5 maxRows = fetchArraySize < table size", function(done) {
|
||||||
var fetchArraySizeVal = 110;
|
var fetchArraySizeVal = tableSize - 110;
|
||||||
var maxRowsVal = 110;
|
var maxRowsVal = tableSize - 110;
|
||||||
var affectedID = 20;
|
var affectedID = 20;
|
||||||
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.1.6 maxRows = fetchArraySize = table size", function(done) {
|
it("152.1.6 maxRows = fetchArraySize = table size", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
var maxRowsVal = 1000;
|
var maxRowsVal = tableSize;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.1.7 maxRows = fetchArraySize > table size", function(done) {
|
it("152.1.7 maxRows = fetchArraySize > table size", function(done) {
|
||||||
var fetchArraySizeVal = 9999;
|
var fetchArraySizeVal = tableSize + 9999;
|
||||||
var maxRowsVal = 9999;
|
var maxRowsVal = tableSize + 9999;
|
||||||
var affectedID = 10;
|
var affectedID = 10;
|
||||||
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.1.8 maxRows = fetchArraySize/10", function(done) {
|
it("152.1.8 maxRows = fetchArraySize/10", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize/10 + 1;
|
||||||
var maxRowsVal = 100;
|
var maxRowsVal = tableSize/10;
|
||||||
var affectedID = 7;
|
var affectedID = 7;
|
||||||
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
@ -218,22 +219,22 @@ describe("152. fetchArraySize5.js", function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.1.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10", function(done) {
|
it("152.1.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10", function(done) {
|
||||||
var fetchArraySizeVal = 100;
|
var fetchArraySizeVal = tableSize/10;
|
||||||
var maxRowsVal = 210;
|
var maxRowsVal = tableSize/10 + 1;
|
||||||
var affectedID = 50;
|
var affectedID = 50;
|
||||||
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
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 fetchArraySizeVal = tableSize;
|
||||||
var maxRowsVal = 0;
|
var maxRowsVal = 0;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.1.12 maxRows = (table size - 1), fetchArraySize = table size ", function(done) {
|
it("152.1.12 maxRows = (table size - 1), fetchArraySize = table size ", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
var maxRowsVal = 999;
|
var maxRowsVal = tableSize - 1;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetch(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
@ -334,7 +335,7 @@ describe("152. fetchArraySize5.js", function() {
|
||||||
}
|
}
|
||||||
return fetchRowsFromRS(rs, numRowsVal, rowCount, cb);
|
return fetchRowsFromRS(rs, numRowsVal, rowCount, cb);
|
||||||
} else {
|
} else {
|
||||||
should.strictEqual(rowCount, 1000);
|
should.strictEqual(rowCount, tableSize);
|
||||||
rs.close(function(err) {
|
rs.close(function(err) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
cb();
|
cb();
|
||||||
|
@ -344,50 +345,50 @@ describe("152. fetchArraySize5.js", function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
it("152.2.1 numRows > table size > fetchArraySize", function(done) {
|
it("152.2.1 numRows > table size > fetchArraySize", function(done) {
|
||||||
var fetchArraySizeVal = 50;
|
var fetchArraySizeVal = tableSize - 50;
|
||||||
var numRowsVal = 10000;
|
var numRowsVal = tableSize + 10000;
|
||||||
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.2.2 numRows > fetchArraySize > table size", function(done) {
|
it("152.2.2 numRows > fetchArraySize > table size", function(done) {
|
||||||
var fetchArraySizeVal = 1200;
|
var fetchArraySizeVal = tableSize + 1200;
|
||||||
var numRowsVal = 10000;
|
var numRowsVal = tableSize + 10000;
|
||||||
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.2.3 table size > numRows > fetchArraySize", function(done) {
|
it("152.2.3 table size > numRows > fetchArraySize", function(done) {
|
||||||
var fetchArraySizeVal = 1;
|
var fetchArraySizeVal = tableSize - 21;
|
||||||
var numRowsVal = 2;
|
var numRowsVal = tableSize - 2;
|
||||||
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.2.4 table size > fetchArraySize > maxRow", function(done) {
|
it("152.2.4 table size > fetchArraySize > maxRow", function(done) {
|
||||||
var fetchArraySizeVal = 90;
|
var fetchArraySizeVal = tableSize - 90;
|
||||||
var numRowsVal = 150;
|
var numRowsVal = tableSize - 150;
|
||||||
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.2.5 numRows = fetchArraySize < table size", function(done) {
|
it("152.2.5 numRows = fetchArraySize < table size", function(done) {
|
||||||
var fetchArraySizeVal = 110;
|
var fetchArraySizeVal = tableSize - 110;
|
||||||
var numRowsVal = 110;
|
var numRowsVal = tableSize - 110;
|
||||||
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.2.6 numRows = fetchArraySize = table size", function(done) {
|
it("152.2.6 numRows = fetchArraySize = table size", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
var numRowsVal = 1000;
|
var numRowsVal = tableSize;
|
||||||
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.2.7 numRows = fetchArraySize > table size", function(done) {
|
it("152.2.7 numRows = fetchArraySize > table size", function(done) {
|
||||||
var fetchArraySizeVal = 9999;
|
var fetchArraySizeVal = tableSize + 9999;
|
||||||
var numRowsVal = 9999;
|
var numRowsVal = tableSize + 9999;
|
||||||
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.2.8 numRows = fetchArraySize/10", function(done) {
|
it("152.2.8 numRows = fetchArraySize/10", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize/10 + 1;
|
||||||
var numRowsVal = 100;
|
var numRowsVal = tableSize/10;
|
||||||
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -398,20 +399,20 @@ describe("152. fetchArraySize5.js", function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.2.10 numRows > fetchArraySize, fetchArraySize = (table size)/10", function(done) {
|
it("152.2.10 numRows > fetchArraySize, fetchArraySize = (table size)/10", function(done) {
|
||||||
var fetchArraySizeVal = 100;
|
var fetchArraySizeVal = tableSize/10;
|
||||||
var numRowsVal = 210;
|
var numRowsVal = tableSize/10 + 1;
|
||||||
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.2.11 numRows = (table size - 1), fetchArraySize = table size", function(done) {
|
it("152.2.11 numRows = (table size - 1), fetchArraySize = table size", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
var numRowsVal = 999;
|
var numRowsVal = tableSize - 1;
|
||||||
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.2.12 fetchArraySize = (table size - 1), numRows = table size", function(done) {
|
it("152.2.12 fetchArraySize = (table size - 1), numRows = table size", function(done) {
|
||||||
var fetchArraySizeVal = 999;
|
var fetchArraySizeVal = tableSize - 1;
|
||||||
var numRowsVal = 1000;
|
var numRowsVal = tableSize;
|
||||||
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
testRefCursor(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -445,7 +446,7 @@ describe("152. fetchArraySize5.js", function() {
|
||||||
|
|
||||||
var testQueryStream = function(fetchArraySizeVal, maxRowsVal, affectedID, cb) {
|
var testQueryStream = function(fetchArraySizeVal, maxRowsVal, affectedID, cb) {
|
||||||
oracledb.maxRows = maxRowsVal;
|
oracledb.maxRows = maxRowsVal;
|
||||||
var resultLenExpected = 1000-affectedID;
|
var resultLenExpected = tableSize-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});
|
var stream = connection.queryStream(querySql, [], {fetchArraySize: fetchArraySizeVal});
|
||||||
|
|
||||||
|
@ -472,58 +473,58 @@ describe("152. fetchArraySize5.js", function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
it("152.3.1 maxRows > table size > fetchArraySize", function(done) {
|
it("152.3.1 maxRows > table size > fetchArraySize", function(done) {
|
||||||
var fetchArraySizeVal = 50;
|
var fetchArraySizeVal = tableSize - 50;
|
||||||
var maxRowsVal = 10000;
|
var maxRowsVal = tableSize + 10000;
|
||||||
var affectedID = 20;
|
var affectedID = 20;
|
||||||
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.3.2 maxRows > fetchArraySize > table size", function(done) {
|
it("152.3.2 maxRows > fetchArraySize > table size", function(done) {
|
||||||
var fetchArraySizeVal = 1001;
|
var fetchArraySizeVal = tableSize + 1001;
|
||||||
var maxRowsVal = 10000;
|
var maxRowsVal = tableSize + 10000;
|
||||||
var affectedID = 20;
|
var affectedID = 20;
|
||||||
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.3.3 table size > maxRows > fetchArraySize", function(done) {
|
it("152.3.3 table size > maxRows > fetchArraySize", function(done) {
|
||||||
var fetchArraySizeVal = 1;
|
var fetchArraySizeVal = tableSize - 31;
|
||||||
var maxRowsVal = 2;
|
var maxRowsVal = tableSize - 2;
|
||||||
var affectedID = 10;
|
var affectedID = 10;
|
||||||
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.3.4 table size > fetchArraySize > maxRow", function(done) {
|
it("152.3.4 table size > fetchArraySize > maxRow", function(done) {
|
||||||
var fetchArraySizeVal = 90;
|
var fetchArraySizeVal = tableSize - 90;
|
||||||
var maxRowsVal = 150;
|
var maxRowsVal = tableSize - 150;
|
||||||
var affectedID = 50;
|
var affectedID = 50;
|
||||||
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.3.5 maxRows = fetchArraySize < table size", function(done) {
|
it("152.3.5 maxRows = fetchArraySize < table size", function(done) {
|
||||||
var fetchArraySizeVal = 110;
|
var fetchArraySizeVal = tableSize - 110;
|
||||||
var maxRowsVal = 110;
|
var maxRowsVal = tableSize- 110;
|
||||||
var affectedID = 20;
|
var affectedID = 20;
|
||||||
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.3.6 maxRows = fetchArraySize = table size", function(done) {
|
it("152.3.6 maxRows = fetchArraySize = table size", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
var maxRowsVal = 1000;
|
var maxRowsVal = tableSize;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.3.7 maxRows = fetchArraySize > table size", function(done) {
|
it("152.3.7 maxRows = fetchArraySize > table size", function(done) {
|
||||||
var fetchArraySizeVal = 9999;
|
var fetchArraySizeVal = tableSize + 9999;
|
||||||
var maxRowsVal = 9999;
|
var maxRowsVal = tableSize + 9999;
|
||||||
var affectedID = 10;
|
var affectedID = 10;
|
||||||
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.3.8 maxRows = fetchArraySize/10", function(done) {
|
it("152.3.8 maxRows = fetchArraySize/10", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize/10 + 1;
|
||||||
var maxRowsVal = 100;
|
var maxRowsVal = tableSize/10;
|
||||||
var affectedID = 7;
|
var affectedID = 0;
|
||||||
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -535,29 +536,29 @@ describe("152. fetchArraySize5.js", function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.3.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10", function(done) {
|
it("152.3.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10", function(done) {
|
||||||
var fetchArraySizeVal = 100;
|
var fetchArraySizeVal = tableSize/10;
|
||||||
var maxRowsVal = 210;
|
var maxRowsVal = tableSize/10 + 1;
|
||||||
var affectedID = 50;
|
var affectedID = 0;
|
||||||
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.3.11 maxRows = 0, fetchArraySize = table size", function(done) {
|
it("152.3.11 maxRows = 0, fetchArraySize = table size", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
var maxRowsVal = 0;
|
var maxRowsVal = 0;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.3.12 maxRows = (table size - 1), fetchArraySize = table size", function(done) {
|
it("152.3.12 maxRows = (table size - 1), fetchArraySize = table size", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
var maxRowsVal = 999;
|
var maxRowsVal = tableSize - 1;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("152.3.13 fetchArraySize = (table size - 1), maxRows = table size", function(done) {
|
it("152.3.13 fetchArraySize = (table size - 1), maxRows = table size", function(done) {
|
||||||
var fetchArraySizeVal = 999;
|
var fetchArraySizeVal = tableSize - 1;
|
||||||
var maxRowsVal = 1000;
|
var maxRowsVal = tableSize;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
testQueryStream(fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
|
@ -47,6 +47,7 @@ describe("153. fetchArraySize6.js", function() {
|
||||||
var connection = null;
|
var connection = null;
|
||||||
var default_maxRows = oracledb.maxRows;
|
var default_maxRows = oracledb.maxRows;
|
||||||
var tableName = "nodb_fetchArraySize_153";
|
var tableName = "nodb_fetchArraySize_153";
|
||||||
|
var tableSize = 1000;
|
||||||
|
|
||||||
var create_table = "BEGIN \n" +
|
var create_table = "BEGIN \n" +
|
||||||
" DECLARE \n" +
|
" DECLARE \n" +
|
||||||
|
@ -64,7 +65,7 @@ describe("153. fetchArraySize6.js", function() {
|
||||||
" content VARCHAR(2000) \n" +
|
" content VARCHAR(2000) \n" +
|
||||||
" ) \n" +
|
" ) \n" +
|
||||||
" '); \n" +
|
" '); \n" +
|
||||||
" FOR i IN 1..1000 LOOP \n" +
|
" FOR i IN 1.." + tableSize + " LOOP \n" +
|
||||||
" EXECUTE IMMEDIATE (' \n" +
|
" EXECUTE IMMEDIATE (' \n" +
|
||||||
" insert into " + tableName + " values (' || i || ',' || to_char(i) ||') \n" +
|
" insert into " + tableName + " values (' || i || ',' || to_char(i) ||') \n" +
|
||||||
" '); \n" +
|
" '); \n" +
|
||||||
|
@ -131,7 +132,7 @@ describe("153. fetchArraySize6.js", function() {
|
||||||
},
|
},
|
||||||
function(err, result) {
|
function(err, result) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
should.strictEqual(result.rowsAffected, 1000 - affectedRowId);
|
should.strictEqual(result.rowsAffected, tableSize - affectedRowId);
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -144,7 +145,7 @@ describe("153. fetchArraySize6.js", function() {
|
||||||
},
|
},
|
||||||
function(err, result) {
|
function(err, result) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
should.strictEqual(result.rows.length, 1000 - affectedRowId);
|
should.strictEqual(result.rows.length, tableSize - affectedRowId);
|
||||||
verifyResult(result.rows, affectedRowId);
|
verifyResult(result.rows, affectedRowId);
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
|
@ -168,20 +169,20 @@ describe("153. fetchArraySize6.js", function() {
|
||||||
dmlBinding(1, 50, done);
|
dmlBinding(1, 50, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("153.1.2 fetchArraySize = 50", function(done) {
|
it("153.1.2 fetchArraySize = tableSize/20", function(done) {
|
||||||
dmlBinding(50, 51, done);
|
dmlBinding(tableSize/20, 0, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("153.1.3 fetchArraySize = 100", function(done) {
|
it("153.1.3 fetchArraySize = tableSize/10", function(done) {
|
||||||
dmlBinding(100, 2, done);
|
dmlBinding(tableSize/10, 2, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("153.1.4 fetchArraySize = 1000", function(done) {
|
it("153.1.4 fetchArraySize = tableSize", function(done) {
|
||||||
dmlBinding(1000, 38, done);
|
dmlBinding(tableSize, 0, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("153.1.5 fetchArraySize = (table size - 1)", function(done) {
|
it("153.1.5 fetchArraySize = (table size - 1)", function(done) {
|
||||||
dmlBinding(1000, 0, done);
|
dmlBinding(tableSize - 1, 0, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -280,7 +281,7 @@ describe("153. fetchArraySize6.js", function() {
|
||||||
},
|
},
|
||||||
function(err, result) {
|
function(err, result) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
var rowsAffected = 1000 - updateFromId;
|
var rowsAffected = tableSize - updateFromId;
|
||||||
should.strictEqual(result.outBinds.c.length, rowsAffected);
|
should.strictEqual(result.outBinds.c.length, rowsAffected);
|
||||||
proc_verifyResult_inout(result.outBinds.c, updateFromId, cb);
|
proc_verifyResult_inout(result.outBinds.c, updateFromId, cb);
|
||||||
}
|
}
|
||||||
|
@ -310,7 +311,7 @@ describe("153. fetchArraySize6.js", function() {
|
||||||
},
|
},
|
||||||
function(err, result) {
|
function(err, result) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
should.strictEqual(result.outBinds.c.length, 1000);
|
should.strictEqual(result.outBinds.c.length, tableSize);
|
||||||
proc_verifyResult_out(result.outBinds.c);
|
proc_verifyResult_out(result.outBinds.c);
|
||||||
cb();
|
cb();
|
||||||
}
|
}
|
||||||
|
@ -328,67 +329,67 @@ describe("153. fetchArraySize6.js", function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
it("153.2.1 Bind OUT with fetchArraySize = 1", function(done) {
|
it("153.2.1 Bind OUT with fetchArraySize = 1", function(done) {
|
||||||
var maxArraySizeVal = 1000;
|
var maxArraySizeVal = tableSize;
|
||||||
var fetchArraySizeVal = 1;
|
var fetchArraySizeVal = 1;
|
||||||
proc_query_out(maxArraySizeVal, fetchArraySizeVal, done);
|
proc_query_out(maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("153.2.2 Bind OUT with fetchArraySize = 50", function(done) {
|
it("153.2.2 Bind OUT with fetchArraySize = tableSize/20", function(done) {
|
||||||
var maxArraySizeVal = 1000;
|
var maxArraySizeVal = tableSize;
|
||||||
var fetchArraySizeVal = 50;
|
var fetchArraySizeVal = tableSize/20;
|
||||||
proc_query_out(maxArraySizeVal, fetchArraySizeVal, done);
|
proc_query_out(maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("153.2.3 Bind OUT with fetchArraySize = 100", function(done) {
|
it("153.2.3 Bind OUT with fetchArraySize = tableSize/10", function(done) {
|
||||||
var maxArraySizeVal = 10000;
|
var maxArraySizeVal = tableSize*10;
|
||||||
var fetchArraySizeVal = 100;
|
var fetchArraySizeVal = tableSize/10;
|
||||||
proc_query_out(maxArraySizeVal, fetchArraySizeVal, done);
|
proc_query_out(maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("153.2.4 Bind OUT with fetchArraySize = 1000", function(done) {
|
it("153.2.4 Bind OUT with fetchArraySize = tableSize", function(done) {
|
||||||
var maxArraySizeVal = 2000;
|
var maxArraySizeVal = tableSize*2;
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
proc_query_out(maxArraySizeVal, fetchArraySizeVal, done);
|
proc_query_out(maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("153.2.5 Bind OUT with fetchArraySize = (table size - 1)", function(done) {
|
it("153.2.5 Bind OUT with fetchArraySize = (table size - 1)", function(done) {
|
||||||
var maxArraySizeVal = 2000;
|
var maxArraySizeVal = tableSize*2;
|
||||||
var fetchArraySizeVal = 999;
|
var fetchArraySizeVal = tableSize - 1;
|
||||||
proc_query_out(maxArraySizeVal, fetchArraySizeVal, done);
|
proc_query_out(maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("153.2.6 Bind IN OUT with fetchArraySize = 1", function(done) {
|
it("153.2.6 Bind IN OUT with fetchArraySize = 1", function(done) {
|
||||||
var updateFromId = 20;
|
var updateFromId = 20;
|
||||||
var maxArraySizeVal = 1000;
|
var maxArraySizeVal = tableSize;
|
||||||
var fetchArraySizeVal = 1;
|
var fetchArraySizeVal = 1;
|
||||||
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("153.2.7 Bind IN OUT with fetchArraySize = 50", function(done) {
|
it("153.2.7 Bind IN OUT with fetchArraySize = tableSize/20", function(done) {
|
||||||
var updateFromId = 20;
|
var updateFromId = 20;
|
||||||
var maxArraySizeVal = 1000;
|
var maxArraySizeVal = tableSize;
|
||||||
var fetchArraySizeVal = 50;
|
var fetchArraySizeVal = tableSize/20;
|
||||||
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("153.2.8 Bind IN OUT with fetchArraySize = 100", function(done) {
|
it("153.2.8 Bind IN OUT with fetchArraySize = tableSize/10", function(done) {
|
||||||
var updateFromId = 10;
|
var updateFromId = 10;
|
||||||
var maxArraySizeVal = 2000;
|
var maxArraySizeVal = tableSize;
|
||||||
var fetchArraySizeVal = 100;
|
var fetchArraySizeVal = tableSize/10;
|
||||||
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("153.2.9 Bind IN OUT with fetchArraySize = 1000", function(done) {
|
it("153.2.9 Bind IN OUT with fetchArraySize = tableSize", function(done) {
|
||||||
var updateFromId = 5;
|
var updateFromId = 0;
|
||||||
var maxArraySizeVal = 2000;
|
var maxArraySizeVal = tableSize*2;
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("153.2.10 Bind IN OUT with fetchArraySize = (table size - 1)", function(done) {
|
it("153.2.10 Bind IN OUT with fetchArraySize = (table size - 1)", function(done) {
|
||||||
var updateFromId = 0;
|
var updateFromId = 0;
|
||||||
var maxArraySizeVal = 2000;
|
var maxArraySizeVal = tableSize*2;
|
||||||
var fetchArraySizeVal = 999;
|
var fetchArraySizeVal = tableSize - 1;
|
||||||
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
proc_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -502,7 +503,7 @@ describe("153. fetchArraySize6.js", function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
var fun_verifyResult_inout = function(result, updateFromId) {
|
var fun_verifyResult_inout = function(result, updateFromId) {
|
||||||
var rowsAffected = 1000-updateFromId;
|
var rowsAffected = tableSize - updateFromId;
|
||||||
should.strictEqual(result.length, rowsAffected);
|
should.strictEqual(result.length, rowsAffected);
|
||||||
async.forEach(result, function(element, cb) {
|
async.forEach(result, function(element, cb) {
|
||||||
var index = result.indexOf(element);
|
var index = result.indexOf(element);
|
||||||
|
@ -531,7 +532,7 @@ describe("153. fetchArraySize6.js", function() {
|
||||||
},
|
},
|
||||||
function(err, result) {
|
function(err, result) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
should.strictEqual(result.outBinds.output.length, 1000-affectFromId);
|
should.strictEqual(result.outBinds.output.length, tableSize-affectFromId);
|
||||||
fun_verifyResult_out(result.outBinds.output, affectFromId);
|
fun_verifyResult_out(result.outBinds.output, affectFromId);
|
||||||
cb();
|
cb();
|
||||||
}
|
}
|
||||||
|
@ -550,71 +551,71 @@ describe("153. fetchArraySize6.js", function() {
|
||||||
|
|
||||||
it("153.3.1 Bind OUT with fetchArraySize = 1", function(done) {
|
it("153.3.1 Bind OUT with fetchArraySize = 1", function(done) {
|
||||||
var affectFromId = 10;
|
var affectFromId = 10;
|
||||||
var maxArraySizeVal = 1000;
|
var maxArraySizeVal = tableSize;
|
||||||
var fetchArraySizeVal = 1;
|
var fetchArraySizeVal = 1;
|
||||||
fun_query_out(affectFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
fun_query_out(affectFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("153.3.2 Bind OUT with fetchArraySize = 50", function(done) {
|
it("153.3.2 Bind OUT with fetchArraySize = tableSize/20", function(done) {
|
||||||
var affectFromId = 20;
|
var affectFromId = 20;
|
||||||
var maxArraySizeVal = 1000;
|
var maxArraySizeVal = tableSize;
|
||||||
var fetchArraySizeVal = 50;
|
var fetchArraySizeVal = tableSize/20;
|
||||||
fun_query_out(affectFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
fun_query_out(affectFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("153.3.3 Bind OUT with fetchArraySize = 100", function(done) {
|
it("153.3.3 Bind OUT with fetchArraySize = tableSize/10", function(done) {
|
||||||
var affectFromId = 5;
|
var affectFromId = 5;
|
||||||
var maxArraySizeVal = 1000;
|
var maxArraySizeVal = tableSize;
|
||||||
var fetchArraySizeVal = 100;
|
var fetchArraySizeVal = tableSize/10;
|
||||||
fun_query_out(affectFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
fun_query_out(affectFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("153.3.4 Bind OUT with fetchArraySize = 1000", function(done) {
|
it("153.3.4 Bind OUT with fetchArraySize = tableSize", function(done) {
|
||||||
var affectFromId = 29;
|
var affectFromId = 29;
|
||||||
var maxArraySizeVal = 10000;
|
var maxArraySizeVal = tableSize*10;
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
fun_query_out(affectFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
fun_query_out(affectFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("153.3.5 Bind OUT with fetchArraySize = (table size - 1)", function(done) {
|
it("153.3.5 Bind OUT with fetchArraySize = (table size - 1)", function(done) {
|
||||||
var affectFromId = 0;
|
var affectFromId = 0;
|
||||||
var maxArraySizeVal = 10000;
|
var maxArraySizeVal = tableSize*10;
|
||||||
var fetchArraySizeVal = 999;
|
var fetchArraySizeVal = tableSize - 1;
|
||||||
fun_query_out(affectFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
fun_query_out(affectFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("153.3.6 Bind IN OUT with fetchArraySize = 1", function(done) {
|
it("153.3.6 Bind IN OUT with fetchArraySize = 1", function(done) {
|
||||||
var updateFromId = 20;
|
var updateFromId = 20;
|
||||||
var maxArraySizeVal = 1000;
|
var maxArraySizeVal = tableSize;
|
||||||
var fetchArraySizeVal = 1;
|
var fetchArraySizeVal = 1;
|
||||||
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("153.3.7 Bind IN OUT with fetchArraySize = 50", function(done) {
|
it("153.3.7 Bind IN OUT with fetchArraySize = tableSize/20", function(done) {
|
||||||
var updateFromId = 20;
|
var updateFromId = 20;
|
||||||
var maxArraySizeVal = 1000;
|
var maxArraySizeVal = tableSize;
|
||||||
var fetchArraySizeVal = 50;
|
var fetchArraySizeVal = tableSize/20;
|
||||||
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("153.3.8 Bind IN OUT with fetchArraySize = 100", function(done) {
|
it("153.3.8 Bind IN OUT with fetchArraySize = tableSize/10", function(done) {
|
||||||
var updateFromId = 10;
|
var updateFromId = 0;
|
||||||
var maxArraySizeVal = 2000;
|
var maxArraySizeVal = tableSize*2;
|
||||||
var fetchArraySizeVal = 100;
|
var fetchArraySizeVal = tableSize/10;
|
||||||
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("153.3.9 Bind IN OUT with fetchArraySize = 1000", function(done) {
|
it("153.3.9 Bind IN OUT with fetchArraySize = tableSize", function(done) {
|
||||||
var updateFromId = 5;
|
var updateFromId = 0;
|
||||||
var maxArraySizeVal = 2000;
|
var maxArraySizeVal = tableSize*2;
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("153.3.10 Bind IN OUT with fetchArraySize = (table size - 1)", function(done) {
|
it("153.3.10 Bind IN OUT with fetchArraySize = (table size - 1)", function(done) {
|
||||||
var updateFromId = 0;
|
var updateFromId = 0;
|
||||||
var maxArraySizeVal = 2000;
|
var maxArraySizeVal = tableSize*2;
|
||||||
var fetchArraySizeVal = 999;
|
var fetchArraySizeVal = tableSize - 1;
|
||||||
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
fun_query_inout(updateFromId, maxArraySizeVal, fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -46,6 +46,7 @@ describe("154. fetchArraySize7.js", function() {
|
||||||
var connection = null;
|
var connection = null;
|
||||||
var default_maxRows = oracledb.maxRows;
|
var default_maxRows = oracledb.maxRows;
|
||||||
var tableName = "nodb_fetchArraySize_154";
|
var tableName = "nodb_fetchArraySize_154";
|
||||||
|
var tableSize = 1000;
|
||||||
|
|
||||||
var create_table = "BEGIN \n" +
|
var create_table = "BEGIN \n" +
|
||||||
" DECLARE \n" +
|
" DECLARE \n" +
|
||||||
|
@ -63,7 +64,7 @@ describe("154. fetchArraySize7.js", function() {
|
||||||
" content VARCHAR(2000) \n" +
|
" content VARCHAR(2000) \n" +
|
||||||
" ) \n" +
|
" ) \n" +
|
||||||
" '); \n" +
|
" '); \n" +
|
||||||
" FOR i IN 1..1000 LOOP \n" +
|
" FOR i IN 1.." + tableSize + " LOOP \n" +
|
||||||
" EXECUTE IMMEDIATE (' \n" +
|
" EXECUTE IMMEDIATE (' \n" +
|
||||||
" insert into " + tableName + " values (' || i || ',' || to_char(i) ||') \n" +
|
" insert into " + tableName + " values (' || i || ',' || to_char(i) ||') \n" +
|
||||||
" '); \n" +
|
" '); \n" +
|
||||||
|
@ -146,7 +147,7 @@ describe("154. fetchArraySize7.js", function() {
|
||||||
}
|
}
|
||||||
return fetchRowsFromRS(rs, numRowsVal, rowCount, cb);
|
return fetchRowsFromRS(rs, numRowsVal, rowCount, cb);
|
||||||
} else {
|
} else {
|
||||||
should.strictEqual(rowCount, 1000);
|
should.strictEqual(rowCount, tableSize);
|
||||||
rs.close(function(err) {
|
rs.close(function(err) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
cb();
|
cb();
|
||||||
|
@ -156,50 +157,50 @@ describe("154. fetchArraySize7.js", function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
it("154.1.1 numRows > table size > fetchArraySize", function(done) {
|
it("154.1.1 numRows > table size > fetchArraySize", function(done) {
|
||||||
var fetchArraySizeVal = 50;
|
var fetchArraySizeVal = tableSize - 50;
|
||||||
var numRowsVal = 10000;
|
var numRowsVal = tableSize + 10000;
|
||||||
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("154.1.2 numRows > fetchArraySize > table size", function(done) {
|
it("154.1.2 numRows > fetchArraySize > table size", function(done) {
|
||||||
var fetchArraySizeVal = 1200;
|
var fetchArraySizeVal = tableSize + 1200;
|
||||||
var numRowsVal = 10000;
|
var numRowsVal = tableSize + 10000;
|
||||||
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("154.1.3 table size > numRows > fetchArraySize", function(done) {
|
it("154.1.3 table size > numRows > fetchArraySize", function(done) {
|
||||||
var fetchArraySizeVal = 1;
|
var fetchArraySizeVal = tableSize - 91;
|
||||||
var numRowsVal = 2;
|
var numRowsVal = tableSize - 2;
|
||||||
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("154.1.4 table size > fetchArraySize > maxRow", function(done) {
|
it("154.1.4 table size > fetchArraySize > maxRow", function(done) {
|
||||||
var fetchArraySizeVal = 90;
|
var fetchArraySizeVal = tableSize - 90;
|
||||||
var numRowsVal = 150;
|
var numRowsVal = tableSize - 150;
|
||||||
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("154.1.5 numRows = fetchArraySize < table size", function(done) {
|
it("154.1.5 numRows = fetchArraySize < table size", function(done) {
|
||||||
var fetchArraySizeVal = 110;
|
var fetchArraySizeVal = tableSize - 110;
|
||||||
var numRowsVal = 110;
|
var numRowsVal = tableSize - 110;
|
||||||
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("154.1.6 numRows = fetchArraySize = table size", function(done) {
|
it("154.1.6 numRows = fetchArraySize = table size", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
var numRowsVal = 1000;
|
var numRowsVal = tableSize;
|
||||||
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("154.1.7 numRows = fetchArraySize > table size", function(done) {
|
it("154.1.7 numRows = fetchArraySize > table size", function(done) {
|
||||||
var fetchArraySizeVal = 9999;
|
var fetchArraySizeVal = tableSize + 9999;
|
||||||
var numRowsVal = 9999;
|
var numRowsVal = tableSize + 9999;
|
||||||
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("154.1.8 numRows = fetchArraySize/10", function(done) {
|
it("154.1.8 numRows = fetchArraySize/10", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize/10 + 1;
|
||||||
var numRowsVal = 100;
|
var numRowsVal = tableSize/10;
|
||||||
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -210,20 +211,20 @@ describe("154. fetchArraySize7.js", function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("154.1.10 numRows > fetchArraySize, fetchArraySize = (table size)/10", function(done) {
|
it("154.1.10 numRows > fetchArraySize, fetchArraySize = (table size)/10", function(done) {
|
||||||
var fetchArraySizeVal = 100;
|
var fetchArraySizeVal = tableSize/10;
|
||||||
var numRowsVal = 210;
|
var numRowsVal = tableSize/10 + 1;
|
||||||
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("154.1.11 numRows = (table size - 1), fetchArraySize = table size", function(done) {
|
it("154.1.11 numRows = (table size - 1), fetchArraySize = table size", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
var numRowsVal = 999;
|
var numRowsVal = tableSize - 1;
|
||||||
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("154.1.12 fetchArraySize = (table size - 1), numRows = table size", function(done) {
|
it("154.1.12 fetchArraySize = (table size - 1), numRows = table size", function(done) {
|
||||||
var fetchArraySizeVal = 999;
|
var fetchArraySizeVal = tableSize - 1;
|
||||||
var numRowsVal = 1000;
|
var numRowsVal = tableSize;
|
||||||
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
testGetRow(fetchArraySizeVal, numRowsVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -283,7 +284,7 @@ describe("154. fetchArraySize7.js", function() {
|
||||||
should.strictEqual(row[1], rowCount.toString());
|
should.strictEqual(row[1], rowCount.toString());
|
||||||
return fetchRowFromRS(rs, rowCount, cb);
|
return fetchRowFromRS(rs, rowCount, cb);
|
||||||
} else {
|
} else {
|
||||||
should.strictEqual(rowCount, 1000);
|
should.strictEqual(rowCount, tableSize);
|
||||||
rs.close(function(err) {
|
rs.close(function(err) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
cb();
|
cb();
|
||||||
|
@ -296,28 +297,28 @@ describe("154. fetchArraySize7.js", function() {
|
||||||
testGetRows(1, done);
|
testGetRows(1, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("154.2.2 fetchArraySize = 20", function(done) {
|
it("154.2.2 fetchArraySize = tableSize/50", function(done) {
|
||||||
testGetRows(10, done);
|
testGetRows(tableSize/50, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("154.2.3 fetchArraySize = 50", function(done) {
|
it("154.2.3 fetchArraySize = tableSize/20", function(done) {
|
||||||
testGetRows(50, done);
|
testGetRows(tableSize/20, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("154.2.4 fetchArraySize = 100", function(done) {
|
it("154.2.4 fetchArraySize = tableSize/10", function(done) {
|
||||||
testGetRows(100, done);
|
testGetRows(tableSize/10, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("154.2.5 fetchArraySize = 200", function(done) {
|
it("154.2.5 fetchArraySize = tableSize/5", function(done) {
|
||||||
testGetRows(200, done);
|
testGetRows(tableSize/5, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("154.2.6 fetchArraySize = 1000", function(done) {
|
it("154.2.6 fetchArraySize = tableSize", function(done) {
|
||||||
testGetRows(1000, done);
|
testGetRows(tableSize, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("154.2.7 fetchArraySize = (table size - 1)", function(done) {
|
it("154.2.7 fetchArraySize = (table size - 1)", function(done) {
|
||||||
testGetRows(999, done);
|
testGetRows(tableSize - 1, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -375,7 +376,7 @@ describe("154. fetchArraySize7.js", function() {
|
||||||
should.strictEqual(row[1], rowCount.toString());
|
should.strictEqual(row[1], rowCount.toString());
|
||||||
return fetchRowsFromRS_1(rs, rowCount, cb);
|
return fetchRowsFromRS_1(rs, rowCount, cb);
|
||||||
} else {
|
} else {
|
||||||
should.strictEqual(rowCount, 1000);
|
should.strictEqual(rowCount, tableSize);
|
||||||
rs.close(function(err) {
|
rs.close(function(err) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
cb();
|
cb();
|
||||||
|
@ -396,7 +397,7 @@ describe("154. fetchArraySize7.js", function() {
|
||||||
}
|
}
|
||||||
return fetchRowsFromRS_2(rs, rowCount, cb);
|
return fetchRowsFromRS_2(rs, rowCount, cb);
|
||||||
} else {
|
} else {
|
||||||
should.strictEqual(rowCount, 1000);
|
should.strictEqual(rowCount, tableSize);
|
||||||
rs.close(function(err) {
|
rs.close(function(err) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
cb();
|
cb();
|
||||||
|
@ -417,7 +418,7 @@ describe("154. fetchArraySize7.js", function() {
|
||||||
}
|
}
|
||||||
return fetchRowFromRS(rs, rowCount, cb);
|
return fetchRowFromRS(rs, rowCount, cb);
|
||||||
} else {
|
} else {
|
||||||
should.strictEqual(rowCount, 1000);
|
should.strictEqual(rowCount, tableSize);
|
||||||
rs.close(function(err) {
|
rs.close(function(err) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
cb();
|
cb();
|
||||||
|
@ -433,45 +434,45 @@ describe("154. fetchArraySize7.js", function() {
|
||||||
testRS(fetchArraySizeVal, done);
|
testRS(fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("154.3.2 fetchArraySize = 20", function(done) {
|
it("154.3.2 fetchArraySize = tableSize/50", function(done) {
|
||||||
var fetchArraySizeVal = 20;
|
var fetchArraySizeVal = tableSize/50;
|
||||||
numRowsVal_1 = 5;
|
numRowsVal_1 = 5;
|
||||||
numRowsVal_2 = 88;
|
numRowsVal_2 = 88;
|
||||||
testRS(fetchArraySizeVal, done);
|
testRS(fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("154.3.3 fetchArraySize = 50", function(done) {
|
it("154.3.3 fetchArraySize = tableSize/20", function(done) {
|
||||||
var fetchArraySizeVal = 50;
|
var fetchArraySizeVal = tableSize/20;
|
||||||
numRowsVal_1 = 50;
|
numRowsVal_1 = 50;
|
||||||
numRowsVal_2 = 100;
|
numRowsVal_2 = 100;
|
||||||
testRS(fetchArraySizeVal, done);
|
testRS(fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("154.3.4 fetchArraySize = 100", function(done) {
|
it("154.3.4 fetchArraySize = tableSize/10", function(done) {
|
||||||
var fetchArraySizeVal = 100;
|
var fetchArraySizeVal = tableSize/10;
|
||||||
numRowsVal_1 = 30;
|
numRowsVal_1 = 30;
|
||||||
numRowsVal_2 = 99;
|
numRowsVal_2 = 99;
|
||||||
testRS(fetchArraySizeVal, done);
|
testRS(fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("154.3.5 fetchArraySize = 200", function(done) {
|
it("154.3.5 fetchArraySize = tableSize/5", function(done) {
|
||||||
var fetchArraySizeVal = 200;
|
var fetchArraySizeVal = tableSize/5;
|
||||||
numRowsVal_1 = 5;
|
numRowsVal_1 = 5;
|
||||||
numRowsVal_2 = 88;
|
numRowsVal_2 = 88;
|
||||||
testRS(fetchArraySizeVal, done);
|
testRS(fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("154.3.6 fetchArraySize = 1000", function(done) {
|
it("154.3.6 fetchArraySize = tableSize", function(done) {
|
||||||
var fetchArraySizeVal = 1000;
|
var fetchArraySizeVal = tableSize;
|
||||||
numRowsVal_1 = 15;
|
numRowsVal_1 = 15;
|
||||||
numRowsVal_2 = 1000;
|
numRowsVal_2 = tableSize;
|
||||||
testRS(fetchArraySizeVal, done);
|
testRS(fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("154.3.7 fetchArraySize = (table size - 1)", function(done) {
|
it("154.3.7 fetchArraySize = (tableSize - 1)", function(done) {
|
||||||
var fetchArraySizeVal = 999;
|
var fetchArraySizeVal = tableSize - 1;
|
||||||
numRowsVal_1 = 999;
|
numRowsVal_1 = tableSize - 1;
|
||||||
numRowsVal_2 = 1000;
|
numRowsVal_2 = tableSize;
|
||||||
testRS(fetchArraySizeVal, done);
|
testRS(fetchArraySizeVal, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -133,56 +133,56 @@ describe("155. fetchArraySize8.js", function() {
|
||||||
|
|
||||||
it("155.1.1 maxRows > table size > oracledb.fetchArraySize", function(done) {
|
it("155.1.1 maxRows > table size > oracledb.fetchArraySize", function(done) {
|
||||||
var tableSize = 100;
|
var tableSize = 100;
|
||||||
var fetchArraySizeVal = 50;
|
var fetchArraySizeVal = tableSize/2;
|
||||||
var maxRowsVal = 200;
|
var maxRowsVal = tableSize * 2;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("155.1.2 maxRows > oracledb.fetchArraySize > table size", function(done) {
|
it("155.1.2 maxRows > oracledb.fetchArraySize > table size", function(done) {
|
||||||
var tableSize = 20;
|
var tableSize = 20;
|
||||||
var fetchArraySizeVal = 30;
|
var fetchArraySizeVal = tableSize + 10;
|
||||||
var maxRowsVal = 50;
|
var maxRowsVal = tableSize * 3;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("155.1.3 table size > maxRows > oracledb.fetchArraySize", function(done) {
|
it("155.1.3 table size > maxRows > oracledb.fetchArraySize", function(done) {
|
||||||
var tableSize = 199;
|
var tableSize = 199;
|
||||||
var fetchArraySizeVal = 30;
|
var fetchArraySizeVal = tableSize - 80;
|
||||||
var maxRowsVal = 50;
|
var maxRowsVal = tableSize - 50;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("155.1.4 table size > oracledb.fetchArraySize > maxRow", function(done) {
|
it("155.1.4 table size > oracledb.fetchArraySize > maxRow", function(done) {
|
||||||
var tableSize = 290;
|
var tableSize = 290;
|
||||||
var fetchArraySizeVal = 90;
|
var fetchArraySizeVal = tableSize - 90;
|
||||||
var maxRowsVal = 50;
|
var maxRowsVal = tableSize - 150;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("155.1.5 maxRows = oracledb.fetchArraySize < table size", function(done) {
|
it("155.1.5 maxRows = oracledb.fetchArraySize < table size", function(done) {
|
||||||
var tableSize = 20;
|
var tableSize = 20;
|
||||||
var fetchArraySizeVal = 3;
|
var fetchArraySizeVal = tableSize - 3;
|
||||||
var maxRowsVal = 3;
|
var maxRowsVal = fetchArraySizeVal;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("155.1.6 maxRows = oracledb.fetchArraySize = table size", function(done) {
|
it("155.1.6 maxRows = oracledb.fetchArraySize = table size", function(done) {
|
||||||
var tableSize = 20;
|
var tableSize = 20;
|
||||||
var fetchArraySizeVal = 20;
|
var fetchArraySizeVal = tableSize;
|
||||||
var maxRowsVal = 20;
|
var maxRowsVal = tableSize;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("155.1.7 maxRows = oracledb.fetchArraySize > table size", function(done) {
|
it("155.1.7 maxRows = oracledb.fetchArraySize > table size", function(done) {
|
||||||
var tableSize = 10;
|
var tableSize = 10;
|
||||||
var fetchArraySizeVal = 30;
|
var fetchArraySizeVal = tableSize + 30;
|
||||||
var maxRowsVal = 30;
|
var maxRowsVal = fetchArraySizeVal;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
@ -190,7 +190,7 @@ describe("155. fetchArraySize8.js", function() {
|
||||||
it("155.1.8 maxRows = oracledb.fetchArraySize/10", function(done) {
|
it("155.1.8 maxRows = oracledb.fetchArraySize/10", function(done) {
|
||||||
var tableSize = 100;
|
var tableSize = 100;
|
||||||
var fetchArraySizeVal = 30;
|
var fetchArraySizeVal = 30;
|
||||||
var maxRowsVal = 10;
|
var maxRowsVal = fetchArraySizeVal/10;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
@ -198,22 +198,22 @@ describe("155. fetchArraySize8.js", function() {
|
||||||
it("155.1.9 maxRows = 10 * oracledb.fetchArraySize", function(done) {
|
it("155.1.9 maxRows = 10 * oracledb.fetchArraySize", function(done) {
|
||||||
var tableSize = 2;
|
var tableSize = 2;
|
||||||
var fetchArraySizeVal = 30;
|
var fetchArraySizeVal = 30;
|
||||||
var maxRowsVal = 20;
|
var maxRowsVal = fetchArraySizeVal * 10;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("155.1.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10", function(done) {
|
it("155.1.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10", function(done) {
|
||||||
var tableSize = 200;
|
var tableSize = 200;
|
||||||
var fetchArraySizeVal = 20;
|
var fetchArraySizeVal = tableSize/10;
|
||||||
var maxRowsVal = 50;
|
var maxRowsVal = fetchArraySizeVal + 50;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("155.1.11 maxRows = 0, fetchArraySize = table size ", function(done) {
|
it("155.1.11 maxRows = 0, fetchArraySize = table size ", function(done) {
|
||||||
var tableSize = 20;
|
var tableSize = 20;
|
||||||
var fetchArraySizeVal = 20;
|
var fetchArraySizeVal = tableSize;
|
||||||
var maxRowsVal = 0;
|
var maxRowsVal = 0;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
|
@ -221,16 +221,16 @@ describe("155. fetchArraySize8.js", function() {
|
||||||
|
|
||||||
it("155.1.12 maxRows = (table size - 1), fetchArraySize = table size ", function(done) {
|
it("155.1.12 maxRows = (table size - 1), fetchArraySize = table size ", function(done) {
|
||||||
var tableSize = 100;
|
var tableSize = 100;
|
||||||
var fetchArraySizeVal = 100;
|
var fetchArraySizeVal = tableSize;
|
||||||
var maxRowsVal = 99;
|
var maxRowsVal = tableSize - 1;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("155.1.13 fetchArraySize = (table size - 1), maxRows = table size ", function(done) {
|
it("155.1.13 fetchArraySize = (table size - 1), maxRows = table size ", function(done) {
|
||||||
var tableSize = 20;
|
var tableSize = 20;
|
||||||
var fetchArraySizeVal = 19;
|
var fetchArraySizeVal = tableSize - 1;
|
||||||
var maxRowsVal = 20;
|
var maxRowsVal = tableSize;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
@ -288,56 +288,56 @@ describe("155. fetchArraySize8.js", function() {
|
||||||
|
|
||||||
it("155.2.1 maxRows > table size > oracledb.fetchArraySize", function(done) {
|
it("155.2.1 maxRows > table size > oracledb.fetchArraySize", function(done) {
|
||||||
var tableSize = 100;
|
var tableSize = 100;
|
||||||
var fetchArraySizeVal = 50;
|
var fetchArraySizeVal = tableSize - 50;
|
||||||
var maxRowsVal = 200;
|
var maxRowsVal = tableSize + 200;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("155.2.2 maxRows > oracledb.fetchArraySize > table size", function(done) {
|
it("155.2.2 maxRows > oracledb.fetchArraySize > table size", function(done) {
|
||||||
var tableSize = 20;
|
var tableSize = 20;
|
||||||
var fetchArraySizeVal = 30;
|
var fetchArraySizeVal = tableSize + 30;
|
||||||
var maxRowsVal = 50;
|
var maxRowsVal = tableSize + 50;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("155.2.3 table size > maxRows > oracledb.fetchArraySize", function(done) {
|
it("155.2.3 table size > maxRows > oracledb.fetchArraySize", function(done) {
|
||||||
var tableSize = 199;
|
var tableSize = 199;
|
||||||
var fetchArraySizeVal = 30;
|
var fetchArraySizeVal = tableSize - 130;
|
||||||
var maxRowsVal = 50;
|
var maxRowsVal = tableSize - 50;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("155.2.4 table size > oracledb.fetchArraySize > maxRow", function(done) {
|
it("155.2.4 table size > oracledb.fetchArraySize > maxRow", function(done) {
|
||||||
var tableSize = 290;
|
var tableSize = 290;
|
||||||
var fetchArraySizeVal = 90;
|
var fetchArraySizeVal = tableSize - 10;
|
||||||
var maxRowsVal = 50;
|
var maxRowsVal = tableSize - 50;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("155.2.5 maxRows = oracledb.fetchArraySize < table size", function(done) {
|
it("155.2.5 maxRows = oracledb.fetchArraySize < table size", function(done) {
|
||||||
var tableSize = 20;
|
var tableSize = 20;
|
||||||
var fetchArraySizeVal = 3;
|
var fetchArraySizeVal = tableSize - 3;
|
||||||
var maxRowsVal = 3;
|
var maxRowsVal = fetchArraySizeVal;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("155.2.6 maxRows = oracledb.fetchArraySize = table size", function(done) {
|
it("155.2.6 maxRows = oracledb.fetchArraySize = table size", function(done) {
|
||||||
var tableSize = 20;
|
var tableSize = 20;
|
||||||
var fetchArraySizeVal = 20;
|
var fetchArraySizeVal = tableSize;
|
||||||
var maxRowsVal = 20;
|
var maxRowsVal = tableSize;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("155.2.7 maxRows = oracledb.fetchArraySize > table size", function(done) {
|
it("155.2.7 maxRows = oracledb.fetchArraySize > table size", function(done) {
|
||||||
var tableSize = 10;
|
var tableSize = 10;
|
||||||
var fetchArraySizeVal = 30;
|
var fetchArraySizeVal = tableSize + 30;
|
||||||
var maxRowsVal = 30;
|
var maxRowsVal = fetchArraySizeVal;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
@ -345,7 +345,7 @@ describe("155. fetchArraySize8.js", function() {
|
||||||
it("155.2.8 maxRows = oracledb.fetchArraySize/10", function(done) {
|
it("155.2.8 maxRows = oracledb.fetchArraySize/10", function(done) {
|
||||||
var tableSize = 100;
|
var tableSize = 100;
|
||||||
var fetchArraySizeVal = 30;
|
var fetchArraySizeVal = 30;
|
||||||
var maxRowsVal = 10;
|
var maxRowsVal = fetchArraySizeVal/10;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
@ -353,22 +353,22 @@ describe("155. fetchArraySize8.js", function() {
|
||||||
it("155.2.9 maxRows = 10 * oracledb.fetchArraySize", function(done) {
|
it("155.2.9 maxRows = 10 * oracledb.fetchArraySize", function(done) {
|
||||||
var tableSize = 2;
|
var tableSize = 2;
|
||||||
var fetchArraySizeVal = 30;
|
var fetchArraySizeVal = 30;
|
||||||
var maxRowsVal = 20;
|
var maxRowsVal = fetchArraySizeVal * 10;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("155.2.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10", function(done) {
|
it("155.2.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10", function(done) {
|
||||||
var tableSize = 200;
|
var tableSize = 200;
|
||||||
var fetchArraySizeVal = 20;
|
var fetchArraySizeVal = tableSize/10;
|
||||||
var maxRowsVal = 50;
|
var maxRowsVal = fetchArraySizeVal + 50;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("155.2.11 maxRows = 0, fetchArraySize = table size ", function(done) {
|
it("155.2.11 maxRows = 0, fetchArraySize = table size ", function(done) {
|
||||||
var tableSize = 20;
|
var tableSize = 20;
|
||||||
var fetchArraySizeVal = 20;
|
var fetchArraySizeVal = tableSize;
|
||||||
var maxRowsVal = 0;
|
var maxRowsVal = 0;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
|
@ -376,16 +376,16 @@ describe("155. fetchArraySize8.js", function() {
|
||||||
|
|
||||||
it("155.2.12 maxRows = (table size - 1), fetchArraySize = table size ", function(done) {
|
it("155.2.12 maxRows = (table size - 1), fetchArraySize = table size ", function(done) {
|
||||||
var tableSize = 20;
|
var tableSize = 20;
|
||||||
var fetchArraySizeVal = 20;
|
var fetchArraySizeVal = tableSize;
|
||||||
var maxRowsVal = 19;
|
var maxRowsVal = tableSize - 1;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("155.2.13 fetchArraySize = (table size - 1), maxRows = table size ", function(done) {
|
it("155.2.13 fetchArraySize = (table size - 1), maxRows = table size ", function(done) {
|
||||||
var tableSize = 20;
|
var tableSize = 20;
|
||||||
var fetchArraySizeVal = 19;
|
var fetchArraySizeVal = tableSize - 1;
|
||||||
var maxRowsVal = 20;
|
var maxRowsVal = tableSize;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
|
@ -137,56 +137,56 @@ describe("156. fetchArraySize9.js", function() {
|
||||||
|
|
||||||
it("156.1.1 maxRows > table size > oracledb.fetchArraySize", function(done) {
|
it("156.1.1 maxRows > table size > oracledb.fetchArraySize", function(done) {
|
||||||
var tableSize = 100;
|
var tableSize = 100;
|
||||||
var fetchArraySizeVal = 50;
|
var fetchArraySizeVal = tableSize - 50;
|
||||||
var maxRowsVal = 200;
|
var maxRowsVal = tableSize + 200;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("156.1.2 maxRows > oracledb.fetchArraySize > table size", function(done) {
|
it("156.1.2 maxRows > oracledb.fetchArraySize > table size", function(done) {
|
||||||
var tableSize = 20;
|
var tableSize = 20;
|
||||||
var fetchArraySizeVal = 30;
|
var fetchArraySizeVal = tableSize + 30;
|
||||||
var maxRowsVal = 50;
|
var maxRowsVal = tableSize + 50;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("156.1.3 table size > maxRows > oracledb.fetchArraySize", function(done) {
|
it("156.1.3 table size > maxRows > oracledb.fetchArraySize", function(done) {
|
||||||
var tableSize = 199;
|
var tableSize = 199;
|
||||||
var fetchArraySizeVal = 30;
|
var fetchArraySizeVal = tableSize - 130;
|
||||||
var maxRowsVal = 50;
|
var maxRowsVal = tableSize - 50;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("156.1.4 table size > oracledb.fetchArraySize > maxRow", function(done) {
|
it("156.1.4 table size > oracledb.fetchArraySize > maxRow", function(done) {
|
||||||
var tableSize = 290;
|
var tableSize = 290;
|
||||||
var fetchArraySizeVal = 90;
|
var fetchArraySizeVal = tableSize - 90;
|
||||||
var maxRowsVal = 50;
|
var maxRowsVal = tableSize - 150;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("156.1.5 maxRows = oracledb.fetchArraySize < table size", function(done) {
|
it("156.1.5 maxRows = oracledb.fetchArraySize < table size", function(done) {
|
||||||
var tableSize = 20;
|
var tableSize = 20;
|
||||||
var fetchArraySizeVal = 3;
|
var fetchArraySizeVal = tableSize - 3;
|
||||||
var maxRowsVal = 3;
|
var maxRowsVal = fetchArraySizeVal;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("156.1.6 maxRows = oracledb.fetchArraySize = table size", function(done) {
|
it("156.1.6 maxRows = oracledb.fetchArraySize = table size", function(done) {
|
||||||
var tableSize = 20;
|
var tableSize = 20;
|
||||||
var fetchArraySizeVal = 20;
|
var fetchArraySizeVal = tableSize;
|
||||||
var maxRowsVal = 20;
|
var maxRowsVal = tableSize;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("156.1.7 maxRows = oracledb.fetchArraySize > table size", function(done) {
|
it("156.1.7 maxRows = oracledb.fetchArraySize > table size", function(done) {
|
||||||
var tableSize = 10;
|
var tableSize = 10;
|
||||||
var fetchArraySizeVal = 30;
|
var fetchArraySizeVal = tableSize + 30;
|
||||||
var maxRowsVal = 30;
|
var maxRowsVal = fetchArraySizeVal;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
@ -194,7 +194,7 @@ describe("156. fetchArraySize9.js", function() {
|
||||||
it("156.1.8 maxRows = oracledb.fetchArraySize/10", function(done) {
|
it("156.1.8 maxRows = oracledb.fetchArraySize/10", function(done) {
|
||||||
var tableSize = 100;
|
var tableSize = 100;
|
||||||
var fetchArraySizeVal = 30;
|
var fetchArraySizeVal = 30;
|
||||||
var maxRowsVal = 10;
|
var maxRowsVal = fetchArraySizeVal/10;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
@ -202,22 +202,22 @@ describe("156. fetchArraySize9.js", function() {
|
||||||
it("156.1.9 maxRows = 10 * oracledb.fetchArraySize", function(done) {
|
it("156.1.9 maxRows = 10 * oracledb.fetchArraySize", function(done) {
|
||||||
var tableSize = 2;
|
var tableSize = 2;
|
||||||
var fetchArraySizeVal = 30;
|
var fetchArraySizeVal = 30;
|
||||||
var maxRowsVal = 20;
|
var maxRowsVal = fetchArraySizeVal * 10;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("156.1.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10", function(done) {
|
it("156.1.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10", function(done) {
|
||||||
var tableSize = 200;
|
var tableSize = 200;
|
||||||
var fetchArraySizeVal = 20;
|
var fetchArraySizeVal = tableSize/10;
|
||||||
var maxRowsVal = 50;
|
var maxRowsVal = fetchArraySizeVal + 50;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("156.1.11 maxRows = 0, fetchArraySize = table size ", function(done) {
|
it("156.1.11 maxRows = 0, fetchArraySize = table size ", function(done) {
|
||||||
var tableSize = 20;
|
var tableSize = 20;
|
||||||
var fetchArraySizeVal = 20;
|
var fetchArraySizeVal = tableSize;
|
||||||
var maxRowsVal = 0;
|
var maxRowsVal = 0;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
|
@ -225,16 +225,16 @@ describe("156. fetchArraySize9.js", function() {
|
||||||
|
|
||||||
it("156.1.12 maxRows = (table size - 1), fetchArraySize = table size ", function(done) {
|
it("156.1.12 maxRows = (table size - 1), fetchArraySize = table size ", function(done) {
|
||||||
var tableSize = 100;
|
var tableSize = 100;
|
||||||
var fetchArraySizeVal = 100;
|
var fetchArraySizeVal = tableSize;
|
||||||
var maxRowsVal = 99;
|
var maxRowsVal = tableSize - 1;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("156.1.13 fetchArraySize = (table size - 1), maxRows = table size ", function(done) {
|
it("156.1.13 fetchArraySize = (table size - 1), maxRows = table size ", function(done) {
|
||||||
var tableSize = 100;
|
var tableSize = 100;
|
||||||
var fetchArraySizeVal = 99;
|
var fetchArraySizeVal = tableSize - 1;
|
||||||
var maxRowsVal = 100;
|
var maxRowsVal = tableSize;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithGlobalOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
@ -292,56 +292,56 @@ describe("156. fetchArraySize9.js", function() {
|
||||||
|
|
||||||
it("156.2.1 maxRows > table size > oracledb.fetchArraySize", function(done) {
|
it("156.2.1 maxRows > table size > oracledb.fetchArraySize", function(done) {
|
||||||
var tableSize = 100;
|
var tableSize = 100;
|
||||||
var fetchArraySizeVal = 50;
|
var fetchArraySizeVal = tableSize - 50;
|
||||||
var maxRowsVal = 200;
|
var maxRowsVal = tableSize + 200;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("156.2.2 maxRows > oracledb.fetchArraySize > table size", function(done) {
|
it("156.2.2 maxRows > oracledb.fetchArraySize > table size", function(done) {
|
||||||
var tableSize = 20;
|
var tableSize = 20;
|
||||||
var fetchArraySizeVal = 30;
|
var fetchArraySizeVal = tableSize + 30;
|
||||||
var maxRowsVal = 50;
|
var maxRowsVal = tableSize + 50;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("156.2.3 table size > maxRows > oracledb.fetchArraySize", function(done) {
|
it("156.2.3 table size > maxRows > oracledb.fetchArraySize", function(done) {
|
||||||
var tableSize = 199;
|
var tableSize = 199;
|
||||||
var fetchArraySizeVal = 30;
|
var fetchArraySizeVal = tableSize - 30;
|
||||||
var maxRowsVal = 50;
|
var maxRowsVal = tableSize - 10;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("156.2.4 table size > oracledb.fetchArraySize > maxRow", function(done) {
|
it("156.2.4 table size > oracledb.fetchArraySize > maxRow", function(done) {
|
||||||
var tableSize = 290;
|
var tableSize = 290;
|
||||||
var fetchArraySizeVal = 90;
|
var fetchArraySizeVal = tableSize - 90;
|
||||||
var maxRowsVal = 50;
|
var maxRowsVal = tableSize - 150;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("156.2.5 maxRows = oracledb.fetchArraySize < table size", function(done) {
|
it("156.2.5 maxRows = oracledb.fetchArraySize < table size", function(done) {
|
||||||
var tableSize = 20;
|
var tableSize = 20;
|
||||||
var fetchArraySizeVal = 3;
|
var fetchArraySizeVal = tableSize - 3;
|
||||||
var maxRowsVal = 3;
|
var maxRowsVal = fetchArraySizeVal;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("156.2.6 maxRows = oracledb.fetchArraySize = table size", function(done) {
|
it("156.2.6 maxRows = oracledb.fetchArraySize = table size", function(done) {
|
||||||
var tableSize = 20;
|
var tableSize = 20;
|
||||||
var fetchArraySizeVal = 20;
|
var fetchArraySizeVal = tableSize;
|
||||||
var maxRowsVal = 20;
|
var maxRowsVal = tableSize;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("156.2.7 maxRows = oracledb.fetchArraySize > table size", function(done) {
|
it("156.2.7 maxRows = oracledb.fetchArraySize > table size", function(done) {
|
||||||
var tableSize = 10;
|
var tableSize = 10;
|
||||||
var fetchArraySizeVal = 30;
|
var fetchArraySizeVal = tableSize + 30;
|
||||||
var maxRowsVal = 30;
|
var maxRowsVal = fetchArraySizeVal;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
@ -349,7 +349,7 @@ describe("156. fetchArraySize9.js", function() {
|
||||||
it("156.2.8 maxRows = oracledb.fetchArraySize/10", function(done) {
|
it("156.2.8 maxRows = oracledb.fetchArraySize/10", function(done) {
|
||||||
var tableSize = 100;
|
var tableSize = 100;
|
||||||
var fetchArraySizeVal = 30;
|
var fetchArraySizeVal = 30;
|
||||||
var maxRowsVal = 10;
|
var maxRowsVal = fetchArraySizeVal/10;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
@ -357,22 +357,22 @@ describe("156. fetchArraySize9.js", function() {
|
||||||
it("156.2.9 maxRows = 10 * oracledb.fetchArraySize", function(done) {
|
it("156.2.9 maxRows = 10 * oracledb.fetchArraySize", function(done) {
|
||||||
var tableSize = 2;
|
var tableSize = 2;
|
||||||
var fetchArraySizeVal = 30;
|
var fetchArraySizeVal = 30;
|
||||||
var maxRowsVal = 20;
|
var maxRowsVal = fetchArraySizeVal*10;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("156.2.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10", function(done) {
|
it("156.2.10 maxRows > fetchArraySize, fetchArraySize = (table size)/10", function(done) {
|
||||||
var tableSize = 200;
|
var tableSize = 200;
|
||||||
var fetchArraySizeVal = 20;
|
var fetchArraySizeVal = tableSize/10;
|
||||||
var maxRowsVal = 50;
|
var maxRowsVal = tableSize/10 + 50;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("156.2.11 maxRows = 0, fetchArraySize = table size ", function(done) {
|
it("156.2.11 maxRows = 0, fetchArraySize = table size ", function(done) {
|
||||||
var tableSize = 20;
|
var tableSize = 20;
|
||||||
var fetchArraySizeVal = 20;
|
var fetchArraySizeVal = tableSize;
|
||||||
var maxRowsVal = 0;
|
var maxRowsVal = 0;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
|
@ -380,16 +380,16 @@ describe("156. fetchArraySize9.js", function() {
|
||||||
|
|
||||||
it("156.2.12 maxRows = (table size - 1), fetchArraySize = table size ", function(done) {
|
it("156.2.12 maxRows = (table size - 1), fetchArraySize = table size ", function(done) {
|
||||||
var tableSize = 100;
|
var tableSize = 100;
|
||||||
var fetchArraySizeVal = 100;
|
var fetchArraySizeVal = tableSize;
|
||||||
var maxRowsVal = 99;
|
var maxRowsVal = tableSize - 1;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("156.2.13 fetchArraySize = (table size - 1), maxRows = table size ", function(done) {
|
it("156.2.13 fetchArraySize = (table size - 1), maxRows = table size ", function(done) {
|
||||||
var tableSize = 100;
|
var tableSize = 100;
|
||||||
var fetchArraySizeVal = 99;
|
var fetchArraySizeVal = tableSize - 1;
|
||||||
var maxRowsVal = 100;
|
var maxRowsVal = tableSize;
|
||||||
var affectedID = 0;
|
var affectedID = 0;
|
||||||
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
basicFetchWithExecOption(tableSize, fetchArraySizeVal, maxRowsVal, affectedID, done);
|
||||||
});
|
});
|
||||||
|
|
124
test/list.txt
124
test/list.txt
|
@ -3777,37 +3777,37 @@ Overview of node-oracledb functional tests
|
||||||
|
|
||||||
150. fetchArraySize3.js
|
150. fetchArraySize3.js
|
||||||
150.1 DML binding
|
150.1 DML binding
|
||||||
150.1.1 oracledb.fetchArraySize = 1
|
150.1.1 oracledb.fetchArraySize = 1
|
||||||
150.1.2 oracledb.fetchArraySize = 50
|
150.1.2 oracledb.fetchArraySize = tableSize/20
|
||||||
150.1.3 oracledb.fetchArraySize = 100
|
150.1.3 oracledb.fetchArraySize = tableSize/10
|
||||||
150.1.4 oracledb.fetchArraySize = 1000
|
150.1.4 oracledb.fetchArraySize = tableSize
|
||||||
150.1.5 oracledb.fetchArraySize = (table size - 1)
|
150.1.5 oracledb.fetchArraySize = (table size - 1)
|
||||||
150.2 procedure binding
|
150.2 procedure binding
|
||||||
150.2.1 Bind OUT with oracledb.fetchArraySize = 1
|
150.2.1 Bind OUT with oracledb.fetchArraySize = 1
|
||||||
150.2.2 Bind OUT with oracledb.fetchArraySize = 50
|
150.2.2 Bind OUT with oracledb.fetchArraySize = tableSize/20
|
||||||
150.2.3 Bind OUT with oracledb.fetchArraySize = 100
|
150.2.3 Bind OUT with oracledb.fetchArraySize = tableSize/10
|
||||||
150.2.4 Bind OUT with oracledb.fetchArraySize = 1000
|
150.2.4 Bind OUT with oracledb.fetchArraySize = tableSize
|
||||||
150.2.5 Bind OUT with oracledb.fetchArraySize = (table size - 1)
|
150.2.5 Bind OUT with oracledb.fetchArraySize = (table size - 1)
|
||||||
150.2.6 Bind IN OUT with oracledb.fetchArraySize = 1
|
150.2.6 Bind IN OUT with oracledb.fetchArraySize = 1
|
||||||
150.2.7 Bind IN OUT with oracledb.fetchArraySize = 50
|
150.2.7 Bind IN OUT with oracledb.fetchArraySize = tableSize/20
|
||||||
150.2.8 Bind IN OUT with oracledb.fetchArraySize = 100
|
150.2.8 Bind IN OUT with oracledb.fetchArraySize = tableSize/10
|
||||||
150.2.9 Bind IN OUT with oracledb.fetchArraySize = 1000
|
150.2.9 Bind IN OUT with oracledb.fetchArraySize = tableSize
|
||||||
150.2.10 Bind IN OUT with oracledb.fetchArraySize = (table size - 1)
|
150.2.10 Bind IN OUT with oracledb.fetchArraySize = (table size - 1)
|
||||||
150.3 function binding
|
150.3 function binding
|
||||||
150.3.1 Bind OUT with oracledb.fetchArraySize = 1
|
150.3.1 Bind OUT with oracledb.fetchArraySize = 1
|
||||||
150.3.2 Bind OUT with oracledb.fetchArraySize = 50
|
150.3.2 Bind OUT with oracledb.fetchArraySize = tableSize/20
|
||||||
150.3.3 Bind OUT with oracledb.fetchArraySize = 100
|
150.3.3 Bind OUT with oracledb.fetchArraySize = tableSize/10
|
||||||
150.3.4 Bind OUT with oracledb.fetchArraySize = 1000
|
150.3.4 Bind OUT with oracledb.fetchArraySize = tableSize
|
||||||
150.3.5 Bind OUT with oracledb.fetchArraySize = (table size - 1)
|
150.3.5 Bind OUT with oracledb.fetchArraySize = (table size - 1)
|
||||||
150.3.6 Bind IN OUT with oracledb.fetchArraySize = 1
|
150.3.6 Bind IN OUT with oracledb.fetchArraySize = 1
|
||||||
150.3.7 Bind IN OUT with oracledb.fetchArraySize = 50
|
150.3.7 Bind IN OUT with oracledb.fetchArraySize = tableSize/20
|
||||||
150.3.8 Bind IN OUT with oracledb.fetchArraySize = 100
|
150.3.8 Bind IN OUT with oracledb.fetchArraySize = tableSize/10
|
||||||
150.3.9 Bind IN OUT with oracledb.fetchArraySize = 1000
|
150.3.9 Bind IN OUT with oracledb.fetchArraySize = tableSize
|
||||||
150.3.10 Bind IN OUT with oracledb.fetchArraySize = (table size - 1)
|
150.3.10 Bind IN OUT with oracledb.fetchArraySize = (table size - 1)
|
||||||
|
|
||||||
151. fetchArraySize4.js
|
151. fetchArraySize4.js
|
||||||
151.1 getRows() of resultSet = true
|
151.1 getRows() of resultSet = true
|
||||||
151.1.1 numRows > table size > oracledb.fetchArraySize
|
151.1.1 numRows > table size > oracledb.fetchArraySize
|
||||||
151.1.2 numRows > oracledb.fetchArraySize > table size
|
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.4 table size > oracledb.fetchArraySize > maxRow
|
||||||
|
@ -3820,20 +3820,20 @@ Overview of node-oracledb functional tests
|
||||||
151.1.11 numRows = (table size - 1), fetchArraySize = table size
|
151.1.11 numRows = (table size - 1), fetchArraySize = table size
|
||||||
151.1.12 fetchArraySize = (table size - 1), numRows = table size
|
151.1.12 fetchArraySize = (table size - 1), numRows = table size
|
||||||
151.2 getRow() of resultSet = true
|
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.2 oracledb.fetchArraySize = tableSize/50
|
||||||
151.2.3 oracledb.fetchArraySize = 50
|
151.2.3 oracledb.fetchArraySize = tableSize/20
|
||||||
151.2.4 oracledb.fetchArraySize = 100
|
151.2.4 oracledb.fetchArraySize = tableSize/10
|
||||||
151.2.5 oracledb.fetchArraySize = 200
|
151.2.5 oracledb.fetchArraySize = tableSize/5
|
||||||
151.2.6 oracledb.fetchArraySize = 1000
|
151.2.6 oracledb.fetchArraySize = tableSize
|
||||||
151.2.7 oracledb.fetchArraySize = (table size - 1)
|
151.2.7 oracledb.fetchArraySize = (table size - 1)
|
||||||
151.3 interleaved calls to getRow() and getRows()
|
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.2 oracledb.fetchArraySize = tableSize/50
|
||||||
151.3.3 oracledb.fetchArraySize = 50
|
151.3.3 oracledb.fetchArraySize = tableSize/20
|
||||||
151.3.4 oracledb.fetchArraySize = 100
|
151.3.4 oracledb.fetchArraySize = tableSize/10
|
||||||
151.3.5 oracledb.fetchArraySize = 200
|
151.3.5 oracledb.fetchArraySize = tableSize/5
|
||||||
151.3.6 oracledb.fetchArraySize = 1000
|
151.3.6 oracledb.fetchArraySize = tableSize
|
||||||
151.3.6 oracledb.fetchArraySize = (table size - 1)
|
151.3.6 oracledb.fetchArraySize = (table size - 1)
|
||||||
|
|
||||||
152. fetchArraySize5.js
|
152. fetchArraySize5.js
|
||||||
|
@ -3881,37 +3881,37 @@ Overview of node-oracledb functional tests
|
||||||
|
|
||||||
153. fetchArraySize6.js
|
153. fetchArraySize6.js
|
||||||
153.1 DML binding
|
153.1 DML binding
|
||||||
153.1.1 fetchArraySize = 1
|
153.1.1 fetchArraySize = 1
|
||||||
153.1.2 fetchArraySize = 50
|
153.1.2 fetchArraySize = tableSize/20
|
||||||
153.1.3 fetchArraySize = 100
|
153.1.3 fetchArraySize = tableSize/10
|
||||||
153.1.4 fetchArraySize = 1000
|
153.1.4 fetchArraySize = tableSize
|
||||||
153.1.5 fetchArraySize = (table size - 1)
|
153.1.5 fetchArraySize = (table size - 1)
|
||||||
153.2 procedure binding
|
153.2 procedure binding
|
||||||
153.2.1 Bind OUT with fetchArraySize = 1
|
153.2.1 Bind OUT with fetchArraySize = 1
|
||||||
153.2.2 Bind OUT with fetchArraySize = 50
|
153.2.2 Bind OUT with fetchArraySize = tableSize/20
|
||||||
153.2.3 Bind OUT with fetchArraySize = 100
|
153.2.3 Bind OUT with fetchArraySize = tableSize/10
|
||||||
153.2.4 Bind OUT with fetchArraySize = 1000
|
153.2.4 Bind OUT with fetchArraySize = tableSize
|
||||||
153.2.5 Bind OUT with fetchArraySize = (table size - 1)
|
153.2.5 Bind OUT with fetchArraySize = (table size - 1)
|
||||||
153.2.6 Bind IN OUT with fetchArraySize = 1
|
153.2.6 Bind IN OUT with fetchArraySize = 1
|
||||||
153.2.7 Bind IN OUT with fetchArraySize = 50
|
153.2.7 Bind IN OUT with fetchArraySize = tableSize/20
|
||||||
153.2.8 Bind IN OUT with fetchArraySize = 100
|
153.2.8 Bind IN OUT with fetchArraySize = tableSize/10
|
||||||
153.2.9 Bind IN OUT with fetchArraySize = 1000
|
153.2.9 Bind IN OUT with fetchArraySize = tableSize
|
||||||
153.2.10 Bind IN OUT with fetchArraySize = (table size - 1)
|
153.2.10 Bind IN OUT with fetchArraySize = (table size - 1)
|
||||||
153.3 function binding
|
153.3 function binding
|
||||||
153.3.1 Bind OUT with fetchArraySize = 1
|
153.3.1 Bind OUT with fetchArraySize = 1
|
||||||
153.3.2 Bind OUT with fetchArraySize = 50
|
153.3.2 Bind OUT with fetchArraySize = tableSize/20
|
||||||
153.3.3 Bind OUT with fetchArraySize = 100
|
153.3.3 Bind OUT with fetchArraySize = tableSize/10
|
||||||
153.3.4 Bind OUT with fetchArraySize = 1000
|
153.3.4 Bind OUT with fetchArraySize = tableSize
|
||||||
153.3.5 Bind OUT with fetchArraySize = (table size - 1)
|
153.3.5 Bind OUT with fetchArraySize = (table size - 1)
|
||||||
153.3.6 Bind IN OUT with fetchArraySize = 1
|
153.3.6 Bind IN OUT with fetchArraySize = 1
|
||||||
153.3.7 Bind IN OUT with fetchArraySize = 50
|
153.3.7 Bind IN OUT with fetchArraySize = tableSize/20
|
||||||
153.3.8 Bind IN OUT with fetchArraySize = 100
|
153.3.8 Bind IN OUT with fetchArraySize = tableSize/10
|
||||||
153.3.9 Bind IN OUT with fetchArraySize = 1000
|
153.3.9 Bind IN OUT with fetchArraySize = tableSize
|
||||||
153.3.10 Bind IN OUT with fetchArraySize = (table size - 1)
|
153.3.10 Bind IN OUT with fetchArraySize = (table size - 1)
|
||||||
|
|
||||||
154. fetchArraySize7.js
|
154. fetchArraySize7.js
|
||||||
154.1 getRows() of resultSet = true
|
154.1 getRows() of resultSet = true
|
||||||
154.1.1 numRows > table size > fetchArraySize
|
154.1.1 numRows > table size > fetchArraySize
|
||||||
154.1.2 numRows > fetchArraySize > table size
|
154.1.2 numRows > fetchArraySize > table size
|
||||||
154.1.3 table size > numRows > fetchArraySize
|
154.1.3 table size > numRows > fetchArraySize
|
||||||
154.1.4 table size > fetchArraySize > maxRow
|
154.1.4 table size > fetchArraySize > maxRow
|
||||||
|
@ -3924,21 +3924,21 @@ Overview of node-oracledb functional tests
|
||||||
154.1.11 numRows = (table size - 1), fetchArraySize = table size
|
154.1.11 numRows = (table size - 1), fetchArraySize = table size
|
||||||
154.1.12 fetchArraySize = (table size - 1), numRows = table size
|
154.1.12 fetchArraySize = (table size - 1), numRows = table size
|
||||||
154.2 getRow() of resultSet = true
|
154.2 getRow() of resultSet = true
|
||||||
154.2.1 fetchArraySize = 1
|
154.2.1 fetchArraySize = 1
|
||||||
154.2.2 fetchArraySize = 20
|
154.2.2 fetchArraySize = tableSize/50
|
||||||
154.2.3 fetchArraySize = 50
|
154.2.3 fetchArraySize = tableSize/20
|
||||||
154.2.4 fetchArraySize = 100
|
154.2.4 fetchArraySize = tableSize/10
|
||||||
154.2.5 fetchArraySize = 200
|
154.2.5 fetchArraySize = tableSize/5
|
||||||
154.2.6 fetchArraySize = 1000
|
154.2.6 fetchArraySize = tableSize
|
||||||
154.2.7 fetchArraySize = (table size - 1)
|
154.2.7 fetchArraySize = (table size - 1)
|
||||||
154.3 interleaved calls to getRow() and getRows()
|
154.3 interleaved calls to getRow() and getRows()
|
||||||
154.3.1 fetchArraySize = 1
|
154.3.1 fetchArraySize = 1
|
||||||
154.3.2 fetchArraySize = 20
|
154.3.2 fetchArraySize = tableSize/50
|
||||||
154.3.3 fetchArraySize = 50
|
154.3.3 fetchArraySize = tableSize/20
|
||||||
154.3.4 fetchArraySize = 100
|
154.3.4 fetchArraySize = tableSize/10
|
||||||
154.3.5 fetchArraySize = 200
|
154.3.5 fetchArraySize = tableSize/5
|
||||||
154.3.6 fetchArraySize = 1000
|
154.3.6 fetchArraySize = tableSize
|
||||||
154.3.7 fetchArraySize = (table size - 1)
|
154.3.7 fetchArraySize = (tableSize - 1)
|
||||||
|
|
||||||
155. fetchArraySize8.js
|
155. fetchArraySize8.js
|
||||||
155.1 Streaming clobs with different oracledb.fetchArraySize
|
155.1 Streaming clobs with different oracledb.fetchArraySize
|
||||||
|
|
Loading…
Reference in New Issue