Update of /cvsroot/monetdb/MonetDB5/src/modules/mal
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18653/modules/mal

Modified Files:
        clients.mx 
Log Message:
Allow to retrieve the username of the currently logged in user.  This helps me 
debugging quite a lot

Index: clients.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/modules/mal/clients.mx,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -d -r1.70 -r1.71
--- clients.mx  6 Nov 2007 23:25:42 -0000       1.70
+++ clients.mx  6 Dec 2007 10:23:09 -0000       1.71
@@ -456,6 +456,18 @@
 }
 
 @mal
+command getUsername():str
+address CLTgetUsername
+comment "Return the username of the currently logged in user";
[EMAIL PROTECTED]
+str CLTgetUsername(str *ret) {
+       str tmp;
+
+       rethrow("getUsername", tmp, AUTHgetUsername(ret));
+       return(MAL_SUCCEED);
+}
+
[EMAIL PROTECTED]
 command changeUsername(old:str, new:str):void
 address CLTchangeUsername
 comment "Change the username of the user into the new string";


-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to