Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Not a Bug
-
11.4.2
-
None
-
ubuntu 20.04
Description
select FIELD((case when true then ('i' || 'o') else '0' end), 'c') as c0; |
+----+ |
| c0 |
|
+----+ |
| 0 |
|
+----+ |
1 row in set, 2 warnings (0.00 sec) |
|
|
|
select FIELD(('i' || 'o'), 'c') as c0; |
+----+ |
| c0 |
|
+----+ |
| 1 |
|
+----+ |
1 row in set, 3 warnings (0.00 sec) |
|
|
The condition for CASE WHEN is TRUE, so this clause should return the result of ('i' || 'o'). This statement should return the same value as select FIELD(('i' || 'o'), 'c') as c0;, but the actual result is not the same.