Question

Started by Christopher Kings-Lynneover 23 years ago2 messages
#1Christopher Kings-Lynne
chriskl@familyhealth.com.au

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

#2Ross J. Reedstrom
reedstrm@rice.edu
In reply to: Christopher Kings-Lynne (#1)
Re: 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