diff --git a/ChangeLog b/ChangeLog index 1c8c240b2..e5afdcc29 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - ChangeLog $Id$ $Source$ +2006-05-26 Marc Delisle + * tbl_change.php: bug #1451426, edit breaks protected BLOB field, + changes it from NULL to empty string + 2006-05-23 Marc Delisle * tbl_change.php, tbl_replace.php: bug #1438999, updating a multi-table view diff --git a/tbl_change.php b/tbl_change.php index dc4ac302f..ccfd36639 100644 --- a/tbl_change.php +++ b/tbl_change.php @@ -565,43 +565,48 @@ foreach ($loop_array AS $vrowcount => $vrow) { } } // end if ($cfg['ShowFunctionFields']) + // The null column // --------------- echo ' ' . "\n"; - if (!(($cfg['ProtectBinary'] && $is_blob) || ($cfg['ProtectBinary'] == 'all' && $is_binary)) - && $row_table_def['Null'] == 'YES') { - + if ($row_table_def['Null'] == 'YES') { echo ' ' . "\n"; - echo ' 20) { - $onclick .= '1, '; - } else { - $onclick .= '2, '; + if (!(($cfg['ProtectBinary'] && $is_blob) || ($cfg['ProtectBinary'] == 'all' && $is_binary)) ) { + + echo ' 20) { + $onclick .= '1, '; + } else { + $onclick .= '2, '; + } + } elseif (strstr($row_table_def['True_Type'], 'set')) { + $onclick .= '3, '; + } elseif ($foreigners && isset($foreigners[$field])) { + $onclick .= '4, '; + } else { + $onclick .= '5, '; + } + $onclick .= '\'' . urlencode($field) . '\', \'' . md5($field) . '\', \'' . $vkey . '\'); this.checked = true}; return true" />' . "\n"; + echo $onclick; } else { - $onclick .= '5, '; + echo ' ' . "\n"; } - $onclick .= '\'' . urlencode($field) . '\', \'' . md5($field) . '\', \'' . $vkey . '\'); this.checked = true}; return true" />' . "\n"; - echo $onclick; - } else { - echo '  ' . "\n"; } echo ' ' . "\n";