diff --git a/pkg/sql/sem/tree/eval.go b/pkg/sql/sem/tree/eval.go index 6f44cfa8d4d1..6eddc4b34ea9 100644 --- a/pkg/sql/sem/tree/eval.go +++ b/pkg/sql/sem/tree/eval.go @@ -3243,7 +3243,7 @@ func (expr *IndirectionExpr) Eval(ctx *EvalContext) (Datum, error) { var subscriptIdx int for i, t := range expr.Indirection { if t.Slice { - return nil, pgerror.UnimplementedWithIssueErrorf(2115, "ARRAY slicing in %s", expr) + return nil, pgerror.UnimplementedWithIssueErrorf(32551, "ARRAY slicing in %s", expr) } if i > 0 { return nil, pgerror.UnimplementedWithIssueErrorf(2115, "multidimensional ARRAY %s", expr) diff --git a/pkg/sql/sem/tree/type_check.go b/pkg/sql/sem/tree/type_check.go index f1b703a36edf..d5e6ec16bea4 100644 --- a/pkg/sql/sem/tree/type_check.go +++ b/pkg/sql/sem/tree/type_check.go @@ -462,7 +462,7 @@ func (expr *CastExpr) TypeCheck(ctx *SemaContext, _ types.T) (TypedExpr, error) func (expr *IndirectionExpr) TypeCheck(ctx *SemaContext, desired types.T) (TypedExpr, error) { for i, t := range expr.Indirection { if t.Slice { - return nil, pgerror.UnimplementedWithIssueErrorf(2115, "ARRAY slicing in %s", expr) + return nil, pgerror.UnimplementedWithIssueErrorf(32551, "ARRAY slicing in %s", expr) } if i > 0 { return nil, pgerror.UnimplementedWithIssueErrorf(2115, "multidimensional ARRAY %s", expr)