Re: Customised Encoding

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Customised Encoding
Дата
Msg-id 200404271416.16156.dev@archonet.com
обсуждение исходный текст
Ответ на Customised Encoding  ("kumar" <sgnerd@yahoo.com.sg>)
Список pgsql-sql
On Tuesday 27 April 2004 13:55, kumar wrote:
> Hi Richar,

Kumar - try to make sure you reply to the list.

> It didnt work for me.
>
> select encode('65536'::bytea,'UTF-8')
> ERROR:  Cannot cast type integer to bytea
>
> select encode('65536'::bytea,'UTF-8')
> ERROR:  No such encoding as 'UTF-8'

I think you're using the encode() function wrongly. The second parameter is 
supposed to be something like "base64" or "hex". I'm not sure it makes sense 
to try and cast an integer to a bytea either.

Can you say what you're trying to achieve here?

--  Richard Huxton Archonet Ltd


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

Предыдущее
От: Achilleus Mantzios
Дата:
Сообщение: Re: How to get binary value for an Integer
Следующее
От: "Luiz Rafael Culik Guimaraes"
Дата:
Сообщение: query optimizer dont treat correctly OR