Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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)

pgsql-committers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group