Changeset: 5ad002126a6f for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/5ad002126a6f
Modified Files:
        monetdb5/mal/mal_authorize.c
Branch: userprofile
Log Message:

return username from cntxt (ie solves nested transactions)


diffs (14 lines):

diff --git a/monetdb5/mal/mal_authorize.c b/monetdb5/mal/mal_authorize.c
--- a/monetdb5/mal/mal_authorize.c
+++ b/monetdb5/mal/mal_authorize.c
@@ -791,6 +791,10 @@ AUTHresolveUser(str *username, oid uid)
 str
 AUTHgetUsername(str *username, Client cntxt)
 {
+       if (cntxt->username) {
+               *username = GDKstrdup(cntxt->username);
+               return(MAL_SUCCEED);
+       }
        if (authCallbackCntx.get_user_name && cntxt) {
                if ((*username = authCallbackCntx.get_user_name(cntxt)) == 
NULL) {
                        throw(MAL, "getUsername", INVCRED_WRONG_ID);
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to