Skip to content

Commit

Permalink
fix: default result in readAllCursor method
Browse files Browse the repository at this point in the history
  • Loading branch information
wunderbarr committed Jun 16, 2021
1 parent d38462f commit 330da19
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/unit_test_misc/test-describe/amazonS3-unittest.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static async readAllCursor(search, order, pagination, benignErrorReporter){
query += \` LIMIT \${pagination.first+1}\`;
}
let records = null;
let records = [];
try {
const s3 = await this.storageHandler;
const result = await s3
Expand Down
2 changes: 1 addition & 1 deletion test/unit_test_misc/test-describe/trino-unittest.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ static async readAllCursor(search, order, pagination, benignErrorReporter) {
\${filter}
\${sort}
LIMIT \${limit}\`;
let result = null;
let result = [];
const client = await this.storageHandler;
result = await prestoHelper.queryData(query, client);
Expand Down
2 changes: 1 addition & 1 deletion views/create-amazonS3-adapter.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ module.exports = class <%- adapterName -%> {
query += ` LIMIT ${pagination.first+1}`;
}

let records = null;
let records = [];
try {
const s3 = await this.storageHandler;
const result = await s3
Expand Down
2 changes: 1 addition & 1 deletion views/create-models-amazonS3.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ module.exports = class <%- nameLc -%> {
query += ` LIMIT ${pagination.first+1}`;
}

let records = null;
let records = [];
try {
const s3 = await this.storageHandler;
const result = await s3
Expand Down
2 changes: 1 addition & 1 deletion views/create-models-trino.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ module.exports = class <%- nameLc -%> {
${filter}
${sort}
LIMIT ${limit}`;
let result = null;
let result = [];

const client = await this.storageHandler;
result = await prestoHelper.queryData(query, client);
Expand Down
2 changes: 1 addition & 1 deletion views/create-trino-adapter.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ module.exports = class <%- adapterName -%> {
${filter}
${sort}
LIMIT ${limit}`;
let result = null;
let result = [];

const client = await this.storageHandler;
result = await prestoHelper.queryData(query, client);
Expand Down

0 comments on commit 330da19

Please sign in to comment.