On Sun, Oct 18, 2015 at 04:08:06PM +0100, Ying Zhang wrote:
On Oct 18, 2015, at 14:30, Niels Nes commits@monetdb.org wrote:
Changeset: d1da7aeae75e for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d1da7aeae75e Modified Files: sql/server/sql_privileges.c Branch: Jul2015 Log Message:
fixed problem with table privileges
What’s the problem? The diff is easy to read, but what’s the symptom of the problem at, say, SQL level? Thanks!
Before we couldn't properly set (give rights) to a user. It skiped the first privilege (PRIV_SELECT).
Niels
Jennie
diffs (12 lines):
diff --git a/sql/server/sql_privileges.c b/sql/server/sql_privileges.c --- a/sql/server/sql_privileges.c +++ b/sql/server/sql_privileges.c @@ -467,7 +467,7 @@ sql_grantable_(mvc *m, int grantorid, in int priv;
(void) sub;
- for (priv = 1; priv < privs; priv <<= 1) {
- for (priv = 1; priv <= privs; priv <<= 1) { if (!(priv & privs)) continue; rid = table_funcs.column_find_row(m->session->tr, priv_obj, &obj_id, priv_auth, &grantorid, priv_priv, &priv, NULL);
checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list
developers-list mailing list developers-list@monetdb.org https://www.monetdb.org/mailman/listinfo/developers-list