Example #1
0
 /**
  * Returns the SQL string for the WHERE portion of the query
  *
  * @param   DialectInterface    $dialect
  * @return  string
  */
 public function buildWhereSQL(DialectInterface $dialect)
 {
     if (!isset($this->whereBuilder) || !$this->whereBuilder->hasConditions()) {
         return '';
     }
     return 'WHERE ' . $this->whereBuilder->buildConditionSQL($dialect);
 }
Example #2
0
 /**
  * Returns the SQL string for the WHERE portion of the query
  *
  * @param   DialectInterface    $dialect
  * @return  string
  */
 public function buildHavingSQL(DialectInterface $dialect)
 {
     if (!isset($this->havingBuilder) || !$this->havingBuilder->hasConditions()) {
         return '';
     }
     return 'HAVING ' . $this->havingBuilder->buildConditionSQL($dialect);
 }