| Bug #34889 | mysql_client_test::test_mysql_insert_id test fails sporadically | ||
|---|---|---|---|
| Submitted: | 27 Feb 15:27 | Modified: | 10 Apr 14:32 |
| Reporter: | Davi Arnaut | ||
| Status: | Closed | ||
| Category: | Server: Tests | Severity: | S1 (Critical) |
| Version: | 5.0 | OS: | Any |
| Assigned to: | Alexey Kopytov | Target Version: | 5.0 |
| Triage: | D3 (Medium) | ||
[27 Feb 15:27]
Davi Arnaut
[27 Feb 18:56]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/43095 ChangeSet@1.2589, 2008-02-27 13:05:46-03:00, davi@mysql.com +1 -0 Bug#34889 mysql_client_test::test_mysql_insert_id test fails sporadically Disable the test case.
[3 Mar 19:14]
Bugs System
Pushed into 5.0.58
[3 Mar 19:18]
Bugs System
Pushed into 5.1.24-rc
[3 Mar 19:18]
Bugs System
Pushed into 6.0.5-alpha
[5 Mar 13:56]
Alexey Kopytov
Changing the target to 5.0 only, because 5.1/6.0 are not affected by this bug.
[5 Mar 14:03]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/43455 ChangeSet@1.2608, 2008-03-05 16:02:33+03:00, kaa@kaamos.(none) +2 -0 Fix for bug #34889: mysql_client_test::test_mysql_insert_id test fails sporadically Under some circumstances, the mysql_insert_id() value after SELECT ... INSERT could return a wrong value. This could happen when the last SELECT ... INSERT did not involve an AUTO_INCREMENT column, but the value of mysql_insert_id() was changed by some previous statements. Fixed by checking the value of thd->insert_id_used in select_insert::send_eof() and returning 0 for mysql_insert_id() if it is not set.
[13 Mar 20:27]
Bugs System
Pushed into 6.0.5-alpha
[13 Mar 20:34]
Bugs System
Pushed into 5.1.24-rc
[13 Mar 20:42]
Bugs System
Pushed into 5.0.60
[3 Apr 17:03]
Jon Stephens
Testing only, no user changes to document. Closed.
[10 Apr 14:32]
Paul DuBois
Noted in 5.0.60, 5.1.24, 6.0.5 changelogs. Under some circumstances, the value of mysql_insert_id() following a SELECT ... INSERT statement could return an incorrect value. This could happen when the last SELECT ... INSERT did not involve an AUTO_INCREMENT column, but the value of mysql_insert_id() was changed by some previous statements.
