function UpdateQuery_mysql::__toString

Overrides UpdateQuery::__toString

File

includes/database/mysql/query.inc, line 97

Class

UpdateQuery_mysql

Code

public function __toString() {
    if (method_exists($this->connection, 'escapeField')) {
        $escapedFields = array();
        foreach ($this->fields as $field => $data) {
            $field = $this->connection
                ->escapeField($field);
            $escapedFields[$field] = $data;
        }
        $this->fields = $escapedFields;
    }
    return parent::__toString();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.