bug #2117224 - Propose Table Structure: unreadable

This commit is contained in:
Marc Delisle
2008-09-20 11:07:30 +00:00
parent a717ace704
commit b2a930b963

View File

@@ -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