summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2006-01-12 22:29:31 +0000
committerNeil Conway <neilc@samurai.com>2006-01-12 22:29:31 +0000
commite05a95bc00e1cd2ba763b433843918fc5f2e155e (patch)
tree3e69c56a1a60d22f09bd5c840e0e82224483b50b /src
parente76bb5cfec543cbf9243f66bf020da9058c22aa4 (diff)
We neglected to apply domain constraints on UNKNOWN parameters to
prepared statements, per report from David Wheeler.
Diffstat (limited to 'src')
-rw-r--r--src/backend/parser/parse_coerce.c5
1 files changed, 3 insertions, 2 deletions
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))