示例#1
0
 protected function buildQuery()
 {
     $this->init();
     if (empty($this->context->statements['SELECT'])) {
         $this->context->statements['SELECT'][] = $this->getTableAlias() . '.*';
     }
     return parent::buildQuery();
 }
示例#2
0
 /**
  * @return string
  */
 protected function buildQuery()
 {
     $this->init();
     if ($this->context->statements['FROM']) {
         unset($this->clauses['DELETE FROM']);
     } else {
         unset($this->clauses['DELETE']);
     }
     return parent::buildQuery();
 }