1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-31 22:22:30 +03:00
Files
mariadb/mysql-test/t
Gleb Shchepa c411a11e5c Bug #39844: Query Crash Mysql Server 5.0.67
Server crashed during a sort order optimization
of a dependent subquery:

SELECT
    (SELECT t1.a FROM t1, t2
      WHERE t1.a = t2.b AND t2.a = t3.c
      ORDER BY t1.a)
  FROM t3;


Bitmap of tables, that the reference to outer table
column uses, in addition to the regular table bit
has the OUTER_REF_TABLE_BIT bit set.
The only_eq_ref_tables function traverses this map
bit by bit simultaneously with join->map2table list.
Obviously join->map2table never contains an entry
for the OUTER_REF_TABLE_BIT pseudo-table, so the
server crashed there.


The only_eq_ref_tables function has been modified
to traverse regular table bits only like the
update_depend_map function (resetting of the
OUTER_REF_TABLE_BIT there is enough, but
resetting of the whole set of PSEUDO_TABLE_BITS
is used there for sure).
2008-10-16 21:37:17 +05:00
..
2007-08-29 12:44:43 +02:00
2008-01-27 16:41:29 +01:00
2007-11-06 20:31:40 +02:00
2007-08-07 05:35:20 -04:00
2007-06-28 16:03:01 -07:00
2007-06-28 16:03:01 -07:00
2007-07-06 11:35:10 -07:00
2007-07-06 11:35:10 -07:00
2007-11-24 15:02:29 +04:00
2008-03-27 09:37:20 -03:00
2007-07-11 18:45:35 -07:00
2007-06-21 21:39:52 -04:00
2007-11-02 13:40:34 +03:00
2007-11-02 13:40:34 +03:00
2007-08-31 16:59:07 +05:00
2007-08-31 16:59:07 +05:00
2007-11-05 20:18:22 +01:00
2007-10-26 08:42:33 +02:00
2008-01-27 16:41:29 +01:00
2007-11-05 20:18:22 +01:00
2008-01-22 14:18:47 +01:00
2007-11-20 20:15:20 +04:00
2007-11-30 18:06:28 +01:00
2008-08-22 19:49:51 +02:00
2008-04-04 01:16:55 +04:00
2008-04-04 01:16:55 +04:00
2007-09-24 12:42:44 +02:00
2007-08-22 15:43:16 +03:00
2007-06-06 18:55:21 +05:00
2008-07-26 13:44:07 -07:00
2007-04-17 12:32:01 +02:00
2007-07-22 18:26:16 -07:00
2008-03-14 20:51:32 +01:00
2007-07-15 21:51:36 +04:00
2007-06-03 14:46:09 +04:00
2008-06-27 20:56:41 +05:00
2008-03-26 22:43:12 +04:00
2008-02-07 02:33:21 +04:00
2007-04-23 17:15:51 +03:00