summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/ha_innodb.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc
index ddda83d6ad9..5b0e5377962 100644
--- a/sql/ha_innodb.cc
+++ b/sql/ha_innodb.cc
@@ -2635,7 +2635,7 @@ innobase_convert_and_store_changed_col(
&& cset <= 144/*ucs2_persian_ci*/)) {
/* space=0x0020 */
/* Trim "half-chars", just in case. */
- len &= ~1;
+ len = len - (len % 2); /* len &= ~1; */
while (len && data[len - 2] == 0x00
&& data[len - 1] == 0x20) {