Re: string function - "format" function proposal

Поиск
Список
Период
Сортировка
От Itagaki Takahiro
Тема Re: string function - "format" function proposal
Дата
Msg-id AANLkTimb16DnN=KUDGHtzrv5FszQEHwVLpZ9dQNtb5KQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: string function - "format" function proposal  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: string function - "format" function proposal  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: string function - "format" function proposal  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Mon, Sep 6, 2010 at 10:47 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> No, you need to use the I/O functions.  Not every type is guaranteed to
> have a cast to text.

One issue is that Pavel want to generate valid SQL statement using
%v format. Boolean values are printed as t or f, so the unquoted
values are not valid syntax.

If we only use output functions, boolean values should be written as
't' or 'f' (single-quoted), Only numeric values can be unquoted on %v.

--
Itagaki Takahiro


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: git: uh-oh
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: string function - "format" function proposal