mariadb/storage/myisam
Neeraj Bisht 65af83f642 Bug#11758009 - UNION EXECUTION ORDER WRONG ?
Problem:-
In case of blob data field, UNION ALL doesn't give correct result.

Analysis:-
In MyISAM table, when we dont want to check for the distinct for particular 
key, we set the key_map to zero.

While writing record in MyISAM table, we check the distinct with the help 
of keys, by checking whether that key is active in key_map and then writing 
the record.

In case of blob field, we are checking for distinct by unique constraint, 
where we are not checking whether that unique key is active or not in key_map.

Solution:-
Before checking for distinct, check whether any key is active in key_map.

storage/myisam/mi_write.c:
  check whether key_map is active before checking distinct.
2013-01-15 14:24:35 +05:30
..
ftbench Merge 2010-12-29 00:47:05 +01:00
.cvsignore Changes to create storage directory for storage engines. 2005-04-26 18:19:54 -07:00
ChangeLog Changes to create storage directory for storage engines. 2005-04-26 18:19:54 -07:00
CMakeLists.txt Updated/added copyright headers 2011-06-30 17:37:13 +02:00
ft_boolean_search.c Bug #13955256: KEYCACHE CRASHES, CORRUPTIONS/HANGS WITH, 2012-05-16 16:14:27 +05:30
ft_eval.c Moved a lot of old bug fixes and safe cleanups from Maria 5.1 tree to 5.1 2007-10-11 18:07:40 +03:00
ft_eval.h Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-23 20:20:40 +01:00
ft_nlq_search.c Bug #13955256: KEYCACHE CRASHES, CORRUPTIONS/HANGS WITH, 2012-05-16 16:14:27 +05:30
ft_parser.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
ft_static.c BUG#33871 - Duplicate "would" in Fulltext Stopwords 2008-01-30 20:14:35 +04:00
ft_stem.c Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
ft_stopwords.c Updated/added copyright headers 2011-07-03 17:47:37 +02:00
ft_test1.c Moved a lot of old bug fixes and safe cleanups from Maria 5.1 tree to 5.1 2007-10-11 18:07:40 +03:00
ft_test1.h Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
ft_update.c Moved a lot of old bug fixes and safe cleanups from Maria 5.1 tree to 5.1 2007-10-11 18:07:40 +03:00
ftdefs.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
fulltext.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
ha_myisam.cc BUG#11757032 - 49030: OPTIMIZE TABLE BREAKS MYISAM TABLE WHEN 2011-10-20 15:03:22 +04:00
ha_myisam.h Updated/added copyright headers 2011-07-03 17:47:37 +02:00
make-ccc Changes to create storage directory for storage engines. 2005-04-26 18:19:54 -07:00
Makefile.am Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
mi_cache.c WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
mi_changed.c Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
mi_check.c Updated/added copyright headers 2012-02-15 17:21:38 +01:00
mi_checksum.c Moved a lot of old bug fixes and safe cleanups from Maria 5.1 tree to 5.1 2007-10-11 18:07:40 +03:00
mi_close.c Updated/added copyright headers 2012-02-15 17:21:38 +01:00
mi_create.c Updated/added copyright headers 2011-07-03 17:47:37 +02:00
mi_dbug.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
mi_delete.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
mi_delete_all.c Updated/added copyright headers 2012-02-15 17:21:38 +01:00
mi_delete_table.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
mi_dynrec.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
mi_extra.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
mi_info.c Merge mysql.com:/home/svoj/devel/mysql/BUG27516/mysql-5.0-engines 2007-04-13 12:44:02 +05:00
mi_key.c Fixed a lot of compiler warnings and errors detected by Forte C++ on Solaris 2007-08-13 16:11:25 +03:00
mi_keycache.c Fixed a lot of compiler warnings and errors detected by Forte C++ on Solaris 2007-08-13 16:11:25 +03:00
mi_locking.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
mi_log.c Fixed a lot of compiler warnings and errors detected by Forte C++ on Solaris 2007-08-13 16:11:25 +03:00
mi_open.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
mi_packrec.c Updated/added copyright headers 2012-02-15 17:21:38 +01:00
mi_page.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
mi_panic.c Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
mi_preload.c Updated/added copyright headers 2012-02-15 17:21:38 +01:00
mi_range.c Updated/added copyright headers 2011-07-03 20:08:47 +02:00
mi_rename.c Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
mi_rfirst.c WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
mi_rkey.c Merge bk-internal.mysql.com:/home/bk/mysql-5.1 2007-08-14 00:22:34 +03:00
mi_rlast.c WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
mi_rnext.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
mi_rnext_same.c WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
mi_rprev.c WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
mi_rrnd.c WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
mi_rsame.c WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
mi_rsamepos.c WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
mi_scan.c WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
mi_search.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
mi_static.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
mi_statrec.c Fixed a lot of compiler warnings and errors detected by Forte C++ on Solaris 2007-08-13 16:11:25 +03:00
mi_test1.c Updated/added copyright headers 2011-07-03 17:47:37 +02:00
mi_test2.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
mi_test3.c Fixed a lot of compiler warnings and errors detected by Forte C++ on Solaris 2007-08-13 16:11:25 +03:00
mi_test_all.res Merge chilla.local:/home/mydev/mysql-5.0-bug14400-monty 2006-09-19 14:33:29 +02:00
mi_test_all.sh Merge 2010-12-29 00:47:05 +01:00
mi_unique.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
mi_update.c Updated/added copyright headers 2011-07-03 17:47:37 +02:00
mi_write.c Bug#11758009 - UNION EXECUTION ORDER WRONG ? 2013-01-15 14:24:35 +05:30
myisam_ftdump.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
myisamchk.c BUG#11754894: MYISAMCHK ERROR HAS INCORRECT REFERENCE 2012-10-30 18:49:15 +05:30
myisamdef.h Updated/added copyright headers 2011-07-03 17:47:37 +02:00
myisamlog.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
myisampack.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
NEWS Changes to create storage directory for storage engines. 2005-04-26 18:19:54 -07:00
plug.in bug #23369 (Embedded library can't be linked) 2006-10-18 17:03:37 +05:00
rt_index.c Merge 2010-12-29 00:47:05 +01:00
rt_index.h Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
rt_key.c Merge chilla.local:/home/mydev/mysql-5.0-bug25673 2007-03-08 12:13:54 +01:00
rt_key.h Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
rt_mbr.c Merge mysql.com:/home/hf/work/30286/my50-30286 2007-10-05 15:43:15 +05:00
rt_mbr.h Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
rt_split.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
rt_test.c Fixed a lot of compiler warnings and errors detected by Forte C++ on Solaris 2007-08-13 16:11:25 +03:00
sort.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sp_defs.h WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
sp_key.c porting 29070 to 5.1-opt 2007-07-11 13:09:39 +03:00
sp_test.c Updated/added copyright headers 2011-07-03 17:47:37 +02:00
test_pack Changes to create storage directory for storage engines. 2005-04-26 18:19:54 -07:00
TODO Changes to create storage directory for storage engines. 2005-04-26 18:19:54 -07:00