mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Error message editing in contrib (mostly by Joe Conway --- thanks Joe!)
This commit is contained in:
@ -197,7 +197,9 @@ inner_subltree(ltree * t, int4 startpos, int4 endpos)
|
||||
int i;
|
||||
|
||||
if (startpos < 0 || endpos < 0 || startpos >= t->numlevel || startpos > endpos)
|
||||
elog(ERROR, "Wrong positions");
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||
errmsg("invalid positions")));
|
||||
|
||||
if (endpos > t->numlevel)
|
||||
endpos = t->numlevel;
|
||||
|
Reference in New Issue
Block a user