1.20.x 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
- drivers/
database_mysql/ database.inc, line 416 - Database interface code for MySQL database servers.
Class
Code
public function escapeField($field) {
$field = parent::escapeField($field);
return $this->quoteIdentifier($field);
}