Re: [HACKERS] money or dollar type
От | Jose' Soares Da Silva |
---|---|
Тема | Re: [HACKERS] money or dollar type |
Дата | |
Msg-id | Pine.LNX.3.96.980513094736.474B-100000@proxy.bazzanese.com обсуждение исходный текст |
Ответ на | Re: [HACKERS] money or dollar type (Bruce Momjian <maillist@candle.pha.pa.us>) |
Ответы |
Re: [HACKERS] money or dollar type
|
Список | pgsql-hackers |
On Tue, 12 May 1998, Bruce Momjian wrote: > > prova=> select var as my_varchar from prova where var = '12'; > > my_varchar > > ---------- > > 12 <--right justified > > (1 row) > > > > prova=> select var as my_varchar from prova; > > my_varchar > > ---------- > > 12 <--left justified, this time ??? > > a12 > > a12 > > (3 rows) > > Jose' > > I can't reproduce this here. Seems that PostgreSQL justify data based on data not on data type. My environment is: PostgreSQL v6.3 Linux 2.0.33 also Daniel A. Gauthier <3in7ifi@cmich.edu> reported the same problem. here my script: create table prova ( my_varchar varchar ); CREATE insert into prova values ('12'); INSERT 528521 1 insert into prova values ('a12'); INSERT 528522 1 select * from prova where my_varchar = '12'; my_varchar ---------- 12 (1 row) select * from prova; my_varchar ---------- 12 a12 (2 rows) EOF Jose'
В списке pgsql-hackers по дате отправления: