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

Commit54affb4

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

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(FunctionCallInfofcinfo,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp