mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +01:00 
			
		
		
		
	
						commit
						42c8059ae1
					
				@ -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() : "";
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user