Skip to content

Commit 54affb4

Browse files
committed
Improve function header comment for create_singleton_array().
Mentioning the caller is neither future-proof nor an adequate substitute for giving an API specification. Per gripe from Neha Khatri, though I changed the patch around some. Discussion: https://postgr.es/m/CAFO0U+_fS5SRhzq6uPG+4fbERhoA9N2+nPrtvaC9mmeWivxbsA@mail.gmail.com
1 parent 92a43e4 commit 54affb4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/utils/adt/array_userfuncs.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,10 @@ array_cat(PG_FUNCTION_ARGS)
455455

456456

457457
/*
458-
* used by text_to_array() in varlena.c
458+
* create_singleton_array - make a one-element array
459+
*
460+
* If desired, the caller can ask for it to be higher than one-dimensional.
461+
* Caller's fcinfo must be passed in, as we use fn_extra for caching.
459462
*/
460463
ArrayType *
461464
create_singleton_array(FunctionCallInfo fcinfo,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy