From: Neil Conway Date: Thu, 12 Jan 2006 22:29:31 +0000 (+0000) Subject: We neglected to apply domain constraints on UNKNOWN parameters to X-Git-Tag: REL7_4_12~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e05a95bc00e1cd2ba763b433843918fc5f2e155e;p=thirdparty%2Fpostgresql.git We neglected to apply domain constraints on UNKNOWN parameters to prepared statements, per report from David Wheeler. --- diff --git a/src/backend/parser/parse_coerce.c b/src/backend/parser/parse_coerce.c index 82b47eaaeb0..610bb678367 100644 --- a/src/backend/parser/parse_coerce.c +++ b/src/backend/parser/parse_coerce.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.111.2.1 2003/12/17 19:49:52 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.111.2.2 2006/01/12 22:29:31 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -266,7 +266,8 @@ coerce_type(ParseState *pstate, Node *node, } param->paramtype = targetTypeId; - return (Node *) param; + return coerce_to_domain((Node *) param, InvalidOid, targetTypeId, + cformat); } if (find_coercion_pathway(targetTypeId, inputTypeId, ccontext, &funcId))