From b8c67d9697cc9daf278a41612988a6b421cd6547 Mon Sep 17 00:00:00 2001 From: Abhishek Kandoi Date: Sat, 14 Sep 2013 17:29:26 +0530 Subject: [PATCH 1/2] Adds AUTO_INCREMENT value while copying table. Fixes bug 4079 --- libraries/Table.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/Table.class.php b/libraries/Table.class.php index 49ea68e79d..7fdbf78f19 100644 --- a/libraries/Table.class.php +++ b/libraries/Table.class.php @@ -836,6 +836,10 @@ class PMA_Table $no_constraints_comments = true; $GLOBALS['sql_constraints_query'] = ''; + // set the value of global sql_auto_increment variable + if( isset($_POST['sql_auto_increment']) ) { + $GLOBALS['sql_auto_increment'] = $_POST['sql_auto_increment']; + } $sql_structure = $export_sql_plugin->getTableDef( $source_db, $source_table, "\n", $err_url, false, false From 830d94a7a8fdaec43becc52776bc3b4aaceefdf3 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 14 Sep 2013 09:36:40 -0400 Subject: [PATCH 2/2] ChangeLog entry for bug 4079 --- ChangeLog | 1 + 1 file changed, 1 insertion(+) diff --git a/ChangeLog b/ChangeLog index 91d300202b..480e33075f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,7 @@ phpMyAdmin - ChangeLog - bug #4091 Insert ignore option does not work - bug #4090 Downloading BLOB downloads page template - bug #4092 Clicking on table name in view of information_schema redirects to wrong page +- bug #4079 Copy Table Add AUTO_INCREMENT value checkbox not working 4.0.6.0 (2013-09-05) - bug #4036 Call to undefined function mb_detect_encoding (clarify the doc)