Merge pull request #4057 from dymani/master

Fix closing parenthesis
This commit is contained in:
zadam 2023-06-27 21:38:36 +02:00 committed by GitHub
commit 42c8059ae1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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