Re: cast bytea to text

Поиск
Список
Период
Сортировка
От Raymond O'Donnell
Тема Re: cast bytea to text
Дата
Msg-id 45E6D822.5070801@iol.ie
обсуждение исходный текст
Ответ на cast bytea to text  ("Willy-Bas Loos" <willybas@gmail.com>)
Список pgsql-general
Willy-Bas Loos wrote:

> ERROR: function decode(bytea, "unknown") does not exist
> SQL state: 42883
> Hint: No function matches the given name and argument types. You may
> need to
> add explicit type casts.
> Context: SQL function "bytea2text"

That's because the first parameter of decode() should be of type TEXT,
not bytea:

http://www.postgresql.org/docs/8.1/static/functions-binarystring.html#FUNCTIONS-BINARYSTRING-OTHER

Ray.

---------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
---------------------------------------------------------------

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

Предыдущее
От: Bill Moran
Дата:
Сообщение: Re: Please Help ! Error with Access 2003
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: [HACKERS] urgent: upgraded to 8.2, getting kernel panics