_addAliases() 공개 정적인 메소드

public static _addAliases ( )
예제 #1
0
파일: Dialect.php 프로젝트: letsdrink/ouzo
 public function select()
 {
     if ($this->_query->type == QueryType::$SELECT) {
         return 'SELECT ' . ($this->_query->distinct ? 'DISTINCT ' : '') . (empty($this->_query->selectColumns) ? '*' : Joiner::on(', ')->map(DialectUtil::_addAliases())->join($this->_query->selectColumns));
     }
     if ($this->_query->type == QueryType::$COUNT) {
         return 'SELECT count(*)';
     }
     return '';
 }