mariadb/include
unknown ffc1facce8 Bug #22367: Optimizer uses ref join type instead of eq_ref for simple join on
strings
MySQL is setting the flag HA_END_SPACE_KEYS for all the keys that reference
text or varchar columns with collation different than binary.
This was done to handle correctly the situation where a lookup on such a key
may return more than 1 row because of the presence of many rows that differ
only by the amount of trailing space in the table's string column.
Inserting such values however appears to violate the unique checks on 
INSERT/UPDATE. Thus that flag must not be set as it will prevent the optimizer
from choosing a faster access method.
This fix removes the setting of the HA_END_SPACE_KEYS flag.


include/my_base.h:
  Bug #22367: Optimizer uses ref join type instead of eq_ref for simple join on 
               strings
   - disabled HA_END_SPACE_KEY as it's no longer needed
mysql-test/r/func_str.result:
  Bug #22367: Optimizer uses ref join type instead of eq_ref for simple join on 
               strings
   - fixed explain in an existing case
mysql-test/r/merge.result:
  Bug #22367: Optimizer uses ref join type instead of eq_ref for simple join on 
               strings
   - fixed explain in an existing case
mysql-test/r/select.result:
  Bug #22367: Optimizer uses ref join type instead of eq_ref for simple join on 
               strings
   - test case
mysql-test/r/subselect.result:
  Bug #22367: Optimizer uses ref join type instead of eq_ref for simple join on 
               strings
   - fixed explain in an existing case
mysql-test/t/select.test:
  Bug #22367: Optimizer uses ref join type instead of eq_ref for simple join on 
               strings
   - test case
2006-10-16 18:09:58 +03:00
..
.cvsignore
base64.h WL#2835: Base64 mysys functions 2005-10-14 01:14:23 +02:00
config-netware.h Fix for bug#21537, "Error at startup" 2006-08-23 12:08:08 +02:00
config-os2.h
config-win.h Fixed Bug#19479:mysqldump creates invalid dump. 2006-06-01 12:34:44 +03:00
decimal.h
errmsg.h
ft_global.h
hash.h A fix for Bug#7209 "Client error with "Access Denied" on updates 2006-01-04 17:35:30 +03:00
heap.h Bug #12796: Record lost in HEAP table 2005-11-08 00:26:37 -05:00
help_end.h
help_start.h
keycache.h Bug#12920 - key_read_requests counter appears to re-set 2005-09-14 13:18:16 +02:00
m_ctype.h Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-4.1 2006-03-23 14:29:43 +04:00
m_string.h Merge ua141d10.elisa.omakaista.fi:/home/my/bk/mysql-4.1-tmp 2005-10-13 18:23:53 +03:00
Makefile.am Fix for Bug#18246 "compilation error with tcp_wrapper" 2006-06-21 02:23:18 +03:00
md5.h
my_aes.h
my_alarm.h
my_alloc.h
my_base.h Bug #22367: Optimizer uses ref join type instead of eq_ref for simple join on 2006-10-16 18:09:58 +03:00
my_bitmap.h
my_dbug.h Fixes for crashes and test failures 2006-09-01 14:34:37 +02:00
my_dir.h
my_getopt.h
my_global.h Bug#21222 Patch to support GNU/kFreeBSD build 2006-07-26 15:43:03 +02:00
my_handler.h After merge fixes 2006-06-30 20:07:33 +03:00
my_libwrap.h Cleanup to patch for Bug#18246, "compilation error with tcp_wrapper" 2006-06-21 18:35:19 +03:00
my_list.h
my_net.h Add definition of SHUT_RDWR for compiling on windows 2006-09-15 17:53:45 +02:00
my_no_pthread.h Include the system header file "pthread.h" even in a non-threaded build. 2006-03-10 17:13:54 +01:00
my_nosys.h
my_pthread.h Merge neptunus.(none):/home/msvensson/mysql/my41-bug13711 2006-05-19 13:09:15 +02:00
my_semaphore.h
my_sys.h my_sys.h: 2006-07-01 15:11:59 +02:00
my_time.h
my_tree.h BUG#18160 - Memory-/HEAP Table endless growing indexes 2006-04-19 15:13:50 +05:00
my_user.h Fix for BUG#15110: mysqldump --triggers: does not include DEFINER clause 2006-01-11 02:07:40 +03:00
my_xml.h
myisam.h WL#2645 (CHECK TABLE FOR UPGRADE) 2006-02-17 10:52:32 +04:00
myisammrg.h
myisampack.h
mysql.h Merge mysql.com:/Users/kent/mysql/bk/mysql-5.0-release 2006-08-30 19:31:57 +02:00
mysql_com.h after merge fix 2006-09-07 18:09:49 +05:00
mysql_embed.h
mysql_time.h
mysql_version.h.in
mysys_err.h
queues.h
raid.h
rijndael.h
sha1.h A fix for Bug#13944 "libmysqlclient exporting sha1_result function": 2006-01-11 17:31:52 +03:00
sql_common.h Merge bk-internal.mysql.com:/home/bk/mysql-5.0 2006-08-02 14:13:01 +04:00
sslopt-case.h
sslopt-longopts.h Merge mysql.com:/home/jimw/my/mysql-5.0-1039 2006-05-19 16:17:24 -07:00
sslopt-vars.h Merge mysql.com:/home/jimw/my/mysql-5.0-1039 2006-05-19 16:17:24 -07:00
t_ctype.h
thr_alarm.h
thr_lock.h
typelib.h
violite.h Add new define YASSL_PREFIX beforee including ssl.h to activate inclusion of prefix_*.h files 2006-05-31 22:21:40 +02:00