Received: from jupiter.tzv.fal.de (jupiter.tzv.fal.de [192.108.34.1]) by hub.org (8.9.2/8.9.1) with ESMTP id CAA95951 for ; Tue, 9 Mar 1999 02:16:25 -0500 (EST) (envelope-from eg@salo.tzv.fal.de) Received: from salo.tzv.fal.de (eg@salo [192.108.34.39]) by jupiter.tzv.fal.de (8.8.5/8.7.3) with ESMTP id IAA08708 for ; Tue, 9 Mar 1999 08:16:20 +0100 (MET) Received: from [[UNIX: localhost]] ([[UNIX: localhost]]) by salo.tzv.fal.de (8.8.7/8.8.7) id IAA13700 for pgsql-interfaces@postgresql.org; Tue, 9 Mar 1999 08:16:19 +0100 From: Eildert Groeneveld Reply-To: eg@tzv.fal.de Organization: FAL To: "'pgsql-interfaces@postgresql.org'" Subject: Bug in sortin routine? Date: Tue, 9 Mar 1999 08:04:10 +0100 X-Mailer: KMail [version 1.0.16] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <9903090816180D.00675@salo.tzv.fal.de> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.org id CAA95952 Hello everyone, I am not sure if this is the appropriate mailing lists. But lets try anyway. It seems that the sorting order on dates is incorrect under certain circumstances: The query : select tdat from quick where empfang like 'HUK-COBURG VERS.-GRUPPE' and zweck like 'BEITRAG F. 300/338958-M PFLEGEPFLICHTVERSICHERUNG' and date_part ('year',tdat::datetime)=1997 order by tdat; produces: tdat ---------- 1997-01-04 1997-01-08 1997-01-09 1997-01-10 1997-01-12 1997-02-01 1997-02-05 1997-02-06 1997-02-07 1997-03-02 1997-03-03 1997-03-11 (12 rows) while this gives the correct sort order: select tdat from quick order by tdat; 1997-11-26 1997-11-27 1997-11-27 1997-11-27 1997-11-28 1997-11-28 1997-11-28 1997-12-03 1997-12-05 1997-12-05 (just a section) any idea of what may be going on? set DateStyle to 'German'; (does not have an effect on the problem) postgresql-6.4.2-2 readhat 5.2 greetings Eildert Groeneveld ========================================= Institute for Animal Science and Animal Behaviour Mariensee 31535 Neustadt Germany Tel : (49)(0)5034 871155 Fax : (49)(0)5034 92579 www : http://www.tzv.fal.de/~eg/ e-mail: eg@tzv.fal.de =========================================