mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
commit
42c8059ae1
@ -33,7 +33,7 @@ function execute(req) {
|
|||||||
for (let query of queries) {
|
for (let query of queries) {
|
||||||
query = query.trim();
|
query = query.trim();
|
||||||
|
|
||||||
while (query.startsWith('-- ') {
|
while (query.startsWith('-- ')) {
|
||||||
// Query starts with one or more SQL comments, discard these before we execute.
|
// Query starts with one or more SQL comments, discard these before we execute.
|
||||||
const pivot = query.indexOf('\n');
|
const pivot = query.indexOf('\n');
|
||||||
query = pivot > 0 ? query.substr(pivot + 1).trim() : "";
|
query = pivot > 0 ? query.substr(pivot + 1).trim() : "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user