mirror of
				https://github.com/VCMP-SqMod/SqMod.git
				synced 2025-11-04 00:07:19 +01:00 
			
		
		
		
	Minor fix in mysql module when executing update queries.
This commit is contained in:
		@@ -199,7 +199,7 @@ Uint64 ConnHnd::Execute(CSStr query, Ulong size)
 | 
			
		||||
            // Sum the number of affected rows by this statement
 | 
			
		||||
            affected += mysql_affected_rows(mPtr);
 | 
			
		||||
        }
 | 
			
		||||
        else
 | 
			
		||||
        else if (mysql_errno(mPtr) != 0)
 | 
			
		||||
        {
 | 
			
		||||
            SQMOD_THROW_CURRENT(*this, "Unable to count affected rows");
 | 
			
		||||
        }
 | 
			
		||||
@@ -222,4 +222,4 @@ Uint64 ConnHnd::Execute(CSStr query, Ulong size)
 | 
			
		||||
    return affected;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
} // Namespace:: SqMod
 | 
			
		||||
} // Namespace:: SqMod
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user