Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
10.10.2.0
-
None
Description
The reference manual topic on the CASE expression says the syntax is
CASE WHEN booleanExpression THEN thenExpression [ WHEN booleanExpression THEN thenExpression ]* ELSE elseExpression END
The ELSE clause is optional and should be in square brackets, as seen by this example:
ij> values case when (1<>1) then 'yes' end; 1 ---- NULL 1 row selected
This seems to comply with the SQL standard, as the syntax rules for <case expression> say that "[if] an <else clause> is not specified, then ELSE NULL is implicit."