Drizzledump not handling MySQL CHAR(0) /VARCHAR(0) columns gracefully
Bug #685046 reported by
Patrick Crews
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Fix Released
|
Low
|
Andrew Hutchings | ||
7.0 |
Fix Released
|
Low
|
Andrew Hutchings |
Bug Description
If a MySQL table has a CHAR 0 column, such as this:
CREATE TABLE char_table(
col_char0 char(0)
) ENGINE=MyISAM;
Drizzledump will produce this output:
CREATE TABLE `char_table` (
`description` TEXT COLLATE utf8_general_ci DEFAULT NULL,
`col_char0` VARCHAR COLLATE utf8_general_ci DEFAULT NULL
) ENGINE='InnoDB' COLLATE=
The plain VARCHAR isn't friends with the parser.
Related branches
lp://staging/~linuxjedi/drizzle/trunk-drizzledump-bugs
- Andrew Hutchings: Needs Fixing
-
Diff: 166 lines (+65/-8)3 files modifiedclient/drizzledump_data.cc (+30/-3)
client/drizzledump_data.h (+3/-1)
client/drizzledump_mysql.cc (+32/-4)
summary: |
- Drizzledump not handline MySQL CHAR(0) columns gracefully + Drizzledump not handling MySQL CHAR(0) columns gracefully |
summary: |
- Drizzledump not handling MySQL CHAR(0) columns gracefully + Drizzledump not handling MySQL CHAR(0) /VARCHAR(0) columns gracefully |
To post a comment you must log in.
Why anyone would use a CHAR(0) column, I dunno. But I figure if one can live on MySQL, we should test for it : ) This is probably very much an edge case though.