Re: CURRENT_USER

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: CURRENT_USER
Дата
Msg-id 810.1017461597@sss.pgh.pa.us
обсуждение исходный текст
Ответ на CURRENT_USER  (thiemo <thiemo@gmx.ch>)
Список pgsql-novice
thiemo <thiemo@gmx.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

В списке pgsql-novice по дате отправления:

Предыдущее
От: thiemo
Дата:
Сообщение: CURRENT_USER
Следующее
От: thiemo
Дата:
Сообщение: Strange insert