OSDN Git Service

Re-allow an untyped literal as the test expression of a CASE, ie
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 12 Jan 2005 17:32:36 +0000 (17:32 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 12 Jan 2005 17:32:36 +0000 (17:32 +0000)
commit2ec1aa4cb8cb053d197480eaa74dac07857585f2
treedd775b96ec6089f3a3fe717f2f68307c5df5788a
parent8251e0b2fb1d8ed86bb48ca1f4353ce09b049604
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 GÄbor SzÃcs.
src/backend/parser/parse_expr.c