summaryrefslogtreecommitdiff
path: root/innobase/rem
diff options
context:
space:
mode:
authormarko@hundin.mysql.fi <>2004-12-17 18:35:11 +0200
committermarko@hundin.mysql.fi <>2004-12-17 18:35:11 +0200
commite2f9201041551188a7b7fa26bc2daafe54269d44 (patch)
treec409114526e80bf5c0378ea758cd06c7cc3ba8c4 /innobase/rem
parent9311c8f56497651623df518f8e38edac49178878 (diff)
downloadmariadb-git-e2f9201041551188a7b7fa26bc2daafe54269d44.tar.gz
InnoDB: Fixed bugs in the padding and trimming of trailing spaces
that affected the UCS2 character set. (Bug #7350)
Diffstat (limited to 'innobase/rem')
-rw-r--r--innobase/rem/rem0cmp.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/innobase/rem/rem0cmp.c b/innobase/rem/rem0cmp.c
index 041fb7914e2..cf549284acc 100644
--- a/innobase/rem/rem0cmp.c
+++ b/innobase/rem/rem0cmp.c
@@ -261,22 +261,6 @@ cmp_whole_field(
"InnoDB: comparison!\n");
}
- /* MySQL does not pad the ends of strings with spaces in a
- comparison. That would cause a foreign key check to fail for
- non-latin1 character sets if we have different length columns.
- To prevent that we remove trailing spaces here before doing
- the comparison. NOTE that if we in the future map more MySQL
- types to DATA_MYSQL or DATA_VARMYSQL, we have to change this
- code. */
-
- while (a_length > 0 && a[a_length - 1] == ' ') {
- a_length--;
- }
-
- while (b_length > 0 && b[b_length - 1] == ' ') {
- b_length--;
- }
-
return(innobase_mysql_cmp(
(int)(type->prtype & DATA_MYSQL_TYPE_MASK),
(uint)dtype_get_charset_coll(type->prtype),