bug 784143

This commit is contained in:
Marc Delisle
2003-08-06 20:24:05 +00:00
parent ef4318fe24
commit 36bc6eceb5
2 changed files with 4 additions and 1 deletions

View File

@@ -8,6 +8,8 @@ $Source$
2003-08-06 Marc Delisle <lem9@users.sourceforge.net>
* 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 <nijel@users.sourceforge.net>
* libraries/common.lib.php3: Parse better enum fields (bug #784154).

View File

@@ -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'])) {