From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve logic in PostgresVersion.pm
Date: Tue, 27 Apr 2021 12:29:00 +0000
Message-ID: <E1lbMpo-0005cW-B3@gemulon.postgresql.org> (raw)
Improve logic in PostgresVersion.pm
Handle the situation where perl swaps the order of operands of
the comparison operator. See `perldoc overload` for details:
The third argument is set to TRUE if (and only if) the two
operands have been swapped. Perl may do this to ensure that the
first argument ($self) is an object implementing the overloaded
operation, in line with general object calling conventions.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/fa26eba221a9e837493df47d0255ce615129e9a8
Modified Files
--------------
src/test/perl/PostgresVersion.pm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: andrew@dunslane.net
Subject: Re: pgsql: Improve logic in PostgresVersion.pm
In-Reply-To: <E1lbMpo-0005cW-B3@gemulon.postgresql.org>
References: <E1lbMpo-0005cW-B3@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox