summaryrefslogtreecommitdiff
path: root/sql/sql_acl.h
diff options
context:
space:
mode:
authorunknown <serg@sergbook.mylan>2003-06-23 12:48:55 +0200
committerunknown <serg@sergbook.mylan>2003-06-23 12:48:55 +0200
commit09c7b48d43b13d7e292b79b8abd2ed2a1490715f (patch)
treef9d192454e96b682cabf9c8c78d6e213952992d9 /sql/sql_acl.h
parentaee336f42dd19232a5a1bc37d9d617284dd479b4 (diff)
downloadmariadb-git-09c7b48d43b13d7e292b79b8abd2ed2a1490715f.tar.gz
fixed bug in references column grants
BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
Diffstat (limited to 'sql/sql_acl.h')
-rw-r--r--sql/sql_acl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_acl.h b/sql/sql_acl.h
index 1d074fe6001..f3fdf950a12 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) & COL_ACLS) | ((A & ~COL_ACLS) << 7))
-#define get_rights_for_column(A) (((A) & COL_ACLS) | ((A & ~COL_ACLS) >> 7))
+#define fix_rights_for_column(A) (((A) & 7) | (((A) & ~7) << 7))
+#define get_rights_for_column(A) (((A) & 7) | (((A) & ~7) >> 7))
/* prototypes */