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

subselect in procedure argument list (Bug #302)

This commit is contained in:
bell@sanja.is.com.ua
2003-04-23 22:31:47 +03:00
parent cba91cce8c
commit b9a4bf8cad
5 changed files with 51 additions and 0 deletions

View File

@ -3060,6 +3060,11 @@ mysql_execute_command(THD *thd)
uint smrx;
LINT_INIT(smrx);
if (tables && ((res= check_table_access(thd, SELECT_ACL, tables)) ||
(res= open_and_lock_tables(thd,tables))))
break;
fix_tables_pointers(lex->all_selects_list);
#ifndef EMBEDDED_LIBRARY
// When executing substatements, they're assumed to send_error when
// it happens, but not to send_ok.