From ea707775d2b05ef3a40a1aeca870411203907d66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 30 Sep 2005 18:38:14 +0000 Subject: [PATCH] Fix auto increment export (bug #1309257). --- ChangeLog | 5 +++++ db_operations.php | 2 +- libraries/display_export.lib.php | 2 +- libraries/export/sql.php | 2 +- tbl_properties_operations.php | 2 +- 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 06d734a86..dafbf9ba2 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,11 @@ phpMyAdmin - Changelog $Id$ $Source$ +2005-09-30 Michal Čihař + * libraries/display_export.lib.php, libraries/export/sql.php, + db_operations.php, tbl_properties_operations.php: Fix auto increment + export (bug #1309257). + 2005-09-28 Marc Delisle * tbl_alter.php, libraries/common.lib.php, /relation.lib.php: bug #1262250, cannot change ENUM default value to empty diff --git a/db_operations.php b/db_operations.php index aeda365c7..eb87c4c4f 100644 --- a/db_operations.php +++ b/db_operations.php @@ -246,7 +246,7 @@ if (!$is_information_schema) {
  
-
+

     style="vertical-align: middle" />
-      style="vertical-align: middle" />
+      style="vertical-align: middle" />
     style="vertical-align: middle" />
diff --git a/libraries/export/sql.php b/libraries/export/sql.php index 3414765bb..3f3a416ee 100644 --- a/libraries/export/sql.php +++ b/libraries/export/sql.php @@ -187,7 +187,7 @@ function PMA_getTableDef($db, $table, $crlf, $error_url, $show_dates = false) if ($result != FALSE) { if (PMA_DBI_num_rows($result) > 0) { $tmpres = PMA_DBI_fetch_assoc($result); - if (isset($GLOBALS['auto_increment']) && !empty($tmpres['Auto_increment'])) { + if (isset($GLOBALS['sql_auto_increment']) && !empty($tmpres['Auto_increment'])) { $auto_increment .= ' AUTO_INCREMENT=' . $tmpres['Auto_increment'] . ' '; } diff --git a/tbl_properties_operations.php b/tbl_properties_operations.php index 5988c7dc3..d70ce6558 100644 --- a/tbl_properties_operations.php +++ b/tbl_properties_operations.php @@ -223,7 +223,7 @@ for ($i = 0; $i < $num_dbs; $i++) {   
  
-
+