Commit 18829511 authored by monty@mysql.com's avatar monty@mysql.com

Clear variable

parent a3436bd7
drop database if exists mysqltest;
drop view if exists v1;
grant create view on test.* to test@localhost; grant create view on test.* to test@localhost;
show grants for test@localhost; show grants for test@localhost;
Grants for test@localhost Grants for test@localhost
......
# Can't test with embedded server # Can't test with embedded server
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings
drop database if exists mysqltest;
drop view if exists v1;
--enable_warnings
# simple test of grants # simple test of grants
grant create view on test.* to test@localhost; grant create view on test.* to test@localhost;
show grants for test@localhost; show grants for test@localhost;
......
...@@ -1175,7 +1175,7 @@ bool mysql_drop_view(THD *thd, TABLE_LIST *views, enum_drop_mode drop_mode) ...@@ -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) for (view= views; view; view= view->next_local)
{ {
TABLE_SHARE *share; TABLE_SHARE *share;
bool type; bool type= 0;
strxnmov(path, FN_REFLEN-1, mysql_data_home, "/", view->db, "/", strxnmov(path, FN_REFLEN-1, mysql_data_home, "/", view->db, "/",
view->table_name, reg_ext, NullS); view->table_name, reg_ext, NullS);
(void) unpack_filename(path, path); (void) unpack_filename(path, path);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment