1 database.inc public DatabaseConnection_mysql::escapeField($field)

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

File

core/includes/database/mysql/database.inc, line 142
Database interface code for MySQL database servers.

Class

DatabaseConnection_mysql

Code

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