diff options
author | unknown <gluh@mysql.com/eagle.(none)> | 2007-02-12 16:06:14 +0400 |
---|---|---|
committer | unknown <gluh@mysql.com/eagle.(none)> | 2007-02-12 16:06:14 +0400 |
commit | 2572c82621b04cb852b29736f835bcb204f5bfc0 (patch) | |
tree | 56268dc0683afe8350e827428cb1e5ed709d579b /mysys/my_pthread.c | |
parent | 1932ac9aae05e16de322530f5215cd9b6c3f9fb3 (diff) | |
download | mariadb-git-2572c82621b04cb852b29736f835bcb204f5bfc0.tar.gz |
Bug#24630 Subselect query crashes mysqld
The crash happens because second filling of the same I_S table happens in
case of subselect with order by. table->sort.io_cache previously allocated
in create_sort_index() is deleted during second filling
(function get_schema_tables_result). There are two places where
I_S table can be filled: JOIN::exec and create_sort_index().
To fix the bug we should check if the table was already filled
in one of these places and skip processing of the table in second.
mysql-test/r/information_schema.result:
test case
mysql-test/t/information_schema.test:
test case
sql/mysql_priv.h:
added new parameter 'executed_place' to function get_schema_tables_result()
sql/sql_select.cc:
added new parameter 'executed_place' to function get_schema_tables_result()
sql/sql_show.cc:
added more accurate check for cases when we need to refresh I_S table
sql/table.cc:
added more accurate check for cases when we need to refresh I_S table
sql/table.h:
added more accurate check for cases when we need to refresh I_S table
Diffstat (limited to 'mysys/my_pthread.c')
0 files changed, 0 insertions, 0 deletions