diff options
author | Marc Delisle <marc@infomarc.info> | 2008-05-18 20:45:36 +0400 |
---|---|---|
committer | Marc Delisle <marc@infomarc.info> | 2008-05-18 20:45:36 +0400 |
commit | 350f766ff8ce95e4a80de098b11189db45ba35e5 (patch) | |
tree | 506b3d59c63d8c06f5e819af4bd57715d753c5ca | |
parent | 42e50bd09cb85bef9f37044f7c11dc4943ac9cc7 (diff) |
bug #1762029 [interface] Cannot upload BLOB into existing row
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | tbl_change.php | 6 |
2 files changed, 5 insertions, 2 deletions
@@ -21,6 +21,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA - 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 960a13d396..089eec99d5 100644 --- a/tbl_change.php +++ b/tbl_change.php @@ -406,8 +406,10 @@ foreach ($loop_array as $vrowcount => $vrow) { // Prepares the field value $real_null_value = FALSE; if (isset($vrow)) { - if (!isset($vrow[$field]) - || (function_exists('is_null') && is_null($vrow[$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 (! $is_blob && function_exists('is_null') && is_null($vrow[$field])) { $real_null_value = TRUE; $vrow[$field] = ''; $special_chars = ''; |