pgsql: Fix version comparison in Version.pm

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема pgsql: Fix version comparison in Version.pm
Дата
Msg-id E1ow1kT-000kHR-LQ@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix version comparison in Version.pm

Version strings with unequal numbers of parts were being compared
incorrectly. We cure this by treating a missing part in the shorter
version as 0.

per complaint from Jehan-Guillaume de Rorthais, but the fix is mine, not
his.

Discussion: https://postgr.es/m/20220628225325.53d97b8d@karst

Backpatch to release 14 where this code was introduced.

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/df4e93bea4f9370c14f01d27e6d36cbe7afaac72

Modified Files
--------------
src/test/perl/PostgreSQL/Version.pm | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Fix typo
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Make object_address test output easier to update