pgsql: Improve error message about valid value for distance in phrase o

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема pgsql: Improve error message about valid value for distance in phrase o
Дата
Msg-id E1mIiyI-0005t6-6U@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/085400fee9d58d7a97976755ae0627ef072e3776

Modified Files
--------------
src/backend/utils/adt/tsquery.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Fujii Masao
Дата:
Сообщение: pgsql: ecpg: Remove trailing period from error message.
Следующее
От: Fujii Masao
Дата:
Сообщение: pgsql: Improve error message about valid value for distance in phrase o