diff --git a/ChangeLog b/ChangeLog index a147bba863..dadebf7178 100755 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,8 @@ $Source$ 2003-08-06 Marc Delisle * sql.php3: bug 782925: fix "Showing rows..." message when user has put a LIMIT in the query + * libraries/relation.lib.php3: bug 784143: SHOW CREATE TABLE on older + MySQL versions 2003-08-06 Michal Cihar * libraries/common.lib.php3: Parse better enum fields (bug #784154). diff --git a/libraries/relation.lib.php3 b/libraries/relation.lib.php3 index 69cafae076..9497776d01 100644 --- a/libraries/relation.lib.php3 +++ b/libraries/relation.lib.php3 @@ -305,11 +305,12 @@ if (!defined('PMA_RELATION_LIB_INCLUDED')){ } // end while } - if (($source == 'both' || $source == 'innodb') && !empty($table)) { + if (PMA_MYSQL_INT_VERSION >= 32320 && ($source == 'both' || $source == 'innodb') && !empty($table)) { $show_create_table_query = 'SHOW CREATE TABLE ' . PMA_backquote($db) . '.' . PMA_backquote($table); $show_create_table_res = PMA_mysql_query($show_create_table_query); list(,$show_create_table) = PMA_mysql_fetch_row($show_create_table_res); + $analyzed_sql = PMA_SQP_analyze(PMA_SQP_parse($show_create_table)); while (list(,$one_key) = each ($analyzed_sql[0]['foreign_keys'])) {