diff --git a/ChangeLog b/ChangeLog index b03223eb4..f29e18fc5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -71,6 +71,7 @@ danbarry - patch #1957998 [display] No tilde for InnoDB row counter when we know it for sure, thanks to Vladyslav Bakayev - dandy76 - bug #1955572 [display] alt text causes duplicated strings +- bug #1762029 [interface] Cannot upload BLOB into existing row 2.11.6.0 (2008-04-29) - bug #1903724 [interface] Displaying of very large queries in error message diff --git a/tbl_change.php b/tbl_change.php index 5e5467380..4980a9246 100644 --- a/tbl_change.php +++ b/tbl_change.php @@ -412,8 +412,10 @@ foreach ($rows as $row_id => $vrow) { // Prepares the field value $real_null_value = FALSE; if (isset($vrow)) { - if (! isset($vrow[$field['Field']]) - || is_null($vrow[$field['Field']])) { + // On a BLOB that can have a NULL value, the is_null() returns + // true if it has no content but for me this is different than + // having been set explicitely to NULL so I put an exception here + if (! $field['is_blob'] && is_null($vrow[$field['Field']])) { $real_null_value = TRUE; $vrow[$field['Field']] = ''; $special_chars = '';