From 8e5514549d7805713ce0c9fb2c43255d8101538c Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 5 Aug 2006 10:51:03 +0000 Subject: [PATCH] bug #1527862, export foreign keys is broken in latest CVS --- ChangeLog | 4 ++++ libraries/export/sql.php | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3cade94e7..2998e88cb 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - ChangeLog $Id$ $Source$ +2006-08-05 Marc Delisle + * libraries/export/sql.php: bug #1527862, export foreign keys is broken + in latest CVS + 2006-08-04 Marc Delisle * tbl_properties_operations.php, libraries/export/sql.php: bug #1526000, copying table to another db (MYSQL 5.0.24) diff --git a/libraries/export/sql.php b/libraries/export/sql.php index 180171964..dad6efa96 100644 --- a/libraries/export/sql.php +++ b/libraries/export/sql.php @@ -614,7 +614,9 @@ function PMA_exportStructure($db, $table, $crlf, $error_url, $relation = FALSE, . $GLOBALS['comment_marker'] . $crlf . PMA_getTableDef($db, $table, $crlf, $error_url, $dates) . ';' . $crlf . PMA_getTableComments($db, $table, $crlf, $relation, $comments, $mime); - + // this one is built by PMA_getTableDef() to use in table copy/move + // but not in the case of export + unset($GLOBALS['sql_constraints_query']); return PMA_exportOutputHandler($dump); }