support key length in table copy/dump

This commit is contained in:
Marc Delisle
2001-05-15 13:13:07 +00:00
parent a7ad3d7acd
commit 0425b9a3e1
2 changed files with 9 additions and 0 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2001-05-15 Marc Delisle <lem9@users.sourceforge.net>
* support key length in table copy/dump
2001-05-15 Armel Fauveau <armel.fauveau@globalis-ms.com>
* Added "Bookmarked SQL-query" combo box when you click on a table (Feature #423065)

View File

@@ -451,6 +451,8 @@ function get_table_def($db, $table, $crlf)
{
$kname=$row['Key_name'];
$comment=$row['Comment'];
$sub_part=$row['Sub_part'];
if(($kname != "PRIMARY") && ($row['Non_unique'] == 0))
$kname="UNIQUE|$kname";
@@ -458,6 +460,10 @@ function get_table_def($db, $table, $crlf)
$kname="FULLTEXT|$kname";
if(!isset($index[$kname]))
$index[$kname] = array();
if ($sub_part>1)
$index[$kname][] = $row['Column_name'] . "(" . $sub_part . ")";
else
$index[$kname][] = $row['Column_name'];
}