From 89c0a87fda06aade58831976c9dbc97134032d18 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 11 Jan 2008 18:39:41 +0000 Subject: The original implementation of polymorphic aggregates didn't really get the checking of argument compatibility right; although the problem is only exposed with multiple-input aggregates in which some arguments are polymorphic and some are not. Per bug #3852 from Sokolov Yura. --- src/include/parser/parse_coerce.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/include/parser') diff --git a/src/include/parser/parse_coerce.h b/src/include/parser/parse_coerce.h index c5b2b48ec3b..ab36a0c1969 100644 --- a/src/include/parser/parse_coerce.h +++ b/src/include/parser/parse_coerce.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/parser/parse_coerce.h,v 1.74 2008/01/01 19:45:58 momjian Exp $ + * $PostgreSQL: pgsql/src/include/parser/parse_coerce.h,v 1.75 2008/01/11 18:39:41 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -81,7 +81,8 @@ extern bool check_generic_type_consistency(Oid *actual_arg_types, extern Oid enforce_generic_type_consistency(Oid *actual_arg_types, Oid *declared_arg_types, int nargs, - Oid rettype); + Oid rettype, + bool allow_poly); extern Oid resolve_generic_type(Oid declared_type, Oid context_actual_type, Oid context_declared_type); -- cgit v1.2.3