Content-Length: 278578 | pFad | http://github.com/postgrespro/postgres/commit/4b3252c4b8533bacfe6b14d866d2cdae79574b1c

E3 We neglected to apply domain constraints on UNKNOWN parameters to · postgrespro/postgres@4b3252c · GitHub
Skip to content

Commit 4b3252c

Browse files
author
Neil Conway
committed
We neglected to apply domain constraints on UNKNOWN parameters to
prepared statements, per report from David Wheeler.
1 parent ea73a78 commit 4b3252c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/backend/parser/parse_coerce.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/parser/parse_coerce.c,v 2.133 2005/11/22 18:17:16 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/parser/parse_coerce.c,v 2.134 2006/01/12 22:28:35 neilc Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -243,7 +243,10 @@ coerce_type(ParseState *pstate, Node *node,
243243
}
244244

245245
param->paramtype = targetTypeId;
246-
return (Node *) param;
246+
247+
/* Apply domain constraints, if necessary */
248+
return coerce_to_domain((Node *) param, InvalidOid, targetTypeId,
249+
cformat, false, false);
247250
}
248251
if (find_coercion_pathway(targetTypeId, inputTypeId, ccontext,
249252
&funcId))

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/4b3252c4b8533bacfe6b14d866d2cdae79574b1c

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy