1
0
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:
msvensson@neptunus.(none)
2005-09-13 12:43:43 +02:00
parent d612caf39a
commit 8a296476c0
8 changed files with 72 additions and 41 deletions

View File

@ -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)