src/Ease/SQL/MySQLi.php
public function exeQuery($queryRaw, $ignoreErrors = false)
    {
        $queryRaw           = $this->sanitizeQuery($queryRaw);
        $this->lastQuery    = $queryRaw;
        $this->lastInsertID = null;
        $this->errorText    = null;
        $this->errorNumber  = null;
        $sqlAction          = trim(strtolower(current(explode(' ', $queryRaw))));

        $this->result      = $this->sqlLink->query($queryRaw);
        $this->errorNumber = $this->sqlLink->errno;
        $this->errorText   = $this->sqlLink->error;

        $this->logSqlError($ignoreErrors);

        switch ($sqlAction) {
            case 'select':
            case 'show':
                if (!$this->errorText) {
                    $this->numRows = $this->result->num_rows;
                }
                break;
            case 'insert':
                if (!$this->errorText) {
                    $this->lastInsertID = $this->sqlLink->insert_id;
                }
            case 'update':
            case 'replace':
            case 'delete':
            case 'alter':
                $this->numRows = $this->sqlLink->affected_rows;
                break;
            default:
                $this->numRows = null;
        }
        if ($this->explainMode) {
            $explainQuery = $this->sqlLink->query('EXPLAIN '.$queryRaw);
            if ($explainQuery) {
                $explainedQuery = $explainQuery->fetch_assoc();
                $this->addToLog('Explain: '.$queryRaw."\n".$this->printPreBasic($explainedQuery),
                    'explain');
            }
        }

        return $this->result;
    }
public function exeQuery($queryRaw, $ignoreErrors = false)
    {
        $queryRaw           = $this->sanitizeQuery($queryRaw);
        $this->lastQuery    = $queryRaw;
        $this->lastInsertID = null;
        $this->errorText    = null;
        $this->errorNumber  = null;
        $sqlAction          = trim(strtolower(current(explode(' ', $queryRaw))));

        $this->result      = $this->sqlLink->query($queryRaw);
        $this->errorNumber = $this->sqlLink->errno;
        $this->errorText   = $this->sqlLink->error;

        $this->logSqlError($ignoreErrors);

        switch ($sqlAction) {
            case 'select':
            case 'show':
                if (!$this->errorText) {
                    $this->numRows = $this->result->num_rows;
                }
                break;
            case 'insert':
                if (!$this->errorText) {
                    $this->lastInsertID = $this->sqlLink->insert_id;
                }
            case 'update':
            case 'replace':
            case 'delete':
            case 'alter':
                $this->numRows = $this->sqlLink->affected_rows;
                break;
            default:
                $this->numRows = null;
        }
        if ($this->explainMode) {
            $explainQuery = $this->sqlLink->query('EXPLAIN '.$queryRaw);
            if ($explainQuery) {
                $explainedQuery = $explainQuery->fetch_assoc();
                $this->addToLog('Explain: '.$queryRaw."\n".$this->printPreBasic($explainedQuery),
                    'explain');
            }
        }

        return $this->result;
    }
Vykoná QueryRaw a vrátí výsledek.

@param string $queryRaw
@param bool   $ignoreErrors

@return SQLhandle