Re: [HACKERS] Is current_user a function ?

2002-11-29 Thread Masaru Sugawara
On 28 Nov 2002 11:34:49 -0500 Rod Taylor <[EMAIL PROTECTED]> wrote: > Force the system to use it as a function. > select "current_user"(); On Thu, 28 Nov 2002 17:20:59 -0500 Tom Lane <[EMAIL PROTECTED]> wrote: > > As for some current_*** functions, "select current_user;" seems to > > work, but

Re: [HACKERS] Is current_user a function ?

2002-11-28 Thread Tom Lane
Masaru Sugawara <[EMAIL PROTECTED]> writes: > As for some current_*** functions, "select current_user;" seems to > work, but "select current_user();" doesn't . Complain to the SQL spec authors --- they mandated this peculiar keyword syntax for what is really a function call.

Re: [HACKERS] Is current_user a function ?

2002-11-28 Thread Rod Taylor
Force the system to use it as a function. select "current_user"(); On Thu, 2002-11-28 at 11:31, Masaru Sugawara wrote: > Hi, > > As for some current_*** functions, "select current_user;" seems to > work, but "select current_user();" doesn't . Though current_user is > defined as one of functions

[HACKERS] Is current_user a function ?

2002-11-28 Thread Masaru Sugawara
Hi, As for some current_*** functions, "select current_user;" seems to work, but "select current_user();" doesn't . Though current_user is defined as one of functions, why does such an error occur ? renew=# select current_user(); ERROR: parser: parse error at or near "(" at character 20 Rega