X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id ABE973A4929 for ; Fri, 19 Nov 2004 05:51:01 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 75492-05 for ; Fri, 19 Nov 2004 05:50:52 +0000 (GMT) Received: from stark.xeocode.com (gsstark.mtl.istop.com [66.11.160.162]) by svr1.postgresql.org (Postfix) with ESMTP id 97C083A490F for ; Fri, 19 Nov 2004 05:50:52 +0000 (GMT) Received: from localhost ([127.0.0.1] helo=stark.xeocode.com) by stark.xeocode.com with smtp (Exim 3.36 #1 (Debian)) id 1CV1f9-0005Qy-00; Fri, 19 Nov 2004 00:50:27 -0500 To: "Thomas F.O'Connell" Cc: Nick Peters , pgsql-sql@postgresql.org Subject: Re: Comparing Dates References: <419D0DC6.5080504@candoltd.com> In-Reply-To: From: Greg Stark Organization: The Emacs Conspiracy; member since 1992 Date: 19 Nov 2004 00:50:26 -0500 Message-ID: <87y8gy2xr1.fsf@stark.xeocode.com> Lines: 15 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/184 X-Sequence-Number: 19503 "Thomas F.O'Connell" writes: > select 2004-06-08; > ?column? > ---------- > 1990 > > I'm not exactly sure how the bare string is converted internally, but it's > clearly not a complete date like you're expecting. What string? That's just integer arithmetic. -- greg