• unknown's avatar
    Fix bug in checking of table-specific grats that caused IP/NETMASK · 4d3952e5
    unknown authored
    hostnames to not be matched correctly. (Bug #3309)
    
    
    sql/sql_acl.cc:
      Use an acl_host_or_ip in the GRANT_TABLE struct instead of storing the host
      itself, and use compare_hostname() in testing it. This adds support for IP
      addresses with netmasks to table-specific grants, and results in simplified
      code by making use of compare_hostname() in more places.
    mysql-test/r/grant2.result:
      Add new results
    mysql-test/t/grant2.test:
      Add new regression test
    4d3952e5
grant2.result 3.43 KB