Details
-
Bug
-
Status: Open (View Workflow)
-
Minor
-
Resolution: Unresolved
-
10.6.24
-
None
Description
The behavior of the operators when used with string operands is not documented.
Test Case
let $l1 = $('a' || 1); |
--echo ('a' || 1) -> $l1; |
mysqltest output:
mysqltest: At line 1: Type error: operator '||' requires integer operands |
Server output:
MariaDB [(none)]> select 'a' || 1; |
+----------+ |
| 'a' || 1 | |
+----------+ |
| 1 |
|
+----------+ |
TC2 :
Test Case
let $m60 = $(5 + '5'); |
-- echo 5 + '5' -> $m60; # 55 or error (depends on coercion rules |
mysqltest output:
mysqltest: At line 178: Type error: operator '+' requires integer operands |
Server output:
MariaDB [(none)]> select 5 + '5'; |
+---------+ |
| 5 + '5' | |
+---------+ |
| 10 |
|
+---------+ |
1 row in set (0.001 sec) |
Attachments
Issue Links
- relates to
-
MDEV-36107 expressions in mysqltest
-
- Open
-