fix closing parenthesis

This commit is contained in:
dymani 2023-06-28 02:31:17 +08:00
parent 8eb091445b
commit 0f4eb8ff4c

View File

@ -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() : "";