Bug #39309 large unsigned bigints and last_insert_id() failure
| Submitted: | 8 Sep 2008 11:40 | Modified: | 9 Sep 2008 20:29 |
|---|---|---|---|
| Reporter: | Lars Monecke | Email Updates: | |
| Status: | Duplicate | Impact on me: | |
| Category: | MySQL Server: InnoDB storage engine | Severity: | S3 (Non-critical) |
| Version: | 5.0.51a-community-log | OS: | Linux |
| Assigned to: | CPU Architecture: | Any |
[8 Sep 2008 11:40]
Lars Monecke
[8 Sep 2008 11:41]
Lars Monecke
example sql script
Attachment: cast_example.sql (text/plain), 869 bytes.
[8 Sep 2008 11:43]
Lars Monecke
sorry i'm missed to set engine=innodb. If i do a fk error occurred: Error while execeuting query: insert into test.foobar2 (foobar_id) VALUES (last_insert_id()): Cannot add or update a child row: a foreign key constraint fails (`test/foobar2`, CONSTRAINT `fk_foobar` FOREIGN KEY (`foobar_id`) REFERENCES `foobar` (`foobar_id`) ON DELETE CASCADE ON UPDATE CASCADE) (errno: 1452) Click 'Ignore' if you'd like to have this error ignored until the end of the script.
[8 Sep 2008 11:43]
Lars Monecke
again but now with engine=innodb
Attachment: cast_example.sql (text/plain), 897 bytes.
[9 Sep 2008 20:29]
Sveta Smirnova
Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Because of this, we hope you add your comments to the original bug instead. Thank you for your interest in MySQL. Duplicate of bug #20964
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.052 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.