MonetDB: Jul2015 - fixed problem with table privileges

Ying Zhang Y.Zhang at cwi.nl
Sun Oct 18 17:08:06 CEST 2015


> On Oct 18, 2015, at 14:30, Niels Nes <commits at 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!

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 at monetdb.org
> https://www.monetdb.org/mailman/listinfo/checkin-list



More information about the developers-list mailing list