Commit 54affb41 authored by Tom Lane's avatar Tom Lane

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
parent 92a43e48
......@@ -455,7 +455,10 @@ array_cat(PG_FUNCTION_ARGS)
/*
* used by text_to_array() in varlena.c
* create_singleton_array - make a one-element array
*
* If desired, the caller can ask for it to be higher than one-dimensional.
* Caller's fcinfo must be passed in, as we use fn_extra for caching.
*/
ArrayType *
create_singleton_array(FunctionCallInfo fcinfo,
......
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