public function exec($sqlQuery)
    {
        $rc = mysqli_query($this->_connection, $sqlQuery);
        $rowsAffected = mysqli_affected_rows($this->_connection);
        if (!is_bool($rc)) {
            mysqli_free_result($rc);
        }
        return $rowsAffected;
    }
public function exec($sqlQuery)
    {
        $rc = mysqli_query($this->_connection, $sqlQuery);
        $rowsAffected = mysqli_affected_rows($this->_connection);
        if (!is_bool($rc)) {
            mysqli_free_result($rc);
        }
        return $rowsAffected;
    }
public function exec ( $ sqlQuery ) { $ rc = mysqli_query ( $ this -> _connection , $ sqlQuery ) ; $ rowsAffected = mysqli_affected_rows ( $ this -> _connection ) ; if ( ! is_bool ( $ rc ) ) { mysqli_free_result ( $ rc ) ; } return $ rowsAffected ; }
Execute unprepared SQL query and throw away the result

Workaround some SQL statements not compatible with prepare().
See http://framework.zend.com/issues/browse/ZF-1398

@param string $sqlQuery
@return int  Number of rows affected (SELECT/INSERT/UPDATE/DELETE)
Execute unprepared SQL query and throw away the result