Commit 99b3680b authored by unknown's avatar unknown

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
parent e0c7c731
...@@ -2,3 +2,4 @@ jani@prima.mysql.com ...@@ -2,3 +2,4 @@ jani@prima.mysql.com
sasha@mysql.sashanet.com sasha@mysql.sashanet.com
sasha@work.mysql.com sasha@work.mysql.com
serg@serg.mysql.com serg@serg.mysql.com
jani@prima.mysql.fi
...@@ -1116,6 +1116,11 @@ static bool like_range(const char *ptr,uint ptr_length,char escape, ...@@ -1116,6 +1116,11 @@ static bool like_range(const char *ptr,uint ptr_length,char escape,
*min_str++= *max_str++ = *ptr; *min_str++= *max_str++ = *ptr;
} }
*min_length= *max_length = (uint) (min_str - min_org); *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) while (min_str != min_end)
*min_str++ = *max_str++ = ' '; // Because if key compression *min_str++ = *max_str++ = ' '; // Because if key compression
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment