1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-31 22:22:30 +03:00
Files
mariadb/sql
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
..
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2007-07-12 00:55:40 +05:00
2006-12-31 01:02:27 +01:00
2007-01-31 00:06:42 +01:00
2006-12-31 01:02:27 +01:00
2007-11-05 20:18:22 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2008-04-10 15:55:37 -04:00
2006-12-23 20:17:15 +01:00
2008-07-11 04:51:58 +05:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2008-03-29 17:50:46 +02:00
2006-12-31 01:02:27 +01:00
2006-09-01 10:32:12 +02:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-23 20:17:15 +01:00
2008-08-26 13:32:43 +05:00
2006-12-31 01:02:27 +01:00
2008-03-18 16:38:12 +04:00
2006-12-31 01:02:27 +01:00
2006-12-23 20:17:15 +01:00
2006-12-23 20:17:15 +01:00
2008-10-02 13:10:06 +05:00
2008-01-23 13:26:41 -07:00
2006-12-23 20:17:15 +01:00
2007-07-05 18:24:48 +03:00
2006-12-23 20:17:15 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2007-07-01 15:33:28 -07:00
2006-12-23 20:17:15 +01:00
2006-12-31 01:02:27 +01:00
2008-09-16 13:16:41 +02:00
2007-03-22 20:32:07 +02:00
2006-12-23 20:17:15 +01:00
2007-07-01 15:33:28 -07:00