Clear scopes before invoke scopes methods
This commit is contained in:
		
							parent
							
								
									eb318e6fce
								
							
						
					
					
						commit
						e99c16392f
					
				@ -109,10 +109,11 @@ func (p *processor) Execute(db *DB) {
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// call scopes
 | 
			
		||||
	for _, scope := range stmt.scopes {
 | 
			
		||||
	scopes := stmt.scopes
 | 
			
		||||
	stmt.scopes = nil
 | 
			
		||||
	for _, scope := range scopes {
 | 
			
		||||
		db = scope(db)
 | 
			
		||||
	}
 | 
			
		||||
	stmt.scopes = nil
 | 
			
		||||
 | 
			
		||||
	for _, f := range p.fns {
 | 
			
		||||
		f(db)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user