1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-28 13:01:41 +03:00
Satya B 882535423d Fix for Bug #41597 - After rename of user, there are additional grants when
grants are reapplied.


After renaming a user and trying to re-apply grants results in additional
grants.

This is because we use username as part of the key for GRANT_TABLE structure.
When the user is renamed, we only change the username stored and the hash key
still contains the old user name and this results in the extra privileges

Fixed by rebuilding the hash key and updating the column_priv_hash structure
when the user is renamed

mysql-test/r/grant3.result:
  Bug #41597 - After rename of user, there are additional grants when 
               grants are reapplied.
  
  Testcase for BUG#41597
mysql-test/t/grant3.test:
  Bug #41597 - After rename of user, there are additional grants when 
               grants are reapplied.
  
  Testcase for BUG#41597
sql/sql_acl.cc:
  Bug #41597 - After rename of user, there are additional grants when 
               grants are reapplied.
  
  Fixed handle_grant_struct() to update the hash key when the user is renamed.
  Added to set_user_details() method to GRANT_NAME class
2009-10-20 11:47:57 +05:30
..
2009-05-31 20:10:59 +08:00
2007-11-06 20:31:40 +02:00
2007-12-13 15:47:23 +04:00
2007-10-19 17:07:08 +02:00
2007-06-28 16:03:01 -07:00
2007-07-06 11:35:10 -07:00
2007-07-06 11:35:10 -07:00
2009-02-06 18:25:08 +01:00
2007-07-23 23:35:43 -07:00
2007-06-07 20:25:22 +02:00
2007-07-11 18:45:35 -07:00
2007-11-02 13:40:34 +03:00
2009-05-28 16:19:49 +05:00
2007-08-31 16:59:07 +05:00
2007-10-26 08:42:33 +02:00
2008-01-27 16:41:29 +01:00
2007-11-05 20:18:22 +01:00
2007-11-20 20:15:20 +04:00
2009-02-27 18:07:58 +02:00
2009-02-27 16:11:15 +02:00
2007-11-30 18:06:28 +01:00
2008-04-04 01:16:55 +04:00
2009-04-28 05:19:13 +05:00
2007-06-06 18:55:21 +05:00
2008-08-26 14:21:07 +05:00
2007-04-17 12:32:01 +02:00
2008-03-14 20:51:32 +01:00