Re: CURRENT_USER

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: thiemo <thiemo(at)gmx(dot)ch>
Cc: pgNovice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: CURRENT_USER
Date: 2002-03-30 04:13:17
Message-ID: 810.1017461597@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

thiemo <thiemo(at)gmx(dot)ch> writes:
> WHERE usr =3D CURRENT_USER
> but the following error is returned.
> ERROR: Unable to identify an operator '=3D' for types 'character varying'=
> =20
> and 'name'. You will have to retype this query using an explicit cast.

Hmm... probably there should be an implicit conversion from NAME to TEXT
.. but in the meantime try

WHERE usr = CURRENT_USER::varchar

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message thiemo 2002-03-30 09:19:08 Strange insert
Previous Message thiemo 2002-03-30 02:02:26 CURRENT_USER