mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +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:
@@ -3750,7 +3750,7 @@ exec_assign_value(PLpgSQL_execstate *estate,
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED),
|
||||
errmsg("number of array dimensions (%d) exceeds the maximum allowed (%d)",
|
||||
nsubscripts, MAXDIM)));
|
||||
nsubscripts + 1, MAXDIM)));
|
||||
subscripts[nsubscripts++] = arrayelem->subscript;
|
||||
target = estate->datums[arrayelem->arrayparentno];
|
||||
} while (target->dtype == PLPGSQL_DTYPE_ARRAYELEM);
|
||||
|
Reference in New Issue
Block a user