aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistproc.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-02-25 18:00:22 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-02-25 18:00:22 +0000
commitf970cc9588fc0fe43c61f03e5fd4bd30f3d4d786 (patch)
tree648e50b1213c1002e9a2e6b2b8413a36abb2bb94 /src/backend/access/gist/gistproc.c
parentebce90a1c2243d19d7ee0326ceb16220189405cd (diff)
downloadpostgresql-f970cc9588fc0fe43c61f03e5fd4bd30f3d4d786.tar.gz
postgresql-f970cc9588fc0fe43c61f03e5fd4bd30f3d4d786.zip
Fix an old problem in decompilation of CASE constructs: the ruleutils.c code
looks for a CaseTestExpr to figure out what the parser did, but it failed to consider the possibility that an implicit coercion might be inserted above the CaseTestExpr. This could result in an Assert failure in some cases (but correct results if Asserts weren't enabled), or an "unexpected CASE WHEN clause" error in other cases. Per report from Alan Li. Back-patch to 8.1; problem doesn't exist before that because CASE was implemented differently.
Diffstat (limited to 'src/backend/access/gist/gistproc.c')
0 files changed, 0 insertions, 0 deletions