Bug #577: incorect sort using order by - Mailing list pgsql-bugs

From [email protected]
Subject Bug #577: incorect sort using order by
Date
Msg-id [email protected]
Whole thread Raw
Responses Re: Bug #577: incorect sort using order by
List pgsql-bugs
Christophe RIMBAUD ([email protected]) reports a bug with a severity of 2
The lower the number the more severe it is.

Short Description
incorect sort using order by

Long Description
I have a problem with the order by command.
The column is in CHAR,
for example :
table WAPI (wapinom CHAR(6));

select wapinom from wapi order by wapinom ;
 wapinom
----------
 ACTI-ACC
 ACTI-CRE
 ACTIGINT
 ACTI-MOD
 ACTI-SUP
 ACTU-CRE
 ACTUGINT
 ACTU-INL

my question : why 'ACTIGINT' is after 'ACTI-CRE'. Under Oracle 'ACTIGINT' is after 'ACTI-SUP' that's better.
I'm about to transform a big piece of oracle code to postgres and this bug is very annoyance for me .

Thanks in advance

Chris


Sample Code


No file was uploaded with this report

pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Bug #576: Can not compile IRIX + GCC
Next
From: Luis Amigo
Date:
Subject: Re: Bug #576: Can not compile IRIX + GCC