bug 784143
This commit is contained in:
@@ -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).
|
||||
|
@@ -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'])) {
|
||||
|
||||
|
Reference in New Issue
Block a user