1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

view.result, view.test:

Added a test case for bug #6120.
sql_view.cc:
  Fixed bug #6120.
  The SP cache must be invalidated when a view is altered.
This commit is contained in:
igor@igor-inspiron.creware.com
2005-07-06 09:00:17 -07:00
parent 8b2f9e8f25
commit e5bd22ff06
3 changed files with 38 additions and 0 deletions

View File

@ -20,6 +20,7 @@
#include "parse_file.h"
#include "sp.h"
#include "sp_head.h"
#include "sp_cache.h"
#define MD5_BUFF_LENGTH 33
@ -141,6 +142,9 @@ bool mysql_create_view(THD *thd,
goto err;
}
if (mode != VIEW_CREATE_NEW)
sp_cache_invalidate();
#ifndef NO_EMBEDDED_ACCESS_CHECKS
/*
Privilege check for view creation: