We neglected to apply domain constraints on UNKNOWN parameters to
authorNeil Conway <[email protected]>
Thu, 12 Jan 2006 22:29:31 +0000 (22:29 +0000)
committerNeil Conway <[email protected]>
Thu, 12 Jan 2006 22:29:31 +0000 (22:29 +0000)
prepared statements, per report from David Wheeler.

src/backend/parser/parse_coerce.c

index 22cdd7f0175e01d4737cdfcdf87aa0a2505d85dc..a6d69f4c1433860690bcc5e8fe5aa0dbf589adc3 100644 (file)
@@ -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))