diff options
author | unknown <jani@prima.mysql.fi> | 2000-12-08 00:34:16 +0200 |
---|---|---|
committer | unknown <jani@prima.mysql.fi> | 2000-12-08 00:34:16 +0200 |
commit | 99b3680b254a049a63da31ab06e3af0b4890ea85 (patch) | |
tree | 31d3abc6417e660720a808c63266d3405426f25f /sql/opt_range.cc | |
parent | e0c7c7314b087162f0f7cb595c78ac983bcb6222 (diff) | |
download | mariadb-git-99b3680b254a049a63da31ab06e3af0b4890ea85.tar.gz |
Temporary fix for handling wild_one at end of string (key compression).
Full fix shall be in MySQL 4.1. (This is a hard one (!))
sql/opt_range.cc:
Temporary fix for handling wild_one at end of string (key compression).
A full fix shall be somewhere in 4.1 (!) This is a hard one...
BitKeeper/etc/logging_ok:
Logging to logging@openlogging.org accepted
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r-- | sql/opt_range.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc index dfd45933999..a3f236462b4 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -1116,6 +1116,11 @@ static bool like_range(const char *ptr,uint ptr_length,char escape, *min_str++= *max_str++ = *ptr; } *min_length= *max_length = (uint) (min_str - min_org); + + /* Temporary fix for handling wild_one at end of string (key compression) */ + for (char *tmp= min_str ; tmp > min_org && tmp[-1] == '\0';) + *--tmp=' '; + while (min_str != min_end) *min_str++ = *max_str++ = ' '; // Because if key compression return 0; |