diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-03-06 22:45:23 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-03-06 22:45:23 +0000 |
commit | cafbf1e1cca910a663485f4a9b4189edee0dd259 (patch) | |
tree | d1f146ad5ca8e21336d244727edef0f866ad3daa /src/backend/executor/nodeHash.c | |
parent | 3530283dae78315a47a8bd9cb72f74a9cce6b129 (diff) | |
download | postgresql-cafbf1e1cca910a663485f4a9b4189edee0dd259.tar.gz postgresql-cafbf1e1cca910a663485f4a9b4189edee0dd259.zip |
Fix oversight in original coding of inline_function(): since
check_sql_fn_retval allows binary-compatibility cases, the expression
extracted from an inline-able SQL function might have a type that is only
binary-compatible with the declared function result type. To avoid possibly
changing the semantics of the expression, we should insert a RelabelType node
in such cases. This has only been shown to have bad consequences in recent
8.1 and up releases, but I suspect there may be failure cases in the older
branches too, so patch it all the way back. Per bug #3116 from Greg Mullane.
Along the way, fix an omission in eval_const_expressions_mutator: it failed
to copy the relabelformat field when processing a RelabelType. No known
observable failures from this, but it definitely isn't intended behavior.
Diffstat (limited to 'src/backend/executor/nodeHash.c')
0 files changed, 0 insertions, 0 deletions