Bug #111893 | cannot update null value when using UPDATE JOIN JSON_TABLE | ||
---|---|---|---|
Submitted: | 26 Jul 2023 10:12 | Modified: | 27 Jul 2023 2:48 |
Reporter: | Nam Dang | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: JSON | Severity: | S3 (Non-critical) |
Version: | 8.0 | OS: | Other (azure mysql single server) |
Assigned to: | CPU Architecture: | Any | |
Tags: | json_table, UPDATE ERROR, update join fail |
[26 Jul 2023 10:12]
Nam Dang
[26 Jul 2023 12:39]
MySQL Verification Team
Hi Mr. Dang, Thank you for your bug report. However, this is not a bug. SQL standard prohibits inserting a value of the data type that is different from the column type. Hence, this is not a bug. Thank you for your interest in MySQL.
[27 Jul 2023 2:48]
Nam Dang
But I try to update the nullable filed to be NULL. NULL is also a valid value for this filed, right? I can update this field to NULL by this command: UPDATE `leads` src JOIN line_users as target ON src.`line_user_id` = target.`line_user_id` SET src.`latest_engaged_product_value` = null WHERE src.id = 600178 The result had no error. But It's error when I try to update the SAME value to the SAME column by using JOIN JSON_TABLE. So what wrong with the data type?