This commit is contained in:
Alexander M. Turek
2002-11-16 10:24:54 +00:00
parent f9687321fc
commit fa18c9cdaf
2 changed files with 9 additions and 1 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$
2002-11-16 Alexander M. Turek <rabus@users.sourceforge.net>
* tbl_indexes.php3: Fixed bug #638321 (FULLTEXT is not detected correctly
with MySQL >= 4.0.2-alpha).
2002-11-15 Alexander M. Turek <rabus@users.sourceforge.net>
* scripts/create_tables.sql: Added a 'USE' command after 'CREATE DATABASE'.

View File

@@ -103,6 +103,9 @@ for ($i = 0; $i < $idx_cnt; $i++) {
$indexes_info[$row['Key_name']]['Comment'] = (isset($row['Comment']))
? $row['Comment']
: '';
$indexes_info[$row['Key_name']]['Index_type'] = (isset($row['Index_type']))
? $row['Index_type']
: '';
$indexes_data[$row['Key_name']][$row['Seq_in_index']]['Column_name'] = $row['Column_name'];
if (isset($row['Sub_part'])) {
@@ -451,7 +454,8 @@ else if (!defined('PMA_IDX_INCLUDED')
. ' ' . htmlspecialchars($index_name) . "\n"
. ' </td>' . "\n";
if ($indexes_info[$index_name]['Comment'] == 'FULLTEXT') {
if ((PMA_MYSQL_INT_VERSION >= 32323 && PMA_MYSQL_INT_VERSION < 40002 && $indexes_info[$index_name]['Comment'] == 'FULLTEXT')
|| (PMA_MYSQL_INT_VERSION >= 40002 && $indexes_info[$index_name]['Index_type'] == 'FULLTEXT')) {
$index_type = 'FULLTEXT';
} else if ($index_name == 'PRIMARY') {
$index_type = 'PRIMARY';