mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
Allow to omit boundaries in array subscript
Allow to omiy lower or upper or both boundaries in array subscript for selecting slice of array. Author: YUriy Zhuravlev
This commit is contained in:
@ -2403,6 +2403,8 @@ _copyAIndices(const A_Indices *from)
|
||||
|
||||
COPY_NODE_FIELD(lidx);
|
||||
COPY_NODE_FIELD(uidx);
|
||||
COPY_SCALAR_FIELD(lidx_default);
|
||||
COPY_SCALAR_FIELD(uidx_default);
|
||||
|
||||
return newnode;
|
||||
}
|
||||
|
@ -2153,6 +2153,8 @@ _equalAIndices(const A_Indices *a, const A_Indices *b)
|
||||
{
|
||||
COMPARE_NODE_FIELD(lidx);
|
||||
COMPARE_NODE_FIELD(uidx);
|
||||
COMPARE_SCALAR_FIELD(lidx_default);
|
||||
COMPARE_SCALAR_FIELD(uidx_default);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -2765,6 +2765,8 @@ _outA_Indices(StringInfo str, const A_Indices *node)
|
||||
|
||||
WRITE_NODE_FIELD(lidx);
|
||||
WRITE_NODE_FIELD(uidx);
|
||||
WRITE_BOOL_FIELD(lidx_default);
|
||||
WRITE_BOOL_FIELD(uidx_default);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user