mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
fixed bug of derived table in subselect
fixed bug in error handling mysql-test/r/subselect.result: test of error handling test of derived tables inside subselect mysql-test/t/subselect.test: test of error handling test of derived tables inside subselect sql/sql_class.cc: fixed error handling error sql/sql_lex.h: fifex layout sql/sql_parse.cc: fixed processing of derived tables sql/sql_select.cc: more quick abort on error
This commit is contained in:
@ -994,7 +994,8 @@ JOIN::exec()
|
||||
}
|
||||
having=having_list; // Actually a parameter
|
||||
thd->proc_info="Sending data";
|
||||
error=do_select(this, &fields_list, NULL, procedure);
|
||||
error= thd->net.report_error ||
|
||||
do_select(this, &fields_list, NULL, procedure);
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
||||
@ -1078,7 +1079,7 @@ mysql_select(THD *thd, TABLE_LIST *tables, List<Item> &fields, COND *conds,
|
||||
goto err;
|
||||
}
|
||||
|
||||
if (free_join && join->global_optimize())
|
||||
if (thd->net.report_error || (free_join && join->global_optimize()))
|
||||
goto err;
|
||||
|
||||
join->exec();
|
||||
|
Reference in New Issue
Block a user