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

Поиск
Список
Период
Сортировка
Искать
От
scott.marlowe
Тема
Re: CHAR(n) always trims trailing spaces in 7.4
Дата
Msg-id
Pine.LNX.4.33.0402171706530.31955-100000@css120.ihs.com
Ответ на
Список
Дерево обсуждения
CHAR(n) always trims trailing spaces in 7.4 "news.postgresql.org" <jlim@natsoft.com.my>
Re: CHAR(n) always trims trailing spaces in 7.4 Tom Lane <tgl@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 Tom Lane <tgl@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 "scott.marlowe" <scott.marlowe@ihs.com>
Re: CHAR(n) always trims trailing spaces in 7.4 <terry@ashtonwoodshomes.com>
Re: CHAR(n) always trims trailing spaces in 7.4 Tom Lane <tgl@sss.pgh.pa.us>
Re: CHAR(n) always trims trailing spaces in 7.4 Richard Huxton <dev@archonet.com>
Re: CHAR(n) always trims trailing spaces in 7.4 Tom Lane <tgl@sss.pgh.pa.us>
Re: CHAR(n) always trims trailing spaces in 7.4 "Jeremy Smith" <jer@highboard.com>
Inserting NULL into Integer column "Jeremy Smith" <jer@highboard.com>
Re: Inserting NULL into Integer column "scott.marlowe" <scott.marlowe@ihs.com>
Re: Inserting NULL into Integer column "Jeremy Smith" <jer@highboard.com>
Re: Inserting NULL into Integer column "scott.marlowe" <scott.marlowe@ihs.com>
Re: Inserting NULL into Integer column Rod Taylor <pg@rbt.ca>
Re: Inserting NULL into Integer column "scott.marlowe" <scott.marlowe@ihs.com>
Re: Inserting NULL into Integer column Rod Taylor <pg@rbt.ca>
Re: Inserting NULL into Integer column "scott.marlowe" <scott.marlowe@ihs.com>
Re: Inserting NULL into Integer column "Jeremy Smith" <jer@highboard.com>
Re: Inserting NULL into Integer column "scott.marlowe" <scott.marlowe@ihs.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 Tom Lane <tgl@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 Tom Lane <tgl@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 Tom Lane <tgl@sss.pgh.pa.us>
On Tue, 17 Feb 2004, Tom Lane wrote:

> elein  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.

But then this:

select 'x'||' '||'x'

should produce xx, but it produces x x.


В списке pgsql-sql по дате отправления
От: elein
Дата:
От: Tom Lane
Дата:
FAQ