*/
class SqlField extends SqlExpression {
+ public $supportsExpansion = TRUE;
+
protected function initialize() {
+ if ($this->alias && $this->alias !== $this->expr) {
+ throw new \API_Exception("Aliasing field names is not allowed, only expressions can have an alias.");
+ }
$this->fields[] = $this->expr;
}