Bug #13787 Table Editor: Insert Column adds column at the end of the table
Submitted: 5 Oct 2005 22:20 Modified: 7 Oct 2005 13:16
Reporter: Marin Purgar Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Administrator Severity:S3 (Non-critical)
Version:1.1.2 OS:
Assigned to: Vladimir Kolesnikov CPU Architecture:Any

[5 Oct 2005 22:20] Marin Purgar
Description:
When inserting the column in the middel of the table the column is added after the last field of the table.

How to repeat:
Open the table in the Table Editor.
Insert the column in the middle of the table.
The SQL preview shows that the column will be added after the last field in the table.

Suggested fix:
Attached is the suggested fix patch to myx_database_model.c from mysql-gui-common.
[5 Oct 2005 22:22] Marin Purgar
Fix for the myx_dbm_get_table_sql_diff function

Attachment: insert_column.diff (text/x-patch), 1.89 KiB.

[6 Oct 2005 4:22] Jorge del Conde
Thanks for your bug report.  I'll see that the Administrator developers take a look at your patch
[7 Oct 2005 13:16] Vladimir Kolesnikov
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

Marin, Thanks for the patch!