• unknown's avatar
    Ensure that privileges are tested properly for multi-table-updates. · 2cf47972
    unknown authored
    Now one need only SELECT privilege for tables that are only read in
    UPDATE statements with many tables. (Bug #2377).
    
    
    sql/sql_acl.cc:
      Comment cleanup
    sql/sql_parse.cc:
      Merged duplicate code.
      Removed some outdated 'tables->db' tests.
      Check privileges for multi-updates properly (Bug #2377)
    sql/sql_show.cc:
      Remove disabled code
    sql/sql_update.cc:
      Ensure that privileges are tested properly for multi-table-updates
    tests/grant.pl:
      Added more tests
    tests/grant.res:
      updated results
    2cf47972
grant.pl 26.7 KB