mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
maria-10.0.16 merge
bzr merge -r4588 maria/10.0
This commit is contained in:
@ -4312,7 +4312,7 @@ fill_schema_table_by_open(THD *thd, bool is_show_fields_or_keys,
|
||||
Again we don't do this for SHOW COLUMNS/KEYS because
|
||||
of backward compatibility.
|
||||
*/
|
||||
if (!is_show_fields_or_keys && result && thd->is_error() &&
|
||||
if (!is_show_fields_or_keys && result &&
|
||||
(thd->get_stmt_da()->sql_errno() == ER_NO_SUCH_TABLE ||
|
||||
thd->get_stmt_da()->sql_errno() == ER_WRONG_OBJECT))
|
||||
{
|
||||
@ -5319,12 +5319,11 @@ err:
|
||||
column with the error text, and clear the error so that the operation
|
||||
can continue.
|
||||
*/
|
||||
const char *error= thd->is_error() ? thd->get_stmt_da()->message() : "";
|
||||
const char *error= thd->get_stmt_da()->message();
|
||||
table->field[20]->store(error, strlen(error), cs);
|
||||
|
||||
push_warning(thd, Sql_condition::WARN_LEVEL_WARN,
|
||||
thd->get_stmt_da()->sql_errno(),
|
||||
thd->get_stmt_da()->message());
|
||||
thd->get_stmt_da()->sql_errno(), error);
|
||||
thd->clear_error();
|
||||
}
|
||||
|
||||
@ -8118,12 +8117,13 @@ bool get_schema_tables_result(JOIN *join,
|
||||
THD *thd= join->thd;
|
||||
LEX *lex= thd->lex;
|
||||
bool result= 0;
|
||||
const char *old_proc_info;
|
||||
PSI_stage_info org_stage;
|
||||
DBUG_ENTER("get_schema_tables_result");
|
||||
|
||||
Warnings_only_error_handler err_handler;
|
||||
thd->push_internal_handler(&err_handler);
|
||||
old_proc_info= thd_proc_info(thd, "Filling schema table");
|
||||
thd->enter_stage(&stage_filling_schema_table, &org_stage, __func__, __FILE__,
|
||||
__LINE__);
|
||||
|
||||
JOIN_TAB *tab;
|
||||
for (tab= first_linear_tab(join, WITHOUT_BUSH_ROOTS, WITH_CONST_TABLES);
|
||||
@ -8227,7 +8227,7 @@ bool get_schema_tables_result(JOIN *join,
|
||||
}
|
||||
else if (result)
|
||||
my_error(ER_UNKNOWN_ERROR, MYF(0));
|
||||
thd_proc_info(thd, old_proc_info);
|
||||
THD_STAGE_INFO(thd, org_stage);
|
||||
DBUG_RETURN(result);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user