drizzledump not dumping auto-inc when connecting to drizzle servers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Fix Released
|
High
|
Andrew Hutchings | ||
7.0 |
Fix Released
|
High
|
Andrew Hutchings |
Bug Description
Randgen testing has shown that AUTO_INCREMENT values are not being captured when using drizzledump to dump MySQL tables:
Output below is from a diff of MySQL vs. a Drizzle server populated via drizzledump output produced against the MySQL server.
CREATE TABLE `dump_table2` (
`col_enum_key` ENUM('a'
@@ -42,7 +42,7 @@
KEY `col_enum_
KEY `col_bigint_key` (`col_bigint_key`),
KEY `col_char_10_key` (`col_char_10_key`)
-) ENGINE=InnoDB AUTO_INCREMENT=1 COLLATE = utf8_general_ci;
+) ENGINE=InnoDB COLLATE = utf8_general_ci;
I populated the MySQL server via the randgen, using the gendata file conf/drizzle.zz.
If for any reason you'd like additional information or help in reproducing this, just let me know and I'll do what I can.
Related branches
- Drizzle Merge Team: Pending requested
-
Diff: 126 lines (+16/-8)5 files modifiedclient/drizzledump_data.cc (+1/-2)
client/drizzledump_drizzle.cc (+2/-2)
plugin/schema_dictionary/tables.cc (+4/-0)
plugin/schema_dictionary/tests/r/data_dictionary.result (+7/-2)
tests/r/data_dictionary_like_info.result (+2/-2)
Changed in drizzle: | |
assignee: | nobody → Andrew Hutchings (linuxjedi) |
status: | New → Confirmed |
Changed in drizzle: | |
importance: | Undecided → High |
milestone: | none → 2010-10-11 |
status: | Confirmed → Triaged |
summary: |
- AUTO_INCREMENT values from MySQL tables not being captured / dumped via - drizzledump + drizzledump not dumping auto-inc when connecting to drizzle servers |
Changed in drizzle: | |
status: | Triaged → Fix Committed |
Changed in drizzle: | |
status: | Fix Committed → Fix Released |
Is this the output from drizzledump or reading from Drizzle post-import? Auto_increment reading in Drizzle has given weird results (I can't find the bug for it now one, I felt sure I filed one)
I would expect the dump to be correct but SHOW CREATE TABLE after import to be wrong.