Problem when re-ordering many fields

Discussion of open issues, suggestions and bugs regarding database management and administration tools for MySQL
Post Reply
Patrick8639
Posts: 29
Joined: Wed 17 Oct 2012 08:49

Problem when re-ordering many fields

Post by Patrick8639 » Thu 25 Apr 2013 14:02

Hello,
if your reorder many fields, there are some cases when the order of the fields change after saving the new table.
You should review the logic of the save and use the order of the fields that are displayed on the list.
This problem was in version 5 and is still here in version 6.
Patrick

alexa

Re: Problem when re-ordering many fields

Post by alexa » Sat 27 Apr 2013 14:34

We were not able to reproduce this issue.

Could you please record a video and send it to us?

Patrick8639
Posts: 29
Joined: Wed 17 Oct 2012 08:49

Re: Problem when re-ordering many fields

Post by Patrick8639 » Mon 29 Apr 2013 06:29

Alexa,
in trying to reproduce the problem with a simple example, I've found another problem with the reordering of the columns:

1. create a new table with the following script:

Code: Select all

USE test;
CREATE TABLE test.test_reorder (
  C01 int(11) NOT NULL AUTO_INCREMENT,
  C02 int(11) NOT NULL,
  C03 int(11) NOT NULL,
  C04 int(11) NOT NULL,
  C05 int(11) NOT NULL,
  C06 int(11) NOT NULL,
  C07 int(11) NOT NULL,
  C08 int(11) NOT NULL,
  C09 int(11) NOT NULL,
  C10 int(11) NOT NULL,
  C11 int(11) NOT NULL,
  C12 int(11) NOT NULL,
  C13 int(11) NOT NULL,
  C14 int(11) NOT NULL,
  C15 int(11) NOT NULL,
  C16 int(11) NOT NULL,
  C17 int(11) NOT NULL,
  C18 int(11) NOT NULL,
  C19 int(11) NOT NULL,
  C20 int(11) NOT NULL,
  PRIMARY KEY (C01)
)
ENGINE = INNODB
AUTO_INCREMENT = 1
CHARACTER SET utf8
COLLATE utf8_general_ci;
2. Save the table.
3. Move column C04 at the place C10: C04 moves after C10.
4. Move column C11 at the place C05; C11 moves before C05.

So if you move a column below its position, if moves after the selected column; and when you move it above its position, if moves before the selected column.

Patrick
Last edited by Patrick8639 on Mon 29 Apr 2013 08:56, edited 1 time in total.

Patrick8639
Posts: 29
Joined: Wed 17 Oct 2012 08:49

Re: Problem when re-ordering many fields

Post by Patrick8639 » Mon 29 Apr 2013 08:55

Alexa,
here is a test case for reordering problem.

1. Create a new table with the following script:

Code: Select all

USE test;
CREATE TABLE test.test_reorder (
  C01 int(11) NOT NULL AUTO_INCREMENT,
  C02 int(11) NOT NULL,
  C03 int(11) NOT NULL,
  C04 int(11) NOT NULL,
  C05 int(11) NOT NULL,
  C06 int(11) NOT NULL,
  C07 int(11) NOT NULL,
  C08 int(11) NOT NULL,
  C09 int(11) NOT NULL,
  C10 int(11) NOT NULL,
  C11 int(11) NOT NULL,
  C12 int(11) NOT NULL,
  C13 int(11) NOT NULL,
  C14 int(11) NOT NULL,
  C15 int(11) NOT NULL,
  C16 int(11) NOT NULL,
  C17 int(11) NOT NULL,
  C18 int(11) NOT NULL,
  C19 int(11) NOT NULL,
  C20 int(11) NOT NULL,
  PRIMARY KEY (C01)
)
ENGINE = INNODB
AUTO_INCREMENT = 1
CHARACTER SET utf8
COLLATE utf8_general_ci;
2. Save the table.
3. Move column C19 at the place C10.
4. Move column C18 at the place C19 (the new one).
5. Save the table.

If you look, column C10 has moved at the C19 place and column C18 has returned to its place.

Patrick

alexa

Re: Problem when re-ordering many fields

Post by alexa » Mon 29 Apr 2013 10:59

We were able to reproduce these issues and will fix them in one of the next builds of dbForge Studio for MySQL. We will notify you once it's available for downloading.

Post Reply