Re: Any functions to convert bit(5) to text?

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Any functions to convert bit(5) to text?
Дата
Msg-id 20050210073157.GA59824@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: Any functions to convert bit(5) to text?  (Michael Fuhr <mike@fuhr.org>)
Ответы Re: Any functions to convert bit(5) to text?  (Együd Csaba <csegyud@vnet.hu>)
Re: Any functions to convert bit(5) to text?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Thu, Feb 10, 2005 at 12:16:53AM -0700, Michael Fuhr wrote:
>
> SELECT textin(bit_out(b)) FROM foo;

Is it generally true that you can convert between types using the
above method, assuming compatible syntax?  That is, using the source
type's output function to get a cstring that you pass to the target
type's input function?  Are there any potential problems with doing
this?  Is that how the PL/pgSQL RETURN trick works?  It seems a
handy way to cast one type to another when no built-in cast or
function exists.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: Any functions to convert bit(5) to text?
Следующее
От: Együd Csaba
Дата:
Сообщение: Re: Any functions to convert bit(5) to text?