die("skip could not connect\n");
}
-function skip_server_version($version, $op = '<') { _skip_version('server', $version, $op); }
-function skip_client_version($version, $op = '<') { _skip_version('client', $version, $op); }
-
-
-function _skip_version($type, $version, $op)
+function skip_server_version($version, $op = '<')
{
- $pg = pg_parameter_status($type.'_version');
+ $pg = pg_parameter_status('server_version');
if (version_compare($pg, $version, $op)) {
- die("skip {$type} version {$pg} is {$op} {$version}\n");
+ die("skip Server version {$pg} is {$op} {$version}\n");
}
}