src/bbn/db/languages/mysql.php
public function get_having(array $cfg): string
  {
    $res = '';
    if ( !empty($cfg['group_by']) && !empty($cfg['having']) && ($cond = $this->get_conditions($cfg['having'], $cfg, true)) ){
      $res .= 'HAVING '.$cond.PHP_EOL;
    }
    return $res;
  }
public function get_having(array $cfg): string
  {
    $res = '';
    if ( !empty($cfg['group_by']) && !empty($cfg['having']) && ($cond = $this->get_conditions($cfg['having'], $cfg, true)) ){
      $res .= 'HAVING '.$cond.PHP_EOL;
    }
    return $res;
  }
public function get_having ( array $ cfg ) : string { $ res = '' ; if ( ! empty ( $ cfg [ 'group_by' ] ) && ! empty ( $ cfg [ 'having' ] ) && ( $ cond = $ this -> get_conditions ( $ cfg [ 'having' ] , $ cfg , true ) ) ) { $ res .= 'HAVING ' . $ cond . PHP_EOL ; } return $ res ; }
Returns a string with the HAVING part of the query if there is, empty otherwise

@param array $cfg
@return string
Returns a string with the HAVING part of the query if there is empty otherwise