Show if BLOB is null (RFE #941528).

This commit is contained in:
Michal Čihař
2004-04-29 10:17:08 +00:00
parent 705d68c008
commit bc55b61232
2 changed files with 4 additions and 1 deletions

View File

@@ -1295,7 +1295,9 @@ function PMA_displayTableBody(&$dt_result, &$is_display, $map, $analyzed_sql)
$field_flags = PMA_DBI_field_flags($dt_result, $i);
if (stristr($field_flags, 'BINARY')) {
$blobtext = '[BLOB';
if (isset($row[$i])) {
if (!isset($row[$i]) || is_null($row[$i])) {
$blobtext .= ' - NULL';
} elseif (isset($row[$i])) {
$blob_size = PMA_formatByteDown(strlen($row[$i]), 3, 1);
$blobtext .= ' - '. $blob_size [0] . ' ' . $blob_size[1];
unset($blob_size);