mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
Avoid using ambiguous word "positive" in error message.
There are two identical error messages about valid value of modulus for
hash partition, in PostgreSQL source code. Commit 0e1275fb07
improved
only one of them so that ambiguous word "positive" was avoided there,
and forgot to improve the other. This commit improves the other.
Which would reduce translator burden.
Back-pach to v11 where the error message exists.
Author: Kyotaro Horiguchi
Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/20210819.170315.1413060634876301811.horikyota.ntt@gmail.com
This commit is contained in:
@ -4035,7 +4035,7 @@ transformPartitionBound(ParseState *pstate, Relation parent,
|
||||
if (spec->modulus <= 0)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_TABLE_DEFINITION),
|
||||
errmsg("modulus for hash partition must be a positive integer")));
|
||||
errmsg("modulus for hash partition must be an integer value greater than zero")));
|
||||
|
||||
Assert(spec->remainder >= 0);
|
||||
|
||||
|
Reference in New Issue
Block a user