pgsql: Re-allow an untyped literal as the test expression of a CASE, ie

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Re-allow an untyped literal as the test expression of a CASE, ie
Date: 2005-01-12 17:32:37
Message-ID: 20050112173237.7329E3A5D1A@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Re-allow an untyped literal as the test expression of a CASE, ie
CASE 'a' WHEN 'a' THEN 1 ELSE 2 END. This worked in 7.4 and before
but had been broken due to premature freezing of the type of the test
expression. Per gripe from Gbor Szcs.

Modified Files:
--------------
pgsql/src/backend/parser:
parse_expr.c (r1.178 -> r1.179)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/parse_expr.c.diff?r1=1.178&r2=1.179)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2005-01-12 21:37:56 pgsql: Add conditional inclusion of <com_err.h> to support old 'heimdal'
Previous Message Tom Lane 2005-01-12 16:38:18 pgsql: Increase MAXLISTEN to a more generous value, and add an error