mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Fixed BUG#6600: Stored procedure crash after repeated calls with check table
mysql-test/r/sp.result: New test case for BUG#6600. mysql-test/t/sp.test: New test case for BUG#6600. sql/sp_head.cc: Added yet another multiple result set statement to the list. sql/sql_parse.cc: Have to invalidate SP caches in CHECK TABLE, or it will produce very strange results when called in SPs.
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
|
||||
#include "sp_head.h"
|
||||
#include "sp.h"
|
||||
#include "sp_cache.h"
|
||||
|
||||
#ifdef HAVE_OPENSSL
|
||||
/*
|
||||
@@ -3045,6 +3046,7 @@ unsent_create_error:
|
||||
goto error; /* purecov: inspected */
|
||||
thd->slow_command=TRUE;
|
||||
res = mysql_check_table(thd, first_table, &lex->check_opt);
|
||||
sp_cache_invalidate();
|
||||
break;
|
||||
}
|
||||
case SQLCOM_ANALYZE:
|
||||
|
||||
Reference in New Issue
Block a user