aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2010-08-19 16:54:43 +0000
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2010-08-19 16:54:43 +0000
commitff645bf5ad8906d146673b975ef5c9c21797acd2 (patch)
tree9f58536320b9e7e07dc9724d1e81edc8ef7bbaae /src/tutorial/funcs.c
parentbc7cb8f42cc607f1fcd2aca0a7b007fc8e9930d0 (diff)
downloadpostgresql-ff645bf5ad8906d146673b975ef5c9c21797acd2.tar.gz
postgresql-ff645bf5ad8906d146673b975ef5c9c21797acd2.zip
Revert patch to coerce 'unknown' type parameters in the backend. As Tom
pointed out, it would need a 2nd pass after the whole query is processed to correctly check that an unknown Param is coerced to the same target type everywhere. Adding the 2nd pass would add a lot more code, which doesn't seem worth the risk given that there isn't much of a use case for passing unknown Params in the first place. The code would work without that check, but it might be confusing and the behavior would be different from the varparams case. Instead, just coerce all unknown params in a PL/pgSQL USING clause to text. That's simple, and is usually what users expect. Revert the patch in CVS HEAD and master, and backpatch the new solution to 8.4. Unlike the previous solution, this applies easily to 8.4 too.
Diffstat (limited to 'src/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions