1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-4334 Enable Select Handler for queries run inside Stored Procedures

There is another session variable to enable/disable SH in SP
This commit is contained in:
Roman Nozdrin
2020-10-12 15:20:49 +00:00
parent 09ba586be2
commit 6ab1b829a0
3 changed files with 25 additions and 7 deletions

View File

@ -747,13 +747,8 @@ create_columnstore_select_handler(THD* thd, SELECT_LEX* select_lex)
// Check the session variable value to enable/disable use of
// select_handler
if (!get_select_handler(thd))
{
return handler;
}
// Disable SP support in the select_handler for now.
if ((thd->lex)->sphead)
if (!get_select_handler(thd) ||
((thd->lex)->sphead && !get_select_handler_in_stored_procedures(thd)))
{
return handler;
}