How do I find the current username a query is running as from within the
backend?  I'm thinking of improving the permission denied errors a bit...

I see GetUserId(), but how do I get a char* of the username...

Chris


Thu, 1 Aug 2002 10:09:11 +0800
"Christopher Kings-Lynne" <chriskl@familyhealth.com.au>
Question
On Thu, Aug 01, 2002 at 10:09:11AM +0800, Christopher Kings-Lynne wrote:
> How do I find the current username a query is running as from within the
> backend?  I'm thinking of improving the permission denied errors a bit...
> 
> I see GetUserId(), but how do I get a char* of the username...

Checking the code for current_user, I see GetUserName(), which takes a
UserID and returns the username, as a char *.

Ross

Tue, 6 Aug 2002 22:15:14 -0500
"Ross J. Reedstrom" <reedstrm@rice.edu>
Re: Question