From 0f4eb8ff4c5df37bab59fc84bff63a23344b694f Mon Sep 17 00:00:00 2001 From: dymani Date: Wed, 28 Jun 2023 02:31:17 +0800 Subject: [PATCH] fix closing parenthesis --- src/routes/api/sql.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/api/sql.js b/src/routes/api/sql.js index 9dec60aff..9732a7a7b 100644 --- a/src/routes/api/sql.js +++ b/src/routes/api/sql.js @@ -33,7 +33,7 @@ function execute(req) { for (let query of queries) { query = query.trim(); - while (query.startsWith('-- ') { + while (query.startsWith('-- ')) { // Query starts with one or more SQL comments, discard these before we execute. const pivot = query.indexOf('\n'); query = pivot > 0 ? query.substr(pivot + 1).trim() : "";