forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7184a42
committed
The small context diff below corrects what seems to be an oversight in
fmgr.h - it's discouraged to access fcinfo directly but there is nomacro to get the number of arguments passed to the function. Checkingthe number of arguments is often useful when you have a function whichcan be called like: func('arg'); func(null); func();all mapping to the same C function.the macro has a function-like appearance to match the other PG_*macros.Lee Kindness.1 parente57ab04 commit7184a42
1 file changed
+6
-1
lines changedLines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
115 | 115 |
| |
116 | 116 |
| |
117 | 117 |
| |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
118 | 123 |
| |
119 | 124 |
| |
120 | 125 |
| |
|
0 commit comments
Comments
(0)