Commit 729648c4 authored by Satya B's avatar Satya B

Additional Fix for BUG#40565 - Update Query Results in "1 Row Affected"

                               But Should Be "Zero Rows"


After applying the innodb snapshot 5.0-ss5406 for bug#40565, the windows push build
tests failed because of the missing cast of void * pointer in row0sel.c file

Informed the innodb developers and received patch by email.

innobase/row/row0sel.c:
  Cast the default_rec which is a void * pointer
parent 498614a0
...@@ -2527,7 +2527,8 @@ row_sel_store_mysql_rec( ...@@ -2527,7 +2527,8 @@ row_sel_store_mysql_rec(
mysql_rec[templ->mysql_null_byte_offset] |= mysql_rec[templ->mysql_null_byte_offset] |=
(byte) (templ->mysql_null_bit_mask); (byte) (templ->mysql_null_bit_mask);
memcpy(mysql_rec + templ->mysql_col_offset, memcpy(mysql_rec + templ->mysql_col_offset,
prebuilt->default_rec + templ->mysql_col_offset, (const byte*) prebuilt->default_rec
+ templ->mysql_col_offset,
templ->mysql_col_len); templ->mysql_col_len);
} }
} }
......
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