Is this a BUG? Is there anyone has the same problem? - Mailing list pgsql-sql

From jack
Subject Is this a BUG? Is there anyone has the same problem?
Date
Msg-id 001401c1e93a$00565f40$1400a8c0@jac
Whole thread Raw
Responses Re: Is this a BUG? Is there anyone has the same problem?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
Providing there is simple table, called "test_xx", which has only one
column, called
"aa" CHAR(16), and the column is set as primary key. Put in some data such
as following.
( _ stands for a space character)

'AA_B'
'AAB'
'BB_123'
'BB123'

Execute following statement with psql.
SELECT * FROM test_xx ORDER BY aa;

I 've got ...

'AAB'
'AA_B'
'BB123'
'BB_123'

But if excute
SELECT subStr(aa, 1,4) FROM test_xx ORDER BY aa;
I've got ..

'AA_B'
'AAB'
BB_12'
BB123'

jack




pgsql-sql by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Trying to get query to work
Next
From: "postgresql"
Date:
Subject: Re: accept AD35- 6FA9 -9515