Commit 3200b15b authored by Tom Lane's avatar Tom Lane

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().
parent 934d1226
...@@ -179,9 +179,10 @@ typedef struct Const ...@@ -179,9 +179,10 @@ typedef struct Const
int location; /* token location, or -1 if unknown */ int location; /* token location, or -1 if unknown */
} Const; } Const;
/* ---------------- /*
* Param * Param
* paramkind - specifies the kind of parameter. The possible values *
* paramkind specifies the kind of parameter. The possible values
* for this field are: * for this field are:
* *
* PARAM_EXTERN: The parameter value is supplied from outside the plan. * PARAM_EXTERN: The parameter value is supplied from outside the plan.
...@@ -204,12 +205,6 @@ typedef struct Const ...@@ -204,12 +205,6 @@ typedef struct Const
* of the `paramid' field contain the SubLink's subLinkId, and * of the `paramid' field contain the SubLink's subLinkId, and
* the low-order 16 bits contain the column number. (This type * the low-order 16 bits contain the column number. (This type
* of Param is also converted to PARAM_EXEC during planning.) * of Param is also converted to PARAM_EXEC during planning.)
*
* Note: currently, paramtypmod is always -1 for PARAM_EXTERN params, since
* the APIs that supply values for such parameters don't carry any typmod
* info. It is valid in other types of Params, if they represent expressions
* with determinable typmod.
* ----------------
*/ */
typedef enum ParamKind typedef enum ParamKind
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment