mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 09:57:38 +03:00 
			
		
		
		
	Patch for an Issue #1226đ
This commit is contained in:
		
							parent
							
								
									bb98894dc1
								
							
						
					
					
						commit
						a94dcf94e9
					
				| 
						 | 
				
			
			@ -77,10 +77,17 @@ class Database(object):
 | 
			
		|||
        self.connection.commit()
 | 
			
		||||
 | 
			
		||||
    def execute(self, statement, arguments=None):
 | 
			
		||||
        while True:
 | 
			
		||||
            try:
 | 
			
		||||
                if arguments:
 | 
			
		||||
                    self.cursor.execute(statement, arguments)
 | 
			
		||||
                else:
 | 
			
		||||
                    self.cursor.execute(statement)
 | 
			
		||||
            except sqlite3.OperationalError, ex:
 | 
			
		||||
                if not "locked" in ex.message:
 | 
			
		||||
                    raise
 | 
			
		||||
            else:
 | 
			
		||||
                break
 | 
			
		||||
 | 
			
		||||
        if statement.lstrip().upper().startswith("SELECT"):
 | 
			
		||||
            return self.cursor.fetchall()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user