mariadb/storage/innobase/row
Martin Hansson 9c82ecec37 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
..
row0ins.c Bug#53674: InnoDB: Error: unlock row could not find a 4 mode lock on the record 2010-06-02 13:26:37 +03:00
row0mysql.c merged mysql-5.1 into mysql-5.1-bugteam 2010-10-05 11:11:56 +03:00
row0purge.c (partially) Fix Bug#55227 Fix compiler warnings in innodb with gcc 4.6 2010-09-14 13:56:29 +03:00
row0row.c Apply the following innodb-5.1-* snapshots: ss1489, ss1496, ss1550, ss1569. 2007-07-10 05:37:43 -06:00
row0sel.c Bug#56423: Different count with SELECT and CREATE SELECT queries 2010-10-07 10:13:11 +02:00
row0uins.c Applied innodb-5.1 snapshots ss799 and ss854 2006-09-21 01:39:09 -06:00
row0umod.c (partially) Fix Bug#55227 Fix compiler warnings in innodb with gcc 4.6 2010-09-14 14:09:36 +03:00
row0undo.c Fix bug#54583. This change reverses rsvn:1350 by getting rid of a bogus assertion 2010-06-25 18:18:41 +10:00
row0upd.c (partially) Fix Bug#55227 Fix compiler warnings in innodb with gcc 4.6 2010-09-14 14:46:13 +03:00
row0vers.c (partially) Fix Bug#55227 Fix compiler warnings in innodb with gcc 4.6 2010-09-14 14:50:13 +03:00