Bug #74228 Description of autoincrement behavior if offset > increment needs clarification
| Submitted: | 5 Oct 2014 13:22 | Modified: | 6 Oct 2014 8:31 |
|---|---|---|---|
| Reporter: | Elena Stepanova | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: Options | Severity: | S3 (Non-critical) |
| Version: | 5.5, 5.6 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[5 Oct 2014 13:22]
Elena Stepanova
[5 Oct 2014 13:52]
Peter Laursen
Thequery result iest case 2 is extremely weird for me. It looks to melike a plain mystery how numbers 34 and 84 can be inserted. Maybe I am overlooking something? Ormaybe auto_increment_increment does weird things with a large number specified? Typical use case is having it set to "2" (or *the length of the replication chain* what is rarely more than 3 at least). Besides I have never noticed before that the two variables have a SESSION scope. It *really* gets funny when 2 or more clients with different setting for the two variables INSERT to the same table with different settings for the two variables, right? I know they are intended for specific replication setups. But they can be used by any client/user for anything. We have users using it with our 'Data Sync' tool (for basically same reason as when it is used in a replication setup: to avoid conflicting PK-values on INSERT resultng in "duplicate key" error). -- Peter -- not a MySQL/Oracle setting
[5 Oct 2014 13:54]
Peter Laursen
Horribly many typos in my first sentence. Should be: "The query result in test case 2 is extremely weird ..."
[6 Oct 2014 8:31]
MySQL Verification Team
Hello Elena, Thank you for the report and test case. Thanks, Umesh
[7 Oct 2014 11:12]
Jon Stephens
My understanding is that "ignored" means exactly that--it should be as though auto_increment_offset was never set, which means it should be 1 (or the last value inserted). This appears to be a software bug. Updating category etc. to match.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.074 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.