diff options
author | Daniel Gustafsson <dgustafsson@postgresql.org> | 2023-04-08 23:32:11 +0200 |
---|---|---|
committer | Daniel Gustafsson <dgustafsson@postgresql.org> | 2023-04-08 23:32:11 +0200 |
commit | 6ff2e8cdd410f70057cfa6259ad395c1119aeb32 (patch) | |
tree | 8d99cbeff43a47a5c2190c968269697bf9414fbb /src/backend/parser/parse_utilcmd.c | |
parent | 980e8879f54a7a00ca6a5bae2fe9486c87ef3e8e (diff) | |
download | postgresql-6ff2e8cdd410f70057cfa6259ad395c1119aeb32.tar.gz postgresql-6ff2e8cdd410f70057cfa6259ad395c1119aeb32.zip |
Simplify version check for SKIP clause
Checking for the required versions of IO::Pty as well as IPC::Run
can be achieved with a single eval call, and by using the VERSION
function the comparison is guaranteed to follow the same rules as
calling 'use' on the module with a version.
Reported-by: Andrew Dunstan <andrew@dunslane.net>
Discussion: https://postgr.es/m/6d880ea2-f8ca-f458-4dcd-a7a3e6d6cd7c@dunslane.net
Diffstat (limited to 'src/backend/parser/parse_utilcmd.c')
0 files changed, 0 insertions, 0 deletions