mariadb/storage
Martin Hansson 30f57b3323 Bug#56423: Different count with SELECT and CREATE SELECT queries
This is a regression from the fix for bug no 38999. A storage engine capable
of reading only a subset of a table's columns updates corresponding bits in
the read buffer to signal that it has read NULL values for the corresponding
columns. It cannot, and should not, update any other bits. Bug no 38999
occurred because the implementation of UPDATE statements compare the NULL bits
using memcmp, inadvertently comparing bits that were never requested from the
storage engine. The regression was caused by the storage engine trying to
alleviate the situation by writing to all NULL bits, even those that it had no
knowledge of. This has devastating effects for the index merge algorithm,
which relies on all NULL bits, except those explicitly requested, being left
unchanged.

The fix reverts the fix for bug no 38999 in both InnoDB and InnoDB plugin and
changes the server's method of comparing records. For engines that always read
entire rows, we proceed as usual. For engines capable of reading only select
columns, the record buffers are now compared on a column by column basis. An
assertion was also added so that non comparable buffers are never read. Some
relevant copy-pasted code was also consolidated in a new function.
2010-10-07 10:13:11 +02:00
..
archive Bug#53445: Build with -Wall and fix warnings that it generates 2010-07-09 08:37:51 -03:00
blackhole Bug#53445: Build with -Wall and fix warnings that it generates 2010-07-09 08:37:51 -03:00
csv Bug#45288: pb2 returns a lot of compilation warnings on linux 2010-07-20 15:07:36 -03:00
example Bug#45288: pb2 returns a lot of compilation warnings on linux 2010-07-20 15:07:36 -03:00
federated Bug#45288: pb2 returns a lot of compilation warnings on linux 2010-07-09 09:00:17 -03:00
heap Bug#53445: Build with -Wall and fix warnings that it generates 2010-07-02 15:30:47 -03:00
ibmdb2i Bug#53445: Build with -Wall and fix warnings that it generates 2010-07-09 08:37:51 -03:00
innobase Bug#56423: Different count with SELECT and CREATE SELECT queries 2010-10-07 10:13:11 +02:00
innodb_plugin Bug#56423: Different count with SELECT and CREATE SELECT queries 2010-10-07 10:13:11 +02:00
myisam Bug#45288: pb2 returns a lot of compilation warnings on linux 2010-09-24 19:13:51 -03:00
myisammrg Bug#45288: pb2 returns a lot of compilation warnings on linux 2010-07-20 15:07:36 -03:00
ndb Bug#48327: Some crashes specific to FreeBSD ("embedded") 2010-07-14 10:10:12 -03:00
Makefile.am Backport WL#3653 to 5.1 to enable bundled innodb plugin. 2009-06-10 10:59:49 +02:00
mysql_storage_engine.cmake Bug #47797 CMake, engine can't specify additional libraries to link with 2009-10-08 14:54:11 +02:00