summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorSatya B <satya.bn@sun.com>2009-06-29 17:57:22 +0530
committerSatya B <satya.bn@sun.com>2009-06-29 17:57:22 +0530
commit729648c4b776ec4992f6333f0c70b4b749e8d996 (patch)
tree3be5c3868eb961b46f20bb2255ede7ba884c0ff5 /innobase
parent498614a0a6a4a3927d0399c11dc65a0a0370b5be (diff)
downloadmariadb-git-729648c4b776ec4992f6333f0c70b4b749e8d996.tar.gz
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
Diffstat (limited to 'innobase')
-rw-r--r--innobase/row/row0sel.c3
1 files changed, 2 insertions, 1 deletions
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);
}
}