Details
-
Type:
Bug
-
Status: Open (View Workflow)
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 10.7.3
-
Fix Version/s: None
-
Component/s: Data Manipulation - Update
-
Labels:
-
Environment:OS: Ubuntu-20.04 LTS
Description
/* init */ CREATE TABLE t (c1 TEXT); |
/* init */ INSERT INTO t VALUES ('a'); |
|
mariadb> SELECT * FROM t; |
+------+ |
| c1 |
|
+------+ |
| a |
|
+------+ |
1 row in set, 1 warning (0.00 sec) |
|
mariadb> UPDATE t SET c1 = 'b' WHERE CAST(IF('a', '1', 1) AS SIGNED); |
Query OK, 1 row affected, 1 warning (0.01 sec)
|
Rows matched: 1 Changed: 1 Warnings: 1 |
|
mariadb> SELECT * FROM t; |
+------+ |
| c1 |
|
+------+ |
| b |
|
+------+ |
1 row in set (0.00 sec) |
Under strict sql_mode, the UPDATE statement should report an error rather than reports a warning and successfully modifies the record.
Attachments
Issue Links
- relates to
-
MDEV-19362 New STRICT flags for sql_mode
-
- Open
-
-
MDEV-28069 A misleading warning message from the DELETE statement
-
- Open
-