mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
changed field names, fields order according to WL description
fixed bug: "create view v7 as select * from information_schema.tables;" failed
This commit is contained in:
@ -283,7 +283,7 @@ bool mysql_create_view(THD *thd,
|
||||
/*
|
||||
Do we have more privileges on view field then underlying table field?
|
||||
*/
|
||||
if ((~fld->have_privileges & priv))
|
||||
if (!fld->field->table->tmp_table && (~fld->have_privileges & priv))
|
||||
{
|
||||
/* VIEW column has more privileges */
|
||||
my_error(ER_COLUMNACCESS_DENIED_ERROR, MYF(0),
|
||||
|
Reference in New Issue
Block a user