fixed bug #455411 -Table Aliases- and first part of bug #456119 -Aliases bugs-

This commit is contained in:
Loïc Chapeaux
2001-08-30 23:48:54 +00:00
parent 9b35f1d61d
commit effa6c8e40
2 changed files with 6 additions and 4 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2001-08-31 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* 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 <om@omnis.ch> 2001-08-31 Olivier M<>ller <om@omnis.ch>
* releasing phpMyAdmin 2.2.0-final * releasing phpMyAdmin 2.2.0-final

View File

@@ -1199,10 +1199,8 @@ var errorMsg2 = '<?php echo(str_replace('\'', '\\\'', $GLOBALS['strNotValidNumbe
// fields type, however TEXT fields must be displayed even // fields type, however TEXT fields must be displayed even
// if $cfgShowBlob is false -> get the true type of the // if $cfgShowBlob is false -> get the true type of the
// fields. // fields.
$local_query = 'SHOW FIELDS FROM ' . backquote($db) . '.' . backquote($primary->table) . ' LIKE \'' . sql_addslashes($primary->name, TRUE) . '\''; $field_flags = mysql_field_flags($dt_result, $i);
$result_type = mysql_query($local_query) or mysql_die('', $local_query); if (eregi('BINARY', $field_flags)) {
$true_field_type = mysql_fetch_array($result_type);
if (eregi('BLOB', $true_field_type['Type'])) {
echo ' <td align="center">[BLOB]</td>' . "\n"; echo ' <td align="center">[BLOB]</td>' . "\n";
} else { } else {
if (strlen($row[$i]) > $GLOBALS['cfgLimitChars'] && ($dontlimitchars != 1)) { if (strlen($row[$i]) > $GLOBALS['cfgLimitChars'] && ($dontlimitchars != 1)) {