mirror of https://github.com/apache/openjpa.git
OPENJPA-478: Get rid of contradictory text about HAVING without GROUP BY in user guide.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1083258 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0971bd301c
commit
0b72fb417a
|
@ -3627,10 +3627,18 @@ that apply to grouping items.
|
|||
<para>
|
||||
If there is no <literal>GROUP BY</literal> clause and the <literal>HAVING
|
||||
</literal> clause is used, the result is treated as a single group, and the
|
||||
select list can only consist of aggregate functions. When a query declares a
|
||||
<literal>HAVING</literal> clause, it must always also declare a <literal>GROUP
|
||||
BY</literal> clause.
|
||||
select list can only consist of aggregate functions.
|
||||
The use of <literal>HAVING</literal> in the absence of
|
||||
<literal>GROUP BY</literal> is not required to be supported by a JPA implementation.
|
||||
Portable applications should not rely on <literal>HAVING</literal> without the use of
|
||||
<literal>GROUP BY</literal>.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
OpenJPA supports the use of <literal>HAVING</literal> in the absence of
|
||||
<literal>GROUP BY</literal> if the underlying database supports it.
|
||||
</para>
|
||||
</note>
|
||||
<para>
|
||||
Examples:
|
||||
</para>
|
||||
|
|
Loading…
Reference in New Issue