Drizzledump not preserving INDEX order information when migrating from MySQL

Bug #684277 reported by Patrick Crews
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Drizzle
Invalid
Undecided
Andrew Hutchings

Bug Description

When migrating this table from MySQL:
CREATE TABLE t1 (
  a INT,
  b CHAR(10),
  INDEX b_key USING BTREE (b(5) DESC))
ENGINE=MyISAM;

Drizzledump produces this table in the Drizzle server:
SHOW CREATE TABLE drizzledump_migrate_test.t1;
Table Create Table
t1 CREATE TABLE `t1` (
  `a` INT DEFAULT NULL,
  `b` VARCHAR(10) COLLATE utf8_general_ci DEFAULT NULL,
  KEY `b_key` (`b`(5))
) ENGINE=InnoDB COLLATE = utf8_general_ci

To repeat:
From the attached branch, run:
./test-run --suite=mysql_migrate indexes

The currently recorded .result file is incorrect due to this bug.

Related branches

Changed in drizzle:
assignee: nobody → Andrew Hutchings (linuxjedi)
status: New → Confirmed
Revision history for this message
Patrick Crews (patrick-crews) wrote :

http://dev.mysql.com/doc/refman/5.1/en/create-index.html
An index_col_name specification can end with ASC or DESC. These keywords are permitted for future extensions for specifying ascending or descending index value storage. Currently, they are parsed but ignored; index values are always stored in ascending order.

/facepalm
My mistake

Changed in drizzle:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.