From 4da2f9f9a684473aa8f47e2d67a70a702c3f5e3a Mon Sep 17 00:00:00 2001 From: sairajzero Date: Tue, 21 Mar 2023 23:56:53 +0530 Subject: [PATCH] Update checksum-db.js --- debug/checksum-db.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debug/checksum-db.js b/debug/checksum-db.js index e893653..ce182ee 100644 --- a/debug/checksum-db.js +++ b/debug/checksum-db.js @@ -26,9 +26,9 @@ function listTables() { function checksumTable(table) { return new Promise((resolve, reject) => { - DB.query("CHECKSUM TABLE " + table).then(result => { + DB.query("CHECKSUM TABLE ??", [table]).then(result => { let checksum = result[0].Checksum; - DB.query("SELECT COUNT(*) AS rec_count FROM " + table) + DB.query("SELECT COUNT(*) AS rec_count FROM ??", [table]) .then(result => resolve({ table, rec_count: result[0].rec_count, checksum })) .catch(error => reject(error)) }).catch(error => reject(error))