1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

post-review cleanup

This commit is contained in:
Sergei Golubchik
2013-10-27 08:19:21 +01:00
parent e46eea8660
commit d5c9712225
5 changed files with 65 additions and 64 deletions

View File

@ -822,6 +822,10 @@ static int mysql_register_view(THD *thd, TABLE_LIST *view,
goto err;
}
/*
version 1 - before 10.0.5
version 2 - empty definer_host means a role
*/
view->file_version= 2;
view->calc_md5(md5);
if (!(view->md5.str= (char*) thd->memdup(md5, 32)))