1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-6400: "ANALYZE SELECT ... INTO @var" doesn't set @var

Make ANALYZE work for
- ANALYZE SELECT ... INTO @var
- ANALYZE INSERT SELECT ...;
- ANALYZE SELECT .. INTO OUTFILE
This commit is contained in:
Sergei Petrunia
2014-10-17 14:18:10 +04:00
parent fec5ab5a56
commit d44dd54bc8
6 changed files with 82 additions and 10 deletions

View File

@@ -2710,7 +2710,7 @@ bool select_to_file::send_eof()
if (mysql_file_close(file, MYF(MY_WME)) || thd->is_error())
error= true;
if (!error)
if (!error && !suppress_my_ok)
{
::my_ok(thd,row_count);
}
@@ -3786,11 +3786,14 @@ bool select_dumpvar::send_eof()
if (thd->is_error())
return true;
::my_ok(thd,row_count);
if (!suppress_my_ok)
::my_ok(thd,row_count);
return 0;
}
bool
select_materialize_with_stats::
create_result_table(THD *thd_arg, List<Item> *column_types,