1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-30 11:22:14 +03:00

Fix for BUG#8921: Make SHOW CREATE VIEW ignore temporary tables.

mysql-test/r/temp_table.result:
  Testcase for BUG#8921
mysql-test/t/temp_table.test:
  Testcase for BUG#8921
This commit is contained in:
unknown
2005-04-25 04:00:35 +04:00
parent c3e4d6a291
commit 85ef43b4d0
3 changed files with 45 additions and 0 deletions

View File

@@ -3010,6 +3010,10 @@ unsent_create_error:
goto error;
#else
{
/* Ignore temporary tables if this is "SHOW CREATE VIEW" */
if (lex->only_view)
first_table->skip_temporary= 1;
if (check_db_used(thd, all_tables) ||
check_access(thd, SELECT_ACL | EXTRA_ACL, first_table->db,
&first_table->grant.privilege, 0, 0))