• evgen@sunlight.local's avatar
    Fixed bug#21261: Wrong access rights was required for an insert into a view · dd9a0770
    evgen@sunlight.local authored
    SELECT right instead of INSERT right was required for an insert into to a view.
    This wrong behaviour appeared after the fix for bug #20989. Its intention was
    to ask only SELECT right for all tables except the very first for a complex
    INSERT query. But that patch has done it in a wrong way and lead to asking 
    a wrong access right for an insert into a view.
    
    The setup_tables_and_check_access() function now accepts two want_access
    parameters. One will be used for the first table and the second for other
    tables.
    dd9a0770
sql_update.cc 45.3 KB