mariadb/storage
gshchepa/uchum@host.loc 107b84f9bd Fixed bug#36006: Optimizer does table scan for SELECT COUNT(*)
for ENGINE=MRG_MYISAM (should be optimized out).

Before WL#3281 MERGE engine had the HA_NOT_EXACT_COUNT flag
unset, and it worked with COUNT optimization as desired.
After the removal of the HA_NOT_EXACT_COUNT flag neither
HA_STATS_RECORDS_IS_EXACT (opposite to former HA_NOT_EXACT_COUNT
flag) nor modern HA_HAS_RECORDS flag were not added to MERGE
table flag mask.

1. The HA_HAS_RECORDS table flag has been set.
2. The ha_myisammrg::records method has been overridden to
   calculate total number of records in underlying tables.
2008-04-26 02:45:58 +05:00
..
archive Merge trift2.:/MySQL/M51/mysql-5.1 2008-03-27 12:45:16 +01:00
blackhole Merge mysql1000.(none):/home/andrei/MySQL/MERGE/5.0-main2rpl 2008-03-29 15:00:12 +02:00
csv Merge pcg5ppc.xiphis.org:/Network/Servers/anubis.xiphis.org/home/antony/work/mysql-5.1-engines 2008-03-07 13:46:29 -08:00
example Merge trift2.:/MySQL/M51/mysql-5.1 2008-03-14 14:41:08 +01:00
federated Merge trift2.:/MySQL/M51/mysql-5.1 2008-03-27 12:45:16 +01:00
heap Merge kaamos.(none):/data/src/mysql-5.1 2008-03-12 11:19:46 +03:00
innobase Merge debian.(none):/MySQL/M51/mysql-5.1 2008-03-28 17:07:56 +02:00
myisam Merge bk-internal:/home/bk/mysql-5.1 2008-03-31 10:40:39 +03:00
myisammrg Fixed bug#36006: Optimizer does table scan for SELECT COUNT(*) 2008-04-26 02:45:58 +05:00
ndb Merge trift2.:/MySQL/M51/ndb-decl-5.1 2008-03-27 13:20:24 +01:00
Makefile.am Many files: 2006-12-31 02:29:11 +01:00