Commit efbf87be authored by mskold@mysql.com's avatar mskold@mysql.com

Merge mskold@bk-internal.mysql.com:/home/bk/mysql-4.1

into mysql.com:/usr/local/home/marty/MySQL/mysql-4.1
parents 20c89180 27a2ba89
...@@ -2990,8 +2990,7 @@ recv_reset_log_files_for_backup( ...@@ -2990,8 +2990,7 @@ recv_reset_log_files_for_backup(
memcpy(name + log_dir_len, logfilename, sizeof logfilename); memcpy(name + log_dir_len, logfilename, sizeof logfilename);
buf = ut_malloc(LOG_FILE_HDR_SIZE + OS_FILE_LOG_BLOCK_SIZE); buf = ut_malloc(LOG_FILE_HDR_SIZE + OS_FILE_LOG_BLOCK_SIZE);
memset(buf, LOG_FILE_HDR_SIZE + OS_FILE_LOG_BLOCK_SIZE, '\0'); memset(buf, '\0', LOG_FILE_HDR_SIZE + OS_FILE_LOG_BLOCK_SIZE);
for (i = 0; i < n_log_files; i++) { for (i = 0; i < n_log_files; i++) {
......
...@@ -381,8 +381,14 @@ row_upd_changes_field_size_or_external( ...@@ -381,8 +381,14 @@ row_upd_changes_field_size_or_external(
new_len = new_val->len; new_len = new_val->len;
if (new_len == UNIV_SQL_NULL) { if (new_len == UNIV_SQL_NULL) {
/* A bug fixed on Dec 31st, 2004: we looked at the
SQL NULL size from the wrong field! We may backport
this fix also to 4.0. The merge to 5.0 will be made
manually immediately after we commit this to 4.1. */
new_len = dtype_get_sql_null_size( new_len = dtype_get_sql_null_size(
dict_index_get_nth_type(index, i)); dict_index_get_nth_type(index,
upd_field->field_no));
} }
old_len = rec_get_nth_field_size(rec, upd_field->field_no); old_len = rec_get_nth_field_size(rec, upd_field->field_no);
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment