Bug #76840 | MySQL reports wrong information | ||
---|---|---|---|
Submitted: | 26 Apr 2015 19:46 | Modified: | 29 Apr 2015 9:59 |
Reporter: | Pradeep Kumar Sharma | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S1 (Critical) |
Version: | 5.6.21-log | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | DML, message, REPLACE, UPDATE |
[26 Apr 2015 19:46]
Pradeep Kumar Sharma
[27 Apr 2015 17:02]
MySQL Verification Team
Please provide the select query which works related to replace query which fails. Thanks.
[28 Apr 2015 4:21]
MySQL Verification Team
We're sorry, but the bug system is not the appropriate forum for asking help on using MySQL products. Your problem is not the result of a bug. Support on using our products is available both free in our forums at http://forums.mysql.com/ and for a reasonable fee direct from our skilled support engineers at http://www.mysql.com/support/ Thank you for your interest in MySQL.
[29 Apr 2015 9:59]
Pradeep Kumar Sharma
I don't think I am asking any product help, well the steps I followed produces an error which is not valid. Appreciate if you re-look my submission. Sample tables with data and query both attached with this ticket already.
[29 Apr 2015 11:28]
MySQL Verification Team
Imho it was doing as expected, table_references clause should lists the tables involved in the join. mysql> update `sugarcrmt`.`accounts` set `sugarcrmt`.`accounts`.`name`=`superof5`.`contact`.name where `sugarcrmt`.`accounts`.`name`=`superof5`.`contact`.`soundEx`; ERROR 1054 (42S22): Unknown column 'superof5.contact.soundEx' in 'where clause' mysql> show errors; +-------+------+-------------------------------------------------------------+ | Level | Code | Message | +-------+------+-------------------------------------------------------------+ | Error | 1054 | Unknown column 'superof5.contact.soundEx' in 'where clause' | +-------+------+-------------------------------------------------------------+ 1 row in set (0.00 sec) Below example shows an inner join that uses the comma operator: mysql> update `sugarcrmt`.`accounts`,`superof5`.`contact` set `sugarcrmt`.`accounts`.`name`=`superof5`.`contact`.name where `sugarcrmt`.`accounts`.`name`=`superof5`.`contact`.`soundEx`; Query OK, 816 rows affected (0.13 sec) Rows matched: 818 Changed: 816 Warnings: 0 Please reference - https://dev.mysql.com/doc/refman/5.6/en/update.html