From effa6c8e404828b08a1a72fea9edc06e442346e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Thu, 30 Aug 2001 23:48:54 +0000 Subject: [PATCH] fixed bug #455411 -Table Aliases- and first part of bug #456119 -Aliases bugs- --- ChangeLog | 4 ++++ lib.inc.php3 | 6 ++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index ad39727d1..9e34537a2 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2001-08-31 Loïc Chapeaux + * lib.inc.php3, lines 1202-1210: fixed bug #455411 -Table Aliases- and + first part of bug #456119 -Aliases bugs-. + 2001-08-31 Olivier Müller * releasing phpMyAdmin 2.2.0-final diff --git a/lib.inc.php3 b/lib.inc.php3 index 865f7578c..a1f55c1de 100755 --- a/lib.inc.php3 +++ b/lib.inc.php3 @@ -1199,10 +1199,8 @@ var errorMsg2 = ' get the true type of the // fields. - $local_query = 'SHOW FIELDS FROM ' . backquote($db) . '.' . backquote($primary->table) . ' LIKE \'' . sql_addslashes($primary->name, TRUE) . '\''; - $result_type = mysql_query($local_query) or mysql_die('', $local_query); - $true_field_type = mysql_fetch_array($result_type); - if (eregi('BLOB', $true_field_type['Type'])) { + $field_flags = mysql_field_flags($dt_result, $i); + if (eregi('BINARY', $field_flags)) { echo ' [BLOB]' . "\n"; } else { if (strlen($row[$i]) > $GLOBALS['cfgLimitChars'] && ($dontlimitchars != 1)) {