Details
-
Bug
-
Status: Confirmed (View Workflow)
-
Minor
-
Resolution: Unresolved
-
10.6.24
-
None
Description
The IF() function is not implemented in mysqltest. However, when we attempt to use IF() in test scripts, it is incorrectly interpreted as IFNULL(), leading to misleading or incorrect error messages during test execution.
Test Case:
let $lt36 = $(if(null," fallback", " actual")); |
-- echo (if(null, " fallback", " actual") -> $lt36; |
Mysqltest Output:
mysqltest: At line 1: ifnull() expects 2 arguments, got 3
Server Output:
MariaDB [(none)]> select if(null," fallback", " actual"); |
+-------------------------------------+ |
| if(null," fallback", " actual") | |
+-------------------------------------+ |
| actual |
|
+-------------------------------------+ |
1 row in set (0.001 sec) |
Attachments
Issue Links
- relates to
-
MDEV-36107 expressions in mysqltest
-
- Open
-