Is this a BUG? Is there anyone has the same problem?

From: "jack" <datactrl(at)tpg(dot)com(dot)au>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: Is this a BUG? Is there anyone has the same problem?
Date: 2002-04-21 13:39:44
Message-ID: 001401c1e93a$00565f40$1400a8c0@jac
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message postgresql 2002-04-21 14:10:55 Re: accept AD35- 6FA9 -9515
Previous Message Stephan Szabo 2002-04-21 06:04:44 Re: Trying to get query to work