bug #3411224 [display] Broken binary column when 'Show binary contents' not set
This commit is contained in:
@@ -10,6 +10,7 @@ phpMyAdmin - ChangeLog
|
|||||||
- bug #3410604 [config] Configuration storage incorrect suggested table name
|
- bug #3410604 [config] Configuration storage incorrect suggested table name
|
||||||
- bug #3383572 [interface] Cannot execute saved query
|
- bug #3383572 [interface] Cannot execute saved query
|
||||||
- bug #3411535 [display] Full text button unchecks results display options
|
- bug #3411535 [display] Full text button unchecks results display options
|
||||||
|
- bug #3411224 [display] Broken binary column when 'Show binary contents' is not set
|
||||||
|
|
||||||
3.4.5.0 (2011-09-14)
|
3.4.5.0 (2011-09-14)
|
||||||
- bug #3375325 [interface] Page list in navigation frame looks odd
|
- bug #3375325 [interface] Page list in navigation frame looks odd
|
||||||
|
@@ -1440,6 +1440,7 @@ function PMA_displayTableBody(&$dt_result, &$is_display, $map, $analyzed_sql) {
|
|||||||
|
|
||||||
// displays special characters from binaries
|
// displays special characters from binaries
|
||||||
$field_flags = PMA_DBI_field_flags($dt_result, $i);
|
$field_flags = PMA_DBI_field_flags($dt_result, $i);
|
||||||
|
$is_html = false;
|
||||||
if (isset($meta->_type) && $meta->_type === MYSQLI_TYPE_BIT) {
|
if (isset($meta->_type) && $meta->_type === MYSQLI_TYPE_BIT) {
|
||||||
$row[$i] = PMA_printable_bit_value($row[$i], $meta->length);
|
$row[$i] = PMA_printable_bit_value($row[$i], $meta->length);
|
||||||
// some results of PROCEDURE ANALYSE() are reported as
|
// some results of PROCEDURE ANALYSE() are reported as
|
||||||
@@ -1458,18 +1459,22 @@ function PMA_displayTableBody(&$dt_result, &$is_display, $map, $analyzed_sql) {
|
|||||||
// we show the BINARY message and field's size
|
// we show the BINARY message and field's size
|
||||||
// (or maybe use a transformation)
|
// (or maybe use a transformation)
|
||||||
$row[$i] = PMA_handle_non_printable_contents('BINARY', $row[$i], $transform_function, $transform_options, $default_function, $meta, $_url_params);
|
$row[$i] = PMA_handle_non_printable_contents('BINARY', $row[$i], $transform_function, $transform_options, $default_function, $meta, $_url_params);
|
||||||
|
$is_html = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// transform functions may enable no-wrapping:
|
if ($is_html) {
|
||||||
$function_nowrap = $transform_function . '_nowrap';
|
$vertical_display['data'][$row_no][$i] = PMA_buildValueDisplay($class, $condition_field, $row[$i]);
|
||||||
$bool_nowrap = (($default_function != $transform_function && function_exists($function_nowrap)) ? $function_nowrap($transform_options) : false);
|
} else {
|
||||||
|
// transform functions may enable no-wrapping:
|
||||||
// do not wrap if date field type
|
$function_nowrap = $transform_function . '_nowrap';
|
||||||
$nowrap = ((preg_match('@DATE|TIME@i', $meta->type) || $bool_nowrap) ? ' nowrap' : '');
|
$bool_nowrap = (($default_function != $transform_function && function_exists($function_nowrap)) ? $function_nowrap($transform_options) : false);
|
||||||
$where_comparison = ' = \'' . PMA_sqlAddslashes($row[$i]) . '\'';
|
|
||||||
$vertical_display['data'][$row_no][$i] = '<td ' . PMA_prepare_row_data($class, $condition_field, $analyzed_sql, $meta, $map, $row[$i], $transform_function, $default_function, $nowrap, $where_comparison, $transform_options, $is_field_truncated);
|
|
||||||
|
|
||||||
|
// do not wrap if date field type
|
||||||
|
$nowrap = ((preg_match('@DATE|TIME@i', $meta->type) || $bool_nowrap) ? ' nowrap' : '');
|
||||||
|
$where_comparison = ' = \'' . PMA_sqlAddslashes($row[$i]) . '\'';
|
||||||
|
$vertical_display['data'][$row_no][$i] = '<td ' . PMA_prepare_row_data($class, $condition_field, $analyzed_sql, $meta, $map, $row[$i], $transform_function, $default_function, $nowrap, $where_comparison, $transform_options, $is_field_truncated);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$vertical_display['data'][$row_no][$i] = PMA_buildEmptyDisplay($class, $condition_field, $meta);
|
$vertical_display['data'][$row_no][$i] = PMA_buildEmptyDisplay($class, $condition_field, $meta);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user