function DatabaseConnection_mysql::escapeAlias
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 430
Class
Code
public function escapeAlias($field) {
$field = parent::escapeAlias($field);
return $this->quoteIdentifier($field);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.