wpdb::_do_query PHP Method

_do_query() private method

Internal function to perform the mysql_query() call.
See also: wpdb::query()
Since: 3.9.0
private _do_query ( string $query )
$query string The query to run.
    private function _do_query($query)
    {
        if (defined('SAVEQUERIES') && SAVEQUERIES) {
            $this->timer_start();
        }
        if ($this->use_mysqli) {
            $this->result = @mysqli_query($this->dbh, $query);
        } else {
            $this->result = @mysql_query($query, $this->dbh);
        }
        $this->num_queries++;
        if (defined('SAVEQUERIES') && SAVEQUERIES) {
            $this->queries[] = [$query, $this->timer_stop(), $this->get_caller()];
        }
    }