Show if BLOB is null (RFE #941528).
This commit is contained in:
@@ -10,6 +10,7 @@ $Source$
|
||||
libraries/string.lib.php, libraries/dbi/mysql.dbi.lib.php: SQL parser
|
||||
now correctly works with multibyte strings (bug #936161).
|
||||
* libraries/dbi/mysql.dbi.lib.php: Do not break TEXT fields (bug #860160).
|
||||
* libraries/display_tbl.lib.php: Show if BLOB is null (RFE #941528).
|
||||
|
||||
2004-04-28 Michal Cihar <michal@cihar.com>
|
||||
* css/phpmyadmin.css.php: Force <button> to be displayed inline.
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user