1
0
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:
gluh@gluh.mysql.r18.ru
2004-11-20 01:17:18 +03:00
parent bb20094e08
commit 15ada105ac
5 changed files with 226 additions and 137 deletions

View File

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