auto_increment_offset (and increment) limited to 32bits.. or 16 bits, it's unclear
Bug #316236 reported by
Stewart Smith
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Fix Released
|
Undecided
|
Toru Maesaka |
Bug Description
(when trying to fix up strict_
+SHOW VARIABLES LIKE 'auto_increment%';
+Variable_name Value
+auto_increment
+auto_increment
set auto_increment_
-set auto_increment_
+set auto_increment_
+Warnings:
+Warning 1292 Truncated incorrect auto_increment_
+SHOW WARNINGS;
+Level Code Message
+Warning 1292 Truncated incorrect auto_increment_
+SHOW VARIABLES LIKE 'auto_increment%';
+Variable_name Value
+auto_increment
+auto_increment
Related branches
lp:~tmaesaka/drizzle/drizzle-fix-bug316236
- Drizzle Developers: Pending requested
lp:drizzle/mordred
Superseded
for merging
into
lp:~drizzle-trunk/drizzle/development
- Jay Pipes (community): Needs Fixing
- Diff: None lines
Changed in drizzle: | |
assignee: | nobody → tmaesaka |
status: | Confirmed → Fix Committed |
Changed in drizzle: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I was able to reproduce this:
drizzle> use test ------- ------- ------+ ------- + ------- ------- ------+ ------- + increment | 1 | offset | 1 | ------- ------- ------+ ------- +
Database changed
drizzle> show variables like 'auto_increment%';
+------
| Variable_name | Value |
+------
| auto_increment_
| auto_increment_
+------
2 rows in set (0.00 sec)
drizzle> set auto_increment_ increment= 1000;
Query OK, 0 rows affected (0.00 sec)
drizzle> set auto_increment_ offset= 700;
Query OK, 0 rows affected (0.00 sec)
drizzle> set auto_increment_ offset= 5000000000;
Query OK, 0 rows affected, 1 warning (0.01 sec)
drizzle> show warnings; ---+--- ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ----+ ---+--- ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ----+ offset value: '5000000000' | ---+--- ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ----+
+------
| Level | Code | Message |
+------
| Warning | 1292 | Truncated incorrect auto_increment_
+------
1 row in set (0.00 sec)
drizzle> show variables like 'auto_increment%'; ------- ------- ------+ ------- + ------- ------- ------+ ------- + increment | 1000 | offset | 65535 | ------- ------- ------+ ------- +
+------
| Variable_name | Value |
+------
| auto_increment_
| auto_increment_
+------
2 rows in set (0.00 sec)
drizzle>
Thanks, Padraig.