public function DatabaseConnection_mysql::escapeAlias in Drupal 7
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
- includes/
database/ mysql/ database.inc, line 425 - Database interface code for MySQL database servers.
Class
Code
public function escapeAlias($field) {
$field = parent::escapeAlias($field);
return $this
->quoteIdentifier($field);
}