mirror of
https://github.com/postgres/postgres.git
synced 2025-08-30 06:01:21 +03:00
Allow omitting one or both boundaries in an array slice specifier.
Omitted boundaries represent the upper or lower limit of the corresponding
array subscript. This allows simpler specification of many common
use-cases.
(Revised version of commit 9246af6799
)
YUriy Zhuravlev
This commit is contained in:
@@ -377,9 +377,11 @@ extern Datum array_set_element(Datum arraydatum, int nSubscripts, int *indx,
|
||||
int arraytyplen, int elmlen, bool elmbyval, char elmalign);
|
||||
extern Datum array_get_slice(Datum arraydatum, int nSubscripts,
|
||||
int *upperIndx, int *lowerIndx,
|
||||
bool *upperProvided, bool *lowerProvided,
|
||||
int arraytyplen, int elmlen, bool elmbyval, char elmalign);
|
||||
extern Datum array_set_slice(Datum arraydatum, int nSubscripts,
|
||||
int *upperIndx, int *lowerIndx,
|
||||
bool *upperProvided, bool *lowerProvided,
|
||||
Datum srcArrayDatum, bool isNull,
|
||||
int arraytyplen, int elmlen, bool elmbyval, char elmalign);
|
||||
|
||||
|
Reference in New Issue
Block a user