You are here

public function DatabaseConnection_mysql::escapeField in Drupal 7

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 410
Database interface code for MySQL database servers.

Class

DatabaseConnection_mysql

Code

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