/** * {@inheritdoc} * * @param Column $column * * @return string */ public function writeColumnName(Column $column) { if ($column->isAll()) { return '*'; } return $this->wrapper(parent::writeColumnName($column)); }
/** * {@inheritdoc} * * @param Column $column * * @return string */ public function writeColumnName(Column $column) { if ($column->isAll()) { return '*'; } if (false !== strpos($column->getName(), "(")) { return parent::writeColumnName($column); } return $this->wrapper(parent::writeColumnName($column)); }
/** * @param Column $column * * @return string */ public function writeColumnWithAlias(Column $column) { if (($alias = $column->getAlias()) && !$column->isAll()) { return $this->writeColumn($column) . ' AS ' . $this->writer->writeColumnAlias($alias); } return $this->writeColumn($column); }