1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00
Files
mariadb/mysql-test/t
Sergey Vojtovich a7de205747 BUG#46961 - archive engine loses rows during self joining select!
SELECT with join (not only self-join) from archive table may
return incomplete result set, when result set size exceeds
join buffer size.

The problem was that archive row counter was initialzed too
early, when ha_archive::info() method was called. Later,
when optimizer exceeds join buffer, it attempts to reuse
handler without calling ha_archive::info() again (which is
correct).

Fixed by moving row counter initialization from
ha_archive::info() to ha_archive::rnd_init().

mysql-test/r/archive.result:
  A test case for BUG#46961.
mysql-test/t/archive.test:
  A test case for BUG#46961.
storage/archive/ha_archive.cc:
  Since a cursor may get reused without a call to ::info(),
  move assignment of scan_rows to a proper place, that is
  ::rnd_init().
2009-09-04 12:29:18 +05:00
..
2009-08-20 14:30:59 +02:00
2009-02-09 22:00:15 +01:00
2009-02-09 22:00:15 +01:00
2009-06-25 13:44:50 +05:00
2009-06-25 13:44:50 +05:00
2008-12-23 18:21:01 +04:00
2008-11-21 17:32:45 +04:00
2009-03-11 14:29:59 +02:00
2009-07-15 15:43:45 +05:30
2009-03-27 10:18:06 +08:00
2008-09-05 13:36:02 +05:00
2009-02-06 18:25:08 +01:00
2009-05-13 23:39:35 +05:00
2009-01-23 13:22:05 +01:00
2009-04-29 07:59:10 +05:00
2009-02-26 18:17:06 +01:00
2009-01-16 17:38:38 +02:00
2009-05-06 15:00:14 +05:30
2009-07-24 16:09:35 +04:00
2009-04-09 14:38:50 +05:00
2008-10-06 08:37:52 -04:00
2008-10-23 21:27:09 +02:00
2009-01-23 13:22:05 +01:00
2009-02-09 22:00:15 +01:00
2009-07-30 17:51:25 -07:00
2009-05-08 21:24:15 +04:00
2009-02-03 14:45:17 +01:00
2009-08-12 12:03:05 +02:00
2009-03-10 16:54:24 +01:00
2009-07-03 10:19:32 +02:00
2009-06-04 13:53:15 +02:00
2009-06-10 11:58:36 +03:00
2009-08-31 16:40:35 +03:00
2008-12-13 19:42:12 +00:00
2009-02-19 18:24:25 -05:00
2008-12-09 17:31:22 +04:00
2009-01-13 15:04:28 +01:00
2009-01-31 02:08:41 +01:00
2009-05-15 12:11:07 +05:00
2009-05-10 21:20:35 +05:00
2009-08-31 17:09:09 +03:00
2009-07-06 11:55:53 +05:00
2009-02-12 11:52:01 +02:00