From: Tom Lane <tgl@sss.pgh.pa.us>
To: Markus Bertheau ☭ <twanger@bluetwanger.de>
Cc: PostgreSQL <pgsql-sql@postgresql.org>
Subject: Re: CASE WHEN foo IS NULL THEN DEFAULT ELSE foo END
Date: Fri, 03 Jun 2005 10:16:34 -0400
Message-ID: <4626.1117808194@sss.pgh.pa.us> (raw)
In-Reply-To: <1117804646.9816.37.camel@dicaprio.akademie1.de>
References: <1117804646.9816.37.camel@dicaprio.akademie1.de>
Markus Bertheau =?UTF-8?Q?=E2=98=AD?= <twanger@bluetwanger.de> writes:
> 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);
No. AFAICS, SQL99 only defines DEFAULT as the direct INSERT or UPDATE
target expression.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, twanger@bluetwanger.de
Subject: Re: CASE WHEN foo IS NULL THEN DEFAULT ELSE foo END
In-Reply-To: <4626.1117808194@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox