• gkodinov@mysql.com's avatar
    Bug #20363: Create view on just created view is now denied · eb693dcc
    gkodinov@mysql.com authored
    There was a wrong determination of the DB name (witch is 
    not always the one in TABLE_LIST because derived tables
    may be calculated using temp tables that have their db name
    set to "").
    The fix determines the database name according to the type 
    of table reference, and calls the function check_access() 
    with the correct db name so the correct set of grants is found.
    eb693dcc
view_grant.test 22.6 KB