Since
c7aba7c, the transform method used during parse analysis of a
subcripting construct has moved from transformAssignmentSubscripts() to
the per-type transform method (arrays or arbitrary types) the step that
checks for slicing support, but transformAssignmentSubscripts() has kept
traces of it. Removing it simplifies the code, so let's clean up all
that.
Author: Zhang Mingli
Reviewed-by: Richard Guo
Discussion: https://postgr.es/m/
0d7041ac-c704-48ad-86fd-
e05feddf08ed@Spark
int32 targetTypMod,
Oid targetCollation,
List *subscripts,
- bool isSlice,
List *indirection,
ListCell *next_indirection,
Node *rhs,
{
Node *result;
List *subscripts = NIL;
- bool isSlice = false;
ListCell *i;
if (indirection_cell && !basenode)
Node *n = lfirst(i);
if (IsA(n, A_Indices))
- {
subscripts = lappend(subscripts, n);
- if (((A_Indices *) n)->is_slice)
- isSlice = true;
- }
else if (IsA(n, A_Star))
{
ereport(ERROR,
targetTypMod,
targetCollation,
subscripts,
- isSlice,
indirection,
i,
rhs,
targetTypMod,
targetCollation,
subscripts,
- isSlice,
indirection,
NULL,
rhs,
int32 targetTypMod,
Oid targetCollation,
List *subscripts,
- bool isSlice,
List *indirection,
ListCell *next_indirection,
Node *rhs,