*Support for HAVING clause
This commit is contained in:
parent
f6d61e2951
commit
ccb7b43392
2 changed files with 2 additions and 1 deletions
|
|
@ -1091,6 +1091,7 @@ class Database {
|
|||
}
|
||||
|
||||
if ( isset( $options['GROUP BY'] ) ) $preLimitTail .= " GROUP BY {$options['GROUP BY']}";
|
||||
if ( isset( $options['HAVING'] ) ) $preLimitTail .= " HAVING {$options['HAVING']}";
|
||||
if ( isset( $options['ORDER BY'] ) ) $preLimitTail .= " ORDER BY {$options['ORDER BY']}";
|
||||
|
||||
//if (isset($options['LIMIT'])) {
|
||||
|
|
@ -1175,7 +1176,6 @@ class Database {
|
|||
if (isset($options['EXPLAIN'])) {
|
||||
$sql = 'EXPLAIN ' . $sql;
|
||||
}
|
||||
|
||||
return $this->query( $sql, $fname );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1097,6 +1097,7 @@ END;
|
|||
}
|
||||
|
||||
if ( isset( $options['GROUP BY'] ) ) $preLimitTail .= " GROUP BY " . $options['GROUP BY'];
|
||||
if ( isset( $options['HAVING'] ) ) $preLimitTail .= " HAVING {$options['HAVING']}";
|
||||
if ( isset( $options['ORDER BY'] ) ) $preLimitTail .= " ORDER BY " . $options['ORDER BY'];
|
||||
|
||||
//if (isset($options['LIMIT'])) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue