Re: CHAR(n) always trims trailing spaces in 7.4

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: CHAR(n) always trims trailing spaces in 7.4
Дата
Msg-id 18872.1077061249@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: CHAR(n) always trims trailing spaces in 7.4  (elein <elein@varlena.com>)
Ответы Re: CHAR(n) always trims trailing spaces in 7.4  (elein <elein@varlena.com>)
Re: CHAR(n) always trims trailing spaces in 7.4  ("scott.marlowe" <scott.marlowe@ihs.com>)
Список pgsql-sql
elein <elein@varlena.com> writes:
> This is an example of the problem.  It used to expand
> the middle thing to 15.

> elein=# select 'x' || ' '::char(15) || 'x';
>  ?column? 
> ----------
>  xx
> (1 row)

Still does, but then the spaces go away again when the value goes into
the concatenation, because concatenation is a text operator.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Return relation table data in a single value CSV
Следующее
От: elein
Дата:
Сообщение: Re: CHAR(n) always trims trailing spaces in 7.4