Re: Case clause doesn't report syntactic error
Re: Case clause doesn't report syntactic error
От:
"David G. Johnston" <david.g.johnston@gmail.com>
Дата:
On Saturday, September 14, 2024, Leo Volin <lvolin@intelligentaudit.com> wrote:
It doesn't match the documented format:CASE WHEN condition THEN result
[WHEN ...]
[ELSE result]
ENDAs long as the type of entry between CASE and first WHEN matches type of WHEN conditions no syntax error is being generated!
Read the entire section documenting case.
There are two forms documented - the general and then the “simple” variant. You example demonstrates the later.
David J.