diff --git a/ChangeLog b/ChangeLog index 388bb2051..3ca7784e6 100755 --- a/ChangeLog +++ b/ChangeLog @@ -14,6 +14,8 @@ $Source$ * server_privileges.php: Limit username and hostname to actual limits of MySQL (RFE #1178071). * config.default.php: Add COMPRESS and UNCOMPRESS functions. + * tbl_change.php: Show functions for blobs when upload is enabled (RFE + #1191792). 2005-10-08 Marc Delisle * libraries/session.inc.php: workaround for warnings on session_start() diff --git a/tbl_change.php b/tbl_change.php index 053ac80c5..dc30f974e 100644 --- a/tbl_change.php +++ b/tbl_change.php @@ -443,7 +443,7 @@ foreach ($loop_array AS $vrowcount => $vrow) { // stored or retrieved" so it does not mean that the contents is // binary if ($cfg['ShowFunctionFields']) { - if (($cfg['ProtectBinary'] && $is_blob) + if (($cfg['ProtectBinary'] && $is_blob && !$is_upload) || ($cfg['ProtectBinary'] == 'all' && $is_binary)) { echo ' ' . $strBinary . '' . "\n"; } else if (strstr($row_table_def['True_Type'], 'enum') || strstr($row_table_def['True_Type'], 'set')) { @@ -745,9 +745,11 @@ foreach ($loop_array AS $vrowcount => $vrow) { // (displayed whatever value the ProtectBinary has) if ($is_upload && $is_blob) { + echo '
'; echo ' '; // find maximum upload size, based on field type + // FIXME: with functions this is not so easy, as you can basically process any data with function like MD5 $max_field_sizes = array( 'tinyblob' => '256', 'blob' => '65536',