diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-12-10 22:13:27 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-12-10 22:13:27 +0000 |
commit | 9fa12ddda62549a0e0225220745c3bf89434dab3 (patch) | |
tree | 691cde987387d3500ec9c5560f19b270beb90da7 /src/backend/nodes/copyfuncs.c | |
parent | 314c7b642b14e8a60a411ecce2435edf0072f78a (diff) | |
download | postgresql-9fa12ddda62549a0e0225220745c3bf89434dab3.tar.gz postgresql-9fa12ddda62549a0e0225220745c3bf89434dab3.zip |
Add a paramtypmod field to Param nodes. This is dead weight for Params
representing externally-supplied values, since the APIs that carry such
values only specify type not typmod. However, for PARAM_SUBLINK Params
it is handy to carry the typmod of the sublink's output column. This
is a much cleaner solution for the recently reported 'could not find
pathkey item to sort' and 'failed to find unique expression in subplan
tlist' bugs than my original 8.2-compatible patch. Besides, someday we
might want to support typmods for external parameters ...
Diffstat (limited to 'src/backend/nodes/copyfuncs.c')
-rw-r--r-- | src/backend/nodes/copyfuncs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index c1858e6746d..5047dc8ad7b 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -15,7 +15,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.353 2006/11/05 22:42:08 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.354 2006/12/10 22:13:26 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -745,6 +745,7 @@ _copyParam(Param *from) COPY_SCALAR_FIELD(paramkind); COPY_SCALAR_FIELD(paramid); COPY_SCALAR_FIELD(paramtype); + COPY_SCALAR_FIELD(paramtypmod); return newnode; } |