Added new support to DQL: ORDER BY now supports SingleValuedPathExpression and INSTANCE OF now supports multi-value checking.
This commit is contained in:
parent
26c56dd0d2
commit
a5ac76b192
@ -1428,7 +1428,7 @@ Items
|
|||||||
.. code-block:: php
|
.. code-block:: php
|
||||||
|
|
||||||
UpdateItem ::= IdentificationVariable "." (StateField | SingleValuedAssociationField) "=" NewValue
|
UpdateItem ::= IdentificationVariable "." (StateField | SingleValuedAssociationField) "=" NewValue
|
||||||
OrderByItem ::= (ResultVariable | StateFieldPathExpression) ["ASC" | "DESC"]
|
OrderByItem ::= (ResultVariable | SingleValuedPathExpression) ["ASC" | "DESC"]
|
||||||
GroupByItem ::= IdentificationVariable | SingleValuedPathExpression
|
GroupByItem ::= IdentificationVariable | SingleValuedPathExpression
|
||||||
NewValue ::= ScalarExpression | SimpleEntityExpression | "NULL"
|
NewValue ::= ScalarExpression | SimpleEntityExpression | "NULL"
|
||||||
|
|
||||||
@ -1450,11 +1450,11 @@ Select Expressions
|
|||||||
|
|
||||||
.. code-block:: php
|
.. code-block:: php
|
||||||
|
|
||||||
SelectExpression ::= IdentificationVariable | PartialObjectExpression | (AggregateExpression | "(" Subselect ")" | FunctionDeclaration | ScalarExpression) [["AS"] AliasResultVariable]
|
SelectExpression ::= IdentificationVariable | PartialObjectExpression | (AggregateExpression | "(" Subselect ")" | FunctionDeclaration | ScalarExpression) [["AS"] AliasResultVariable]
|
||||||
SimpleSelectExpression ::= ScalarExpression | IdentificationVariable |
|
SimpleSelectExpression ::= ScalarExpression | IdentificationVariable |
|
||||||
(AggregateExpression [["AS"] AliasResultVariable])
|
(AggregateExpression [["AS"] AliasResultVariable])
|
||||||
PartialObjectExpression ::= "PARTIAL" IdentificationVariable "." PartialFieldSet
|
PartialObjectExpression ::= "PARTIAL" IdentificationVariable "." PartialFieldSet
|
||||||
PartialFieldSet ::= "{" SimpleStateField {"," SimpleStateField}* "}"
|
PartialFieldSet ::= "{" SimpleStateField {"," SimpleStateField}* "}"
|
||||||
|
|
||||||
Conditional Expressions
|
Conditional Expressions
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
@ -1467,7 +1467,8 @@ Conditional Expressions
|
|||||||
ConditionalPrimary ::= SimpleConditionalExpression | "(" ConditionalExpression ")"
|
ConditionalPrimary ::= SimpleConditionalExpression | "(" ConditionalExpression ")"
|
||||||
SimpleConditionalExpression ::= ComparisonExpression | BetweenExpression | LikeExpression |
|
SimpleConditionalExpression ::= ComparisonExpression | BetweenExpression | LikeExpression |
|
||||||
InExpression | NullComparisonExpression | ExistsExpression |
|
InExpression | NullComparisonExpression | ExistsExpression |
|
||||||
EmptyCollectionComparisonExpression | CollectionMemberExpression
|
EmptyCollectionComparisonExpression | CollectionMemberExpression |
|
||||||
|
InstanceOfExpression
|
||||||
|
|
||||||
|
|
||||||
Collection Expressions
|
Collection Expressions
|
||||||
@ -1561,6 +1562,8 @@ QUANTIFIED/BETWEEN/COMPARISON/LIKE/NULL/EXISTS
|
|||||||
BetweenExpression ::= ArithmeticExpression ["NOT"] "BETWEEN" ArithmeticExpression "AND" ArithmeticExpression
|
BetweenExpression ::= ArithmeticExpression ["NOT"] "BETWEEN" ArithmeticExpression "AND" ArithmeticExpression
|
||||||
ComparisonExpression ::= ArithmeticExpression ComparisonOperator ( QuantifiedExpression | ArithmeticExpression )
|
ComparisonExpression ::= ArithmeticExpression ComparisonOperator ( QuantifiedExpression | ArithmeticExpression )
|
||||||
InExpression ::= StateFieldPathExpression ["NOT"] "IN" "(" (InParameter {"," InParameter}* | Subselect) ")"
|
InExpression ::= StateFieldPathExpression ["NOT"] "IN" "(" (InParameter {"," InParameter}* | Subselect) ")"
|
||||||
|
InstanceOfExpression ::= IdentificationVariable ["NOT"] "INSTANCE" ["OF"] (InstanceOfParameter | "(" InstanceOfParameter {"," InstanceOfParameter}* ")")
|
||||||
|
InstanceOfParameter ::= AbstractSchemaName | InputParameter
|
||||||
LikeExpression ::= StringExpression ["NOT"] "LIKE" string ["ESCAPE" char]
|
LikeExpression ::= StringExpression ["NOT"] "LIKE" string ["ESCAPE" char]
|
||||||
NullComparisonExpression ::= (SingleValuedPathExpression | InputParameter) "IS" ["NOT"] "NULL"
|
NullComparisonExpression ::= (SingleValuedPathExpression | InputParameter) "IS" ["NOT"] "NULL"
|
||||||
ExistsExpression ::= ["NOT"] "EXISTS" "(" Subselect ")"
|
ExistsExpression ::= ["NOT"] "EXISTS" "(" Subselect ")"
|
||||||
|
Loading…
Reference in New Issue
Block a user