Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function DatabaseConnection_mysql::escapeField

Escapes a field name string.

Force all field names to be strictly alphanumeric-plus-underscore. For some database drivers, it may also wrap the field name in database-specific escape characters.

Return value

string The sanitized field name string.

Overrides DatabaseConnection::escapeField

1 call to DatabaseConnection_mysql::escapeField()
DatabaseConnection_mysql::escapeFields in includes/database/mysql/database.inc

File

includes/database/mysql/database.inc, line 417

Class

DatabaseConnection_mysql

Code

public function escapeField($field) {
 $field = parent ::escapeField ($field);
 return $this->quoteIdentifier ($field);
}

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