1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

fixed do with subselects

mysql-test/r/subselect.result:
  test of DO with subselects
mysql-test/t/subselect.test:
  test of DO with subselects
This commit is contained in:
unknown
2003-01-03 17:08:00 +02:00
parent 3f4c4cbfdd
commit 2ca6d018d7
3 changed files with 27 additions and 3 deletions

View File

@@ -1598,7 +1598,14 @@ mysql_execute_command(THD *thd)
break;
}
case SQLCOM_DO:
res=mysql_do(thd, *lex->insert_list);
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);
res= mysql_do(thd, *lex->insert_list);
if (thd->net.report_error)
res= -1;
break;
case SQLCOM_EMPTY_QUERY: