Bug #41700 | Foreign keys: failure with update cascade and duplicate key | ||
---|---|---|---|
Submitted: | 23 Dec 2008 0:40 | Modified: | 20 Dec 2013 6:53 |
Reporter: | Peter Gulutzan | Email Updates: | |
Status: | Won't fix | Impact on me: | |
Category: | MySQL Server: General | Severity: | S3 (Non-critical) |
Version: | 6.1.0-alpha-debug | OS: | Linux (SUSE 10.0 / 32-bit) |
Assigned to: | CPU Architecture: | Any |
[23 Dec 2008 0:40]
Peter Gulutzan
[23 Dec 2008 14:02]
MySQL Verification Team
Thank you for the bug report. Verified as described: mysql> INSERT INTO t1 VALUES ('A','B') ON DUPLICATE KEY UPDATE s1 = 'C', s2 = 'D'; Query OK, 2 rows affected (0.00 sec) mysql> SELECT COUNT(*) FROM t2 WHERE s1 = 'C' and s2 = 'D'; /* count(*) is 0. wrong. */ +----------+ | COUNT(*) | +----------+ | 0 | +----------+ 1 row in set (0.00 sec) mysql> DROP TABLE IF EXISTS t2,t1;
[20 Dec 2013 6:53]
Erlend Dahl
6.x project was abandoned years ago.