mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
Fix wrong error reports in 'number of array dimensions exceeds the
maximum allowed' messages, that have reported one-less dimensions. Alexey Klyukin
This commit is contained in:
@ -296,7 +296,7 @@ ExecEvalArrayRef(ArrayRefExprState *astate,
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED),
|
||||
errmsg("number of array dimensions (%d) exceeds the maximum allowed (%d)",
|
||||
i, MAXDIM)));
|
||||
i + 1, MAXDIM)));
|
||||
|
||||
upper.indx[i++] = DatumGetInt32(ExecEvalExpr(eltstate,
|
||||
econtext,
|
||||
@ -324,7 +324,7 @@ ExecEvalArrayRef(ArrayRefExprState *astate,
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED),
|
||||
errmsg("number of array dimensions (%d) exceeds the maximum allowed (%d)",
|
||||
i, MAXDIM)));
|
||||
j + 1, MAXDIM)));
|
||||
|
||||
lower.indx[j++] = DatumGetInt32(ExecEvalExpr(eltstate,
|
||||
econtext,
|
||||
|
Reference in New Issue
Block a user