1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-05 13:16:09 +03:00

Make tests pass

- Fix bad tests in statistics_json test: make them meaningful and make them
  work on windows
- Fix analyze_debug.test: correctly handle errors during ANALYZE
This commit is contained in:
Sergei Petrunia
2021-09-04 23:17:39 +03:00
parent e0f42d32e5
commit 223fa6a891
3 changed files with 8 additions and 19 deletions

View File

@@ -1045,7 +1045,8 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
else
compl_result_code= HA_ADMIN_FAILED;
free_statistics_for_table(thd, table->table);
if (table->table)
free_statistics_for_table(thd, table->table);
if (compl_result_code)
result_code= HA_ADMIN_FAILED;
else