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.
Parameters
string $field: The field name to be escaped.
Return value
string: The sanitized field name string.
Overrides DatabaseConnection::escapeField
File
- core/
includes/ database/ mysql/ database.inc, line 148 - Database interface code for MySQL database servers.
Class
- DatabaseConnection_mysql
- MySQL database connection driver.
Code
public function escapeField($field) {
$field = parent::escapeField($field);
return $this->quoteIdentifier($field);
}