Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Make comment in fmgr.h match the one in fmgr.c.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 26 Aug 2019 18:32:40 +0000 (14:32 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 26 Aug 2019 18:32:48 +0000 (14:32 -0400)
Incompletely quoting an API spec does nobody any good.  Noted by
Paul Jungwirth.  Looks like the discrepancy was my fault originally :-(

Discussion: https://postgr.es/m/CA+renyU_J8TU_d3Kr0PkuOgFbpypextendu7a+_d5NOfVdvDeA@mail.gmail.com

src/include/fmgr.h

index 3ff099986b838267f85000ac13398b5a98a4a5ba..29ae4674cc7e750a6690e28fe9d1450633d11682 100644 (file)
@@ -489,7 +489,8 @@ extern int no_such_variable
 
 /* These are for invocation of a specifically named function with a
  * directly-computed parameter list.  Note that neither arguments nor result
- * are allowed to be NULL.
+ * are allowed to be NULL.  Also, the function cannot be one that needs to
+ * look at FmgrInfo, since there won't be any.
  */
 extern Datum DirectFunctionCall1Coll(PGFunction func, Oid collation,
                                     Datum arg1);