add a FIXME for db copy with Add Constraints and mysql extension

This commit is contained in:
Marc Delisle
2006-08-08 16:56:47 +00:00
parent 1389e967d0
commit 6e861120db
2 changed files with 9 additions and 0 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - ChangeLog
$Id$
$Source$
2006-08-08 Marc Delisle <lem9@users.sourceforge.net>
* db_operations.php: added a FIXME for db copy with Add Constraints
and mysql extension
2006-08-05 Marc Delisle <lem9@users.sourceforge.net>
* libraries/export/sql.php: bug #1527862, export foreign keys is broken
in latest CVS

View File

@@ -87,7 +87,12 @@ if (isset($db) &&
// now that all tables exist, create all the accumulated constraints
if (isset($GLOBALS['add_constraints'])) {
// FIXME: this works with mysqli but not with mysql,
// because mysql extension does not accept more than one
// statement; maybe interface with the sql import plugin
// that handles statement delimiter
PMA_DBI_query($GLOBALS['sql_constraints_query_full_db']);
// and prepare to display them
$GLOBALS['sql_query'] .= "\n" . $GLOBALS['sql_constraints_query_full_db'];
unset($GLOBALS['sql_constraints_query_full_db']);