mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 10.6 into 10.7
This commit is contained in:
@ -2636,7 +2636,8 @@ static int show_create_view(THD *thd, TABLE_LIST *table, String *buff)
|
||||
tbl;
|
||||
tbl= tbl->next_global)
|
||||
{
|
||||
if (cmp(&table->view_db, tbl->view ? &tbl->view_db : &tbl->db))
|
||||
if (!tbl->is_derived() &&
|
||||
cmp(&table->view_db, tbl->view ? &tbl->view_db : &tbl->db))
|
||||
{
|
||||
table->compact_view_format= FALSE;
|
||||
break;
|
||||
@ -5102,7 +5103,8 @@ end:
|
||||
*/
|
||||
DBUG_ASSERT(thd->open_tables == NULL);
|
||||
thd->mdl_context.rollback_to_savepoint(open_tables_state_backup->mdl_system_tables_svp);
|
||||
thd->clear_error();
|
||||
if (!thd->is_fatal_error)
|
||||
thd->clear_error();
|
||||
return res;
|
||||
}
|
||||
|
||||
@ -5318,6 +5320,8 @@ int get_all_tables(THD *thd, TABLE_LIST *tables, COND *cond)
|
||||
error= 0;
|
||||
goto err;
|
||||
}
|
||||
if (thd->is_fatal_error)
|
||||
goto err;
|
||||
|
||||
DEBUG_SYNC(thd, "before_open_in_get_all_tables");
|
||||
if (fill_schema_table_by_open(thd, &tmp_mem_root, FALSE,
|
||||
@ -9061,7 +9065,7 @@ ST_FIELD_INFO columns_fields_info[]=
|
||||
Column("COLLATION_NAME", CSName(), NULLABLE, "Collation", OPEN_FRM_ONLY),
|
||||
Column("COLUMN_TYPE", Longtext(65535), NOT_NULL, "Type", OPEN_FRM_ONLY),
|
||||
Column("COLUMN_KEY", Varchar(3), NOT_NULL, "Key", OPEN_FRM_ONLY),
|
||||
Column("EXTRA", Varchar(30), NOT_NULL, "Extra", OPEN_FRM_ONLY),
|
||||
Column("EXTRA", Varchar(80), NOT_NULL, "Extra", OPEN_FRM_ONLY),
|
||||
Column("PRIVILEGES", Varchar(80), NOT_NULL, "Privileges", OPEN_FRM_ONLY),
|
||||
Column("COLUMN_COMMENT", Varchar(COLUMN_COMMENT_MAXLEN), NOT_NULL, "Comment",
|
||||
OPEN_FRM_ONLY),
|
||||
|
Reference in New Issue
Block a user