X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 233974760E3 for ; Tue, 8 Apr 2003 07:09:40 -0400 (EDT) Received: from shield.pirmabanka.lv (unknown [195.114.57.4]) by postgresql.org (Postfix) with ESMTP id 8D38C4760CC for ; Tue, 8 Apr 2003 07:09:38 -0400 (EDT) Received: from wall2.pirmabanka.lv (wall2-pub.pirmabanka.lv [195.114.57.14]) by shield.pirmabanka.lv (8.12.9/8.12.9) with SMTP id h38B9ex0023327 for ; Tue, 8 Apr 2003 14:09:40 +0300 Received: from share.pirmabanka.lv ([10.0.0.10]) by wall2.pirmabanka.lv; Tue, 08 Apr 2003 14:09:39 +0300 (EET DST) Received: from pc311x1.pirmabanka.lv (localhost.localdomain [127.0.0.1]) by pirmabanka.lv (8.11.6/8.11.6) with SMTP id h38B9di16734 for ; Tue, 8 Apr 2003 14:09:39 +0300 Received: (qmail 13054 invoked by uid 100); 8 Apr 2003 11:09:58 -0000 Date: Tue, 8 Apr 2003 14:09:58 +0300 From: "Victor Yegorov" To: "Rudi Starcevic" Cc: pgsql-sql@postgresql.org Subject: Re: CASE Message-ID: <20030408110958.GX1712@pirmabanka.lv> Mail-Followup-To: "Rudi Starcevic" , pgsql-sql@postgresql.org References: <3E928853.7090801@oasis.net.au> <20030408094039.GS1712@pirmabanka.lv> <20030408105759.M33127@oasis.net.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zywvytGCXzdVpkje" Content-Disposition: inline In-Reply-To: <20030408105759.M33127@oasis.net.au> User-Agent: Mutt/1.4.1i X-Spam-Status: No, hits=-37.8 required=5.0 tests=BAYES_10,IN_REP_TO,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/109 X-Sequence-Number: 12810 --zywvytGCXzdVpkje Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Rudi Starcevic [08.04.2003 14:06]: > When casting inside a COALESCE function should it be something like: >=20 > WHEN COALESCE( MAX(e.edate),'2003-01-01'::date ) >=3D now()::date THEN 'e= vents' Yes. Please, try it and report if it works. --=20 Victor Yegorov --zywvytGCXzdVpkje Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+kq4G2RKGLEykUDYRAq/JAJ9kF0bpwVI9C+YBlrJIPUE+A33pTgCePXR0 M+zHUtDFcPiAuvKR2JRtetU= =0TtU -----END PGP SIGNATURE----- --zywvytGCXzdVpkje--