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 1B21D52841 for ; Fri, 3 Jun 2005 10:17:40 -0300 (ADT) 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 54667-06 for ; Fri, 3 Jun 2005 13:17:30 +0000 (GMT) Received: from web11.manitu.net (web11.manitu.net [217.11.48.111]) by svr1.postgresql.org (Postfix) with ESMTP id D7C00528C7 for ; Fri, 3 Jun 2005 10:17:29 -0300 (ADT) Received: from dicaprio.akademie1.de (dicaprio.akademie1.de [62.165.4.166]) (authenticated) by web11.manitu.net (8.10.2-SOL3/8.10.2) with ESMTP id j53DHWT27684 for ; Fri, 3 Jun 2005 15:17:32 +0200 Subject: CASE WHEN foo IS NULL THEN DEFAULT ELSE foo END From: Markus Bertheau =?UTF-8?Q?=E2=98=AD?= To: PostgreSQL Content-Type: text/plain; charset=UTF-8 Date: Fri, 03 Jun 2005 15:17:26 +0200 Message-Id: <1117804646.9816.37.camel@dicaprio.akademie1.de> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-4) Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.12 tagged_above=0 required=5 tests=AWL, UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200506/45 X-Sequence-Number: 21646 Hi, is it planned to support the following insert syntax? INSERT INTO table VALUES (CASE WHEN arg_whatever IS NULL THEN DEFAULT ELSE arg_whatever END); I have the DEFAULT inside the CASE expression in mind. Markus -- Markus Bertheau ☭