diff options
author | monty@narttu.mysql.fi <> | 2003-06-23 20:03:59 +0300 |
---|---|---|
committer | monty@narttu.mysql.fi <> | 2003-06-23 20:03:59 +0300 |
commit | a51ea1114702efac99abd349e9dd2e0827af70b4 (patch) | |
tree | 31f9bf5794339dd4559001264cd2cc350877d76b /sql/sql_acl.h | |
parent | 3bd661a66f8eb14a71880f189303ad8e89f108b9 (diff) | |
download | mariadb-git-a51ea1114702efac99abd349e9dd2e0827af70b4.tar.gz |
SHOW GRANTS hided real grants when grants on both column and table (Bug 654)
Diffstat (limited to 'sql/sql_acl.h')
-rw-r--r-- | sql/sql_acl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_acl.h b/sql/sql_acl.h index f3fdf950a12..bf269e5a7e3 100644 --- a/sql/sql_acl.h +++ b/sql/sql_acl.h @@ -76,8 +76,8 @@ #define get_rights_for_db(A) (((A) & 63) | (((A) & DB_CHUNK1) >> 4) | (((A) & DB_CHUNK2) >> 6)) #define fix_rights_for_table(A) (((A) & 63) | (((A) & ~63) << 4)) #define get_rights_for_table(A) (((A) & 63) | (((A) & ~63) >> 4)) -#define fix_rights_for_column(A) (((A) & 7) | (((A) & ~7) << 7)) -#define get_rights_for_column(A) (((A) & 7) | (((A) & ~7) >> 7)) +#define fix_rights_for_column(A) (((A) & 7) | (((A) & ~7) << 8)) +#define get_rights_for_column(A) (((A) & 7) | ((A) >> 8)) /* prototypes */ |