Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3200b15

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 parent934d122 commit3200b15

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
intlocation;/* 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
typedefenumParamKind
215210
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp