]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Improve error message about valid value for distance in phrase operator.
authorFujii Masao <fujii@postgresql.org>
Wed, 25 Aug 2021 02:43:56 +0000 (11:43 +0900)
committerFujii Masao <fujii@postgresql.org>
Wed, 25 Aug 2021 02:45:42 +0000 (11:45 +0900)
commit5d1c36fd204bc680745263c3f9f41978b368fa0a
tree03dd9e8a887d562b80d0a0454ba634ca539c1ca3
parent7e75fe390b68f7ed6d3feb38d228f3d798b553c8
Improve error message about valid value for distance in phrase operator.

The distance in phrase operator must be an integer value between zero
and MAXENTRYPOS inclusive. But previously the error message about
its valid value included the information about its upper limit
but not lower limit (i.e., zero). This commit improves the error message
so that it also includes the information about its lower limit.

Back-patch to v9.6 where full-text phrase search was supported.

Author: Kyotaro Horiguchi
Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/20210819.170315.1413060634876301811.horikyota.ntt@gmail.com
src/backend/utils/adt/tsquery.c