From 5e0c653f03366a805a97aaec9e2268a7e4fe5241 Mon Sep 17 00:00:00 2001 From: Satya B Date: Mon, 29 Jun 2009 17:57:22 +0530 Subject: [PATCH] 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/innobase/row/row0sel.c b/innobase/row/row0sel.c index 973d8fad2e7..7fbf7fe7328 100644 --- a/innobase/row/row0sel.c +++ b/innobase/row/row0sel.c @@ -2527,7 +2527,8 @@ row_sel_store_mysql_rec( mysql_rec[templ->mysql_null_byte_offset] |= (byte) (templ->mysql_null_bit_mask); 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); } }