mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
BUG#10713 mysqldump includes database in create view and referenced tables
- Update test results - Updates after review
This commit is contained in:
@ -1050,12 +1050,12 @@ view_store_create_info(THD *thd, TABLE_LIST *table, String *buff)
|
||||
- if user has db of this view as current db
|
||||
- if this view only references table inside it's own db
|
||||
*/
|
||||
if(strcmp(thd->db, table->view_db.str))
|
||||
if (!thd->db || strcmp(thd->db, table->view_db.str))
|
||||
table->compact_view_format= FALSE;
|
||||
else
|
||||
{
|
||||
table->compact_view_format= TRUE;
|
||||
TABLE_LIST *tbl;
|
||||
table->compact_view_format= TRUE;
|
||||
for (tbl= thd->lex->query_tables;
|
||||
tbl;
|
||||
tbl= tbl->next_global)
|
||||
|
Reference in New Issue
Block a user