mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Merge mysql.com:/home/hf/work/mrg/mysql-5.0-opt
into mysql.com:/home/hf/work/mrg/mysql-5.1-opt sql/sql_view.cc: Auto merged
This commit is contained in:
@@ -224,7 +224,9 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views,
|
|||||||
{
|
{
|
||||||
LEX *lex= thd->lex;
|
LEX *lex= thd->lex;
|
||||||
bool link_to_local;
|
bool link_to_local;
|
||||||
|
#ifndef NO_EMBEDDED_ACCESS_CHECKS
|
||||||
bool definer_check_is_needed= mode != VIEW_ALTER || lex->definer;
|
bool definer_check_is_needed= mode != VIEW_ALTER || lex->definer;
|
||||||
|
#endif
|
||||||
/* first table in list is target VIEW name => cut off it */
|
/* first table in list is target VIEW name => cut off it */
|
||||||
TABLE_LIST *view= lex->unlink_first_table(&link_to_local);
|
TABLE_LIST *view= lex->unlink_first_table(&link_to_local);
|
||||||
TABLE_LIST *tables= lex->query_tables;
|
TABLE_LIST *tables= lex->query_tables;
|
||||||
|
Reference in New Issue
Block a user