Skip to content

Commit 3200b15

Browse files
committed
Remove comment claiming that PARAM_EXTERN Params always have typmod -1.
This hasn't been true in quite some time, cf plpgsql's make_datum_param().
1 parent 934d122 commit 3200b15

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/include/nodes/primnodes.h

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,10 @@ typedef struct Const
179179
int location; /* token location, or -1 if unknown */
180180
} Const;
181181

182-
/* ----------------
182+
/*
183183
* Param
184-
* paramkind - specifies the kind of parameter. The possible values
184+
*
185+
* paramkind specifies the kind of parameter. The possible values
185186
* for this field are:
186187
*
187188
* PARAM_EXTERN: The parameter value is supplied from outside the plan.
@@ -204,12 +205,6 @@ typedef struct Const
204205
* of the `paramid' field contain the SubLink's subLinkId, and
205206
* the low-order 16 bits contain the column number. (This type
206207
* of Param is also converted to PARAM_EXEC during planning.)
207-
*
208-
* Note: currently, paramtypmod is always -1 for PARAM_EXTERN params, since
209-
* the APIs that supply values for such parameters don't carry any typmod
210-
* info. It is valid in other types of Params, if they represent expressions
211-
* with determinable typmod.
212-
* ----------------
213208
*/
214209
typedef enum ParamKind
215210
{

0 commit comments

Comments
 (0)