mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
We neglected to apply domain constraints on UNKNOWN parameters to
prepared statements, per report from David Wheeler.
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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;
|
param->paramtype = targetTypeId;
|
||||||
return (Node *) param;
|
return coerce_to_domain((Node *) param, InvalidOid, targetTypeId,
|
||||||
|
cformat);
|
||||||
}
|
}
|
||||||
if (find_coercion_pathway(targetTypeId, inputTypeId, ccontext,
|
if (find_coercion_pathway(targetTypeId, inputTypeId, ccontext,
|
||||||
&funcId))
|
&funcId))
|
||||||
|
Reference in New Issue
Block a user