It doesn't match the documented format: CASE WHEN condition THEN result [WHEN ...] [ELSE result] END As long as the type of entry between CASE and first WHEN matches type of WHEN conditions no syntax error is being generated!
Соглашаюсь с условиями обработки персональных данных