Commit 7f10ea43 authored by unknown's avatar unknown
Browse files

Clear variable


mysql-test/r/view_grant.result:
  Drop things that may be left from old runs
mysql-test/t/view_grant.test:
  Drop things that may be left from old runs
parent c5349d88
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
drop database if exists mysqltest;
drop view if exists v1;
grant create view on test.* to test@localhost;
show grants for test@localhost;
Grants for test@localhost
+6 −0
Original line number Diff line number Diff line
# Can't test with embedded server
-- source include/not_embedded.inc

--disable_warnings
drop database if exists mysqltest;
drop view if exists v1;
--enable_warnings


# simple test of grants
grant create view on test.* to test@localhost;
show grants for test@localhost;
+1 −1
Original line number Diff line number Diff line
@@ -1175,7 +1175,7 @@ bool mysql_drop_view(THD *thd, TABLE_LIST *views, enum_drop_mode drop_mode)
  for (view= views; view; view= view->next_local)
  {
    TABLE_SHARE *share;
    bool type;
    bool type= 0;
    strxnmov(path, FN_REFLEN-1, mysql_data_home, "/", view->db, "/",
             view->table_name, reg_ext, NullS);
    (void) unpack_filename(path, path);