<< Back to previous view

[NUCCORE-456] Generic compile of JPQL "Case" expressions Created: 31/Jan/10  Updated: 26/Apr/10  Resolved: 05/Apr/10

Status: Closed
Project: DataNucleus Core
Component/s: Queries
Affects Version/s: None
Fix Version/s: 2.1.0.m2

Type: Task Priority: Major
Reporter: Andy Jefferson Assignee: Andy Jefferson
Resolution: Fixed Votes: 0


 Description   
4.6.17.3 Case Expressions
The following forms of case expressions are supported: general case expressions, simple case expressions, coalesce expressions, and nullif expressions.

case_expression::=
general_case_expression |
simple_case_expression |
coalesce_expression |
nullif_expression

general_case_expression::=
CASE when_clause {when_clause}* ELSE scalar_expression END
when_clause::= WHEN conditional_expression THEN scalar_expression

simple_case_expression::=
CASE case_operand simple_when_clause {simple_when_clause}*
ELSE scalar_expression
END
case_operand::= state_field_path_expression | type_discriminator
simple_when_clause::= WHEN scalar_expression THEN scalar_expression


 Comments   
Comment by Andy Jefferson [ 01/Apr/10 10:42 AM ]
Required by 2.1 completion for JPA TCK
Comment by Andy Jefferson [ 05/Apr/10 11:23 AM ]
SVN trunk now handles the generic compile of JPQL CASE expressions
Generated at Mon Nov 20 23:41:33 CET 2017 using JIRA 4.0#466.