Re: text(bool), text(numeric)

Поиск
Список
Период
Сортировка
От Karel Zak
Тема Re: text(bool), text(numeric)
Дата
Msg-id 20011128123124.D7597@zf.jcu.cz
обсуждение исходный текст
Ответ на Re: text(bool), text(numeric)  (Markus Bertheau <twanger@bluetwanger.de>)
Список pgsql-bugs
On Wed, Nov 28, 2001 at 12:00:44PM +0100, Markus Bertheau wrote:
> On Wed, 2001-11-28 at 11:24, Vicktor wrote:
> >  Why not exists functions for convert any type to text?
> >  I can't find text(bool), text(numeric) ...
>
> use type casting:
>
> select column::text from table
>
> after :: comes the type you want.

 I mean original questioner has other problem:

t=# SELECT 't'::bool::text;
ERROR:  Cannot cast type 'boolean' to 'text'
test=# SELECT '123'::numeric::text;
ERROR:  Cannot cast type 'numeric' to 'text'
test=#

        Karel
--
 Karel Zak  <zakkr@zf.jcu.cz>
 http://home.zf.jcu.cz/~zakkr/

 C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz

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

Предыдущее
От: Vicktor
Дата:
Сообщение: Re: text(bool), text(numeric)
Следующее
От: "TONY J.Y."
Дата:
Сообщение: Bug report.