Bug #112289 | No error seen when unknown column is used in subquery for Update Statement | ||
---|---|---|---|
Submitted: | 7 Sep 2023 11:32 | Modified: | 8 Sep 2023 7:08 |
Reporter: | Aaditya Dubey | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S2 (Serious) |
Version: | 8.0.34 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[7 Sep 2023 11:32]
Aaditya Dubey
[8 Sep 2023 7:08]
MySQL Verification Team
Hello Aditya, Thank you for the report and feedback. IMHO this is duplicate of Bug #100599, please see Sinisa's explanation in his initial response. # This behavior can be seen in other RDBMS as well PostgreSQL 15.0 = select * from tmp_t1; user_id gold 111 0 112 0 select * from tmp_t2; id fname 111 zhangsan update tmp_t1 set gold=10000 where user_id =(select user_id from tmp_t2 where id=111); select * from tmp_t1; user_id gold 111 10000 112 10000 # Microsoft SQL Server 2022 (RTM) - 16.0.1000.6 (X64) select * from tmp_t1; user_id gold 111 0 112 0 select * from tmp_t2; id fname 111 zhangsan update tmp_t1 set gold=10000 where user_id =(select user_id from tmp_t2 where id=111); select * from tmp_t1; user_id gold 111 10000 112 10000 regards, Umesh
[6 Dec 2024 11:36]
Sveta Smirnova
Which bug is this one is duplicate of?
[6 Dec 2024 12:03]
MySQL Verification Team
Hello Sveta, This one is duplicate of Bug #100599. Thank you. Sincerely, Umesh