[prev in list] [next in list] [prev in thread] [next in thread] 

List:       monetdb-checkins
Subject:    MonetDB: default - Use the right type
From:       Pedro Ferreira <commits+pedro.ferreira=monetdbsolutions.com () monetdb ! org>
Date:       2020-12-28 8:38:27
Message-ID: hg.de74032b8b47.1609144707.6315528441665844383 () monetdb-vm0 ! spin-off ! cwi ! nl
[Download RAW message or body]

Changeset: de74032b8b47 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=de74032b8b47
Modified Files:
	sql/backends/monet5/sql_user.c
Branch: default
Log Message:

Use the right type


diffs (21 lines):

diff --git a/sql/backends/monet5/sql_user.c b/sql/backends/monet5/sql_user.c
--- a/sql/backends/monet5/sql_user.c
+++ b/sql/backends/monet5/sql_user.c
@@ -35,7 +35,7 @@ monet5_drop_user(ptr _mvc, str user)
 	str err;
 	Client c = MCgetClient(m->clientid);
 
-	int grant_user = c->user;
+	oid grant_user = c->user;
 	c->user = MAL_ADMIN;
 	err = AUTHremoveUser(c, user);
 	c->user = grant_user;
@@ -164,7 +164,7 @@ monet5_create_user(ptr _mvc, str user, s
 		pwd = passwd;
 	}
 	/* add the user to the M5 authorisation administration */
-	int grant_user = c->user;
+	oid grant_user = c->user;
 	c->user = MAL_ADMIN;
 	ret = AUTHaddUser(&uid, c, user, pwd);
 	c->user = grant_user;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic