Hi, starting with MySQL 5.0.23, SHOW CREATE TABLE includes the AUTO_INCREMENT next value, just after the ENGINE clause.
We had a "Add AUTO_INCREMENT value" option in table operations and db operations.
So I suggest:
- for 5.0.23+, the "Add AUTO_INCREMENT value" checkbox be removed from table operations and db operations dialogs. The same functionality is now being provided automatically in the CREATE TABLE statement
- for 5.0.22-, I would also prefer to remove these checkboxes
For all MySQL versions, I guess that during a copy, the majority of users want to copy also the AUTO_INCREMENT value. If it's not the case, they can always go to the copied table on Operations and change the value in "Table options".
If we still want to provide this checkbox, well for 5.0.23+ we would have to examine the statement and remove the AUTO_INCREMENT clause.
Marc
Hi Marc and others
On Sun, 30 Jul 2006 08:00:03 -0400 Marc Delisle Marc.Delisle@cegepsherbrooke.qc.ca wrote:
starting with MySQL 5.0.23, SHOW CREATE TABLE includes the AUTO_INCREMENT next value, just after the ENGINE clause.
We had a "Add AUTO_INCREMENT value" option in table operations and db operations.
So I suggest:
- for 5.0.23+, the "Add AUTO_INCREMENT value" checkbox be removed from
table operations and db operations dialogs. The same functionality is now being provided automatically in the CREATE TABLE statement
- for 5.0.22-, I would also prefer to remove these checkboxes
For all MySQL versions, I guess that during a copy, the majority of users want to copy also the AUTO_INCREMENT value. If it's not the case, they can always go to the copied table on Operations and change the value in "Table options".
If we still want to provide this checkbox, well for 5.0.23+ we would have to examine the statement and remove the AUTO_INCREMENT clause.
The problem is that we reuse the code from export and there we probably want checkbox for AUTO_INCREMENT...
Michal Čihař a écrit :
Hi Marc and others
On Sun, 30 Jul 2006 08:00:03 -0400 Marc Delisle Marc.Delisle@cegepsherbrooke.qc.ca wrote:
starting with MySQL 5.0.23, SHOW CREATE TABLE includes the AUTO_INCREMENT next value, just after the ENGINE clause.
We had a "Add AUTO_INCREMENT value" option in table operations and db operations.
So I suggest:
- for 5.0.23+, the "Add AUTO_INCREMENT value" checkbox be removed from
table operations and db operations dialogs. The same functionality is now being provided automatically in the CREATE TABLE statement
- for 5.0.22-, I would also prefer to remove these checkboxes
For all MySQL versions, I guess that during a copy, the majority of users want to copy also the AUTO_INCREMENT value. If it's not the case, they can always go to the copied table on Operations and change the value in "Table options".
If we still want to provide this checkbox, well for 5.0.23+ we would have to examine the statement and remove the AUTO_INCREMENT clause.
The problem is that we reuse the code from export and there we probably want checkbox for AUTO_INCREMENT...
You mean, even if MySQL 5.0.23+ now already adds AUTO_INCREMENT? So you see a situation in export where a user would not want to AUTO_INCREMENT next value?
Marc
Marc Delisle a écrit :
Michal Čihař a écrit :
Hi Marc and others
On Sun, 30 Jul 2006 08:00:03 -0400 Marc Delisle Marc.Delisle@cegepsherbrooke.qc.ca wrote:
starting with MySQL 5.0.23, SHOW CREATE TABLE includes the AUTO_INCREMENT next value, just after the ENGINE clause.
We had a "Add AUTO_INCREMENT value" option in table operations and db operations.
So I suggest:
- for 5.0.23+, the "Add AUTO_INCREMENT value" checkbox be removed from
table operations and db operations dialogs. The same functionality is now being provided automatically in the CREATE TABLE statement
- for 5.0.22-, I would also prefer to remove these checkboxes
For all MySQL versions, I guess that during a copy, the majority of users want to copy also the AUTO_INCREMENT value. If it's not the case, they can always go to the copied table on Operations and change the value in "Table options".
If we still want to provide this checkbox, well for 5.0.23+ we would have to examine the statement and remove the AUTO_INCREMENT clause.
The problem is that we reuse the code from export and there we probably want checkbox for AUTO_INCREMENT...
You mean, even if MySQL 5.0.23+ now already adds AUTO_INCREMENT? So you see a situation in export where a user would not want to AUTO_INCREMENT next value?
Rephrased: So you see a situation in export where a user would not want to see the AUTO_INCREMENT next value in the exported file?
Marc
Michal Čihař a écrit :
Hi Marc and others
On Sun, 30 Jul 2006 08:00:03 -0400 Marc Delisle Marc.Delisle@cegepsherbrooke.qc.ca wrote:
starting with MySQL 5.0.23, SHOW CREATE TABLE includes the AUTO_INCREMENT next value, just after the ENGINE clause.
We had a "Add AUTO_INCREMENT value" option in table operations and db operations.
So I suggest:
- for 5.0.23+, the "Add AUTO_INCREMENT value" checkbox be removed from
table operations and db operations dialogs. The same functionality is now being provided automatically in the CREATE TABLE statement
- for 5.0.22-, I would also prefer to remove these checkboxes
For all MySQL versions, I guess that during a copy, the majority of users want to copy also the AUTO_INCREMENT value. If it's not the case, they can always go to the copied table on Operations and change the value in "Table options".
If we still want to provide this checkbox, well for 5.0.23+ we would have to examine the statement and remove the AUTO_INCREMENT clause.
The problem is that we reuse the code from export and there we probably want checkbox for AUTO_INCREMENT...
I just checked in the (not released) 5.0.25 and mysqldump always export with this AUTO_INCREMENT clause. AFAIK we cannot avoid it in mysqldump.
Marc
On Mon, 31 Jul 2006 10:47:29 -0400 Marc Delisle Marc.Delisle@cegepsherbrooke.qc.ca wrote:
So you see a situation in export where a user would not want to see the AUTO_INCREMENT next value in the exported file?
Well it would be useful not to export auto incremented column at all, but will full export there won't be much use for it...
Michal Čihař a écrit :
On Mon, 31 Jul 2006 10:47:29 -0400 Marc Delisle Marc.Delisle@cegepsherbrooke.qc.ca wrote:
So you see a situation in export where a user would not want to see the AUTO_INCREMENT next value in the exported file?
Well it would be useful not to export auto incremented column at all,
Ok I'll try to implement the removal of AUTO_INCREMENT clause generated by 5.0.23+ SHOW CREATE TABLE.
but will full export there won't be much use for it...
Sorry I don't follow your point about full export.
Marc
On Tue, 01 Aug 2006 11:20:19 -0400 Marc Delisle Marc.Delisle@cegepsherbrooke.qc.ca wrote:
Michal Čihař a écrit :
On Mon, 31 Jul 2006 10:47:29 -0400 Marc Delisle Marc.Delisle@cegepsherbrooke.qc.ca wrote:
So you see a situation in export where a user would not want to see the AUTO_INCREMENT next value in the exported file?
Well it would be useful not to export auto incremented column at all,
Ok I'll try to implement the removal of AUTO_INCREMENT clause generated by 5.0.23+ SHOW CREATE TABLE.
but will full export there won't be much use for it...
Sorry I don't follow your point about full export.
Sorry for mess, I will try to rephrase this:
When you export table with all columns, you will most likely want AUTO_INCREMENT to be included.
However if we'd provide option to export table without auto incremented column, not exporting AUTO_INCREMENT would be logical.
So I think that it's okay to have AUTO_INCREMENT clause.
hi devels,
When you export table with all columns, you will most likely want AUTO_INCREMENT to be included.
it depends on what your goal is - if you want to copy structure & data you are right, but if you want to setup an empty db you probably want AUTO_INCREMENT value not to be set.
so in "table ->operation->copy" the checkbox should stay and should be checked by default, as "Structure and data" is also checked by default (same in "Move table to").
IMHO
Michal Čihař a écrit :
On Tue, 01 Aug 2006 11:20:19 -0400 Marc Delisle Marc.Delisle@cegepsherbrooke.qc.ca wrote:
Michal Čihař a écrit :
On Mon, 31 Jul 2006 10:47:29 -0400 Marc Delisle Marc.Delisle@cegepsherbrooke.qc.ca wrote:
So you see a situation in export where a user would not want to see the AUTO_INCREMENT next value in the exported file?
Well it would be useful not to export auto incremented column at all,
Ok I'll try to implement the removal of AUTO_INCREMENT clause generated by 5.0.23+ SHOW CREATE TABLE.
but will full export there won't be much use for it...
Sorry I don't follow your point about full export.
Sorry for mess, I will try to rephrase this:
When you export table with all columns, you will most likely want AUTO_INCREMENT to be included.
However if we'd provide option to export table without auto incremented column, not exporting AUTO_INCREMENT would be logical.
So I think that it's okay to have AUTO_INCREMENT clause.
OK I am working on this. 5.0.24 has been released but not yet on the mirrors.
windkiel a écrit :
hi devels,
When you export table with all columns, you will most likely want AUTO_INCREMENT to be included.
it depends on what your goal is - if you want to copy structure & data you are right, but if you want to setup an empty db you probably want AUTO_INCREMENT value not to be set.
so in "table ->operation->copy" the checkbox should stay and should be checked by default, as "Structure and data" is also checked by default (same in "Move table to").
IMHO
Ok I'm convinced now :)