From b2a930b963f72252c543b5939635db206644ed04 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 20 Sep 2008 11:07:30 +0000 Subject: [PATCH] bug #2117224 - Propose Table Structure: unreadable --- libraries/display_tbl.lib.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libraries/display_tbl.lib.php b/libraries/display_tbl.lib.php index f05c01912..29b2f7b78 100644 --- a/libraries/display_tbl.lib.php +++ b/libraries/display_tbl.lib.php @@ -1273,8 +1273,11 @@ function PMA_displayTableBody(&$dt_result, &$is_display, $map, $analyzed_sql) { if (isset($meta->_type) && $meta->_type === MYSQLI_TYPE_BIT) { $row[$i] = PMA_printable_bit_value($row[$i], $meta->length); } elseif (stristr($field_flags, 'BINARY') && $meta->type == 'string') { - if ($_SESSION['userconf']['display_binary']) { - // user asked to see the real contents of BINARY fields + if ($_SESSION['userconf']['display_binary'] || (isset($GLOBALS['is_analyse']) && $GLOBALS['is_analyse'])) { + // user asked to see the real contents of BINARY + // fields, or we detected a PROCEDURE ANALYSE in + // the query (results are reported as being + // binary strings) $row[$i] = PMA_replace_binary_contents($row[$i]); } else { // we show the BINARY message and field's size