diff options
author | Satya B <satya.bn@sun.com> | 2009-10-13 12:48:29 +0530 |
---|---|---|
committer | Satya B <satya.bn@sun.com> | 2009-10-13 12:48:29 +0530 |
commit | 610213149cc4cd00f402387d9f687e6375956d15 (patch) | |
tree | 50afd38128334815ffd8c1fe30c27bd6415842cc /sql/log_event.cc | |
parent | fd246618df0fa55af3f9d6669044b0e166980de9 (diff) | |
parent | 6ba225893a2ae6e284e9f11405f969367e184711 (diff) | |
download | mariadb-git-610213149cc4cd00f402387d9f687e6375956d15.tar.gz |
merge to mysql-5.1-bugteam
Diffstat (limited to 'sql/log_event.cc')
-rw-r--r-- | sql/log_event.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/log_event.cc b/sql/log_event.cc index d7921ad3c27..ae7c4335f59 100644 --- a/sql/log_event.cc +++ b/sql/log_event.cc @@ -1852,6 +1852,7 @@ Rows_log_event::print_verbose_one_row(IO_CACHE *file, table_def *td, { const uchar *value0= value; const uchar *null_bits= value; + uint null_bit_index= 0; char typestr[64]= ""; value+= (m_width + 7) / 8; @@ -1860,7 +1861,8 @@ Rows_log_event::print_verbose_one_row(IO_CACHE *file, table_def *td, for (size_t i= 0; i < td->size(); i ++) { - int is_null= (null_bits[i / 8] >> (i % 8)) & 0x01; + int is_null= (null_bits[null_bit_index / 8] + >> (null_bit_index % 8)) & 0x01; if (bitmap_is_set(cols_bitmap, i) == 0) continue; @@ -1897,6 +1899,8 @@ Rows_log_event::print_verbose_one_row(IO_CACHE *file, table_def *td, } my_b_printf(file, "\n"); + + null_bit_index++; } return value - value0; } |