mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge branch '10.1' into 10.2
This commit is contained in:
@ -2351,7 +2351,8 @@ static int show_create_view(THD *thd, TABLE_LIST *table, String *buff)
|
||||
We can't just use table->query, because our SQL_MODE may trigger
|
||||
a different syntax, like when ANSI_QUOTES is defined.
|
||||
*/
|
||||
table->view->unit.print(buff, QT_ORDINARY);
|
||||
table->view->unit.print(buff, enum_query_type(QT_ORDINARY |
|
||||
QT_ITEM_ORIGINAL_FUNC_NULLIF));
|
||||
|
||||
if (table->with_check != VIEW_CHECK_NONE)
|
||||
{
|
||||
@ -4342,7 +4343,7 @@ uint get_table_open_method(TABLE_LIST *tables,
|
||||
|
||||
@retval FALSE No error, if lock was obtained TABLE_LIST::mdl_request::ticket
|
||||
is set to non-NULL value.
|
||||
@retval TRUE Some error occured (probably thread was killed).
|
||||
@retval TRUE Some error occurred (probably thread was killed).
|
||||
*/
|
||||
|
||||
static bool
|
||||
@ -4450,7 +4451,7 @@ static int fill_schema_table_from_frm(THD *thd, TABLE_LIST *tables,
|
||||
if (try_acquire_high_prio_shared_mdl_lock(thd, &table_list, can_deadlock))
|
||||
{
|
||||
/*
|
||||
Some error occured (most probably we have been killed while
|
||||
Some error occurred (most probably we have been killed while
|
||||
waiting for conflicting locks to go away), let the caller to
|
||||
handle the situation.
|
||||
*/
|
||||
@ -5061,7 +5062,10 @@ static int get_schema_tables_record(THD *thd, TABLE_LIST *tables,
|
||||
HA_STATUS_TIME |
|
||||
HA_STATUS_VARIABLE_EXTRA |
|
||||
HA_STATUS_AUTO)) != 0)
|
||||
{
|
||||
file->print_error(info_error, MYF(0));
|
||||
goto err;
|
||||
}
|
||||
|
||||
enum row_type row_type = file->get_row_type();
|
||||
switch (row_type) {
|
||||
|
Reference in New Issue
Block a user