• unknown's avatar
    Bug #30468: column level privileges not respected when joining tables · 66f13d91
    unknown authored
    When expanding a * in a USING/NATURAL join the check for table access
    for both tables in the join was done using the grant information of the
    first one.
    Fixed by getting the grant information for the current table while 
    iterating through the columns of the join.
    
    
    mysql-test/r/grant2.result:
      Bug #30468: test case
    mysql-test/t/grant2.test:
      Bug #30468: test case
    sql/sql_acl.cc:
      Bug #30468: correctly check column grants
    sql/sql_acl.h:
      Bug #30468: correctly check column grants
    sql/sql_base.cc:
      Bug #30468: correctly check column grants
    sql/sql_insert.cc:
      Bug #30468: correctly check column grants
    66f13d91
grant2.test 19.5 KB