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

Commit5cb65e2

Browse files
committed
fix opr_sanity
1 parentef30f6f commit5cb65e2

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

‎src/backend/utils/adt/arrayfuncs.c‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5957,6 +5957,14 @@ array_unnest(PG_FUNCTION_ARGS)
59575957
}
59585958
}
59595959

5960+
/*
5961+
* Just a simplest wrapper to keep opr_sanity clean
5962+
*/
5963+
Datum
5964+
array_unnest_element(PG_FUNCTION_ARGS)
5965+
{
5966+
returnarray_unnest(fcinfo);
5967+
}
59605968

59615969
/*
59625970
* array_replace/array_remove support

‎src/include/catalog/pg_proc.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ DESCR("array constructor with value");
925925
DATA(insert OID = 2331 ( unnest PGNSP PGUID 12 1 100 0 0 f f f f t t i 1 0 2283 "2277" _null_ _null_ _null_ _null_ _null_ array_unnest _null_ _null_ _null_ ));
926926
DESCR("expand array to set of rows");
927927
/* just for compatibility with jsonb_unnest* for any/each element clause */
928-
DATA(insert OID = 7644 ( unnest_element PGNSP PGUID 12 1 100 0 0 f f f f t t i 2 0 2283 "2277 16" _null_ _null_ _null_ _null_ _null_array_unnest _null_ _null_ _null_ ));
928+
DATA(insert OID = 7644 ( unnest_element PGNSP PGUID 12 1 100 0 0 f f f f t t i 2 0 2283 "2277 16" _null_ _null_ _null_ _null_ _null_array_unnest_element _null_ _null_ _null_ ));
929929
DESCR("expand array to set of rows");
930930
DATA(insert OID = 3167 ( array_remove PGNSP PGUID 12 1 0 0 0 f f f f f f i 2 0 2277 "2277 2283" _null_ _null_ _null_ _null_ _null_ array_remove _null_ _null_ _null_ ));
931931
DESCR("remove any occurrences of an element from an array");

‎src/include/utils/array.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ extern Datum generate_subscripts_nodir(PG_FUNCTION_ARGS);
356356
externDatumarray_fill(PG_FUNCTION_ARGS);
357357
externDatumarray_fill_with_lower_bounds(PG_FUNCTION_ARGS);
358358
externDatumarray_unnest(PG_FUNCTION_ARGS);
359+
externDatumarray_unnest_element(PG_FUNCTION_ARGS);
359360
externDatumarray_remove(PG_FUNCTION_ARGS);
360361
externDatumarray_replace(PG_FUNCTION_ARGS);
361362
externDatumwidth_bucket_array(PG_FUNCTION_ARGS);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp