Re: libpq: Fix wrong connection status on invalid "connect_timeout"

Поиск
Список
Период
Сортировка
От Lars Kanis
Тема Re: libpq: Fix wrong connection status on invalid "connect_timeout"
Дата
Msg-id b7fdf16e-1e66-ba1d-92b1-c8ae0bac8f6e@greiz-reinsdorf.de
обсуждение исходный текст
Ответ на Re: libpq: Fix wrong connection status on invalid "connect_timeout"  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
Am 18.10.19 um 05:06 schrieb Michael Paquier:

> So attached is a patch to skip trailing whitespaces as well,
> which also fixes the issue with ECPG.  I have refactored the parsing
> logic a bit while on it.  The comment at the top of parse_int_param()
> needs to be reworked a bit more.

I tested this and it looks good to me. Maybe you could omit some
redundant 'end' checks, as in the attached patch. Or was your intention
to verify non-NULL 'end'?


> Perhaps we could add directly regression
> tests for libpq.  I'll start a new thread about that once we are done
> here, the topic is larger.

We have around 650 tests on ruby-pg to ensure everything runs as
expected and I always wondered how the API of libpq is being verified.


--
Kind Regards,
Lars Kanis


Вложения

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

Предыдущее
От: Corey Huinker
Дата:
Сообщение: Add Change Badges to documentation
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: PATCH: logical_work_mem and logical streaming of largein-progress transactions