Re: [BUGS] 7.4: CHAR padding inconsistency

2003-11-22 Thread Troels Arvin
On Wed, 19 Nov 2003 14:50:24 -0500, Bruce Momjian wrote: > Anyway, what did you want it to output? "AAA hey"? We could do > that, but I assume most people wouldn't expect that output? I certainly depends on their background. Personally, the padding characteristics of the CHAR type was one

Re: [BUGS] 7.4: CHAR padding inconsistency

2003-11-19 Thread William ZHANG
Bruce said: > How do other databases handle this? I have tried on MS SQL Server 2000 and Oracle 9i for Windows. SQL Server doesn't like character_length and || , so use len and + instead. Oracle doesn't like character_length either, use length. Hope the result may help. create table chartest(col

Re: [BUGS] 7.4: CHAR padding inconsistency

2003-11-19 Thread Bruce Momjian
Troels Arvin wrote: > Hello, > > I read about the padding-of-CHAR-values changes in the release notes for > 7.4. > > Making PostgreSQL less standard compliant is sad; I also disagree > with the statement that trimming of trailing white-space is what people > expect. > > What's worse, and this ma

[BUGS] 7.4: CHAR padding inconsistency

2003-11-19 Thread Troels Arvin
Hello, I read about the padding-of-CHAR-values changes in the release notes for 7.4. Making PostgreSQL less standard compliant is sad; I also disagree with the statement that trimming of trailing white-space is what people expect. What's worse, and this may be classified as an error: create tab