1.20.x database.inc | public DatabaseConnection_mysql::escapeAlias($field) |
Escapes an alias name string.
Force all alias names to be strictly alphanumeric-plus-underscore. In contrast to DatabaseConnection::escapeField() / DatabaseConnection::escapeTable(), this doesn't allow the period (".") because that is not allowed in aliases.
Return value
string: The sanitized field name string.
Overrides DatabaseConnection::escapeAlias
File
- drivers/
database_mysql/ database.inc, line 431 - Database interface code for MySQL database servers.
Class
Code
public function escapeAlias($field) {
$field = parent::escapeAlias($field);
return $this->quoteIdentifier($field);
}