OSDN Git Service

Fix broken list-slinging logic in func_select_candidate and
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 20 Feb 2000 06:35:08 +0000 (06:35 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 20 Feb 2000 06:35:08 +0000 (06:35 +0000)
commit5253c518aef4c906dc6c922c51c2d77b0a78bf75
treeed6560c23dadd0cdc072ca6f60e6fe9a9585fefb
parentf4d108a25747754b5d265b12ef32c791ab547782
Fix broken list-slinging logic in func_select_candidate and
agg_select_candidate, which could cause them to keep more candidates
than they should and thus fail to select a single match.  I had
previously fixed the identical bug in oper_select_candidate, but
didn't realize that the same error was repeated over here.
Also, repair func_select_candidate's curious notion that it could
scribble on the input type-OID vector.  That was causing failure to
apply necessary type coercion later on, leading to malfunction of
examples such as select date('now').
src/backend/parser/parse_func.c