1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fixed a bug that caused crashes for SHOW CREATE VIEW <view> when <view> was recursive. Added a test case to check the fix.

This commit is contained in:
Galina Shalygina
2016-05-14 23:33:50 +03:00
parent d9b332bd20
commit 3b47632bfc
4 changed files with 72 additions and 16 deletions

View File

@ -205,13 +205,13 @@ select_union_recursive::create_result_table(THD *thd_arg,
{
if (select_union::create_result_table(thd_arg, column_types,
is_union_distinct, options,
alias, bit_fields_as_long,
"", bit_fields_as_long,
create_table, keep_row_order))
return true;
if (! (incr_table= create_tmp_table(thd_arg, &tmp_table_param, *column_types,
(ORDER*) 0, false, 1,
options, HA_POS_ERROR, alias,
options, HA_POS_ERROR, "",
!create_table, keep_row_order)))
return true;