src/ORM/Connect/PDOConnector.php
public function exec($sql, $errorLevel = E_USER_ERROR)
    {
        $this->beforeQuery($sql);

        // Directly exec this query
        $result = $this->pdoConnection->exec($sql);

        // Check for errors
        if ($result !== false) {
            return $this->rowCount = $result;
        }

        $this->databaseError($this->getLastError(), $errorLevel, $sql);
        return null;
    }
public function exec($sql, $errorLevel = E_USER_ERROR)
    {
        $this->beforeQuery($sql);

        // Directly exec this query
        $result = $this->pdoConnection->exec($sql);

        // Check for errors
        if ($result !== false) {
            return $this->rowCount = $result;
        }

        $this->databaseError($this->getLastError(), $errorLevel, $sql);
        return null;
    }
public function exec ( $ sql , $ errorLevel = E_USER_ERROR ) { $ this -> beforeQuery ( $ sql ) ; // Directly exec this query $ result = $ this -> pdoConnection -> exec ( $ sql ) ; // Check for errors if ( $ result !== false ) { return $ this -> rowCount = $ result ; } $ this -> databaseError ( $ this -> getLastError ( ) , $ errorLevel , $ sql ) ; return null ; }
Executes a query that doesn't return a resultset

@param string $sql The SQL query to execute
@param integer $errorLevel For errors to this query, raise PHP errors
using this error level.
@return int
Executes a query that doesn t return a resultset