mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Get rid of obsolete parse_version helper function.
For getting the server's version in numeric form, use PQserverVersion(). It does the exact same parsing as dumputils.c's parse_version(), and has been around in libpq for a long time. For the client's version, just use the PG_VERSION_NUM constant.
This commit is contained in:
@ -1708,7 +1708,7 @@ connection_warnings(bool in_startup)
|
||||
{
|
||||
if (!pset.quiet && !pset.notty)
|
||||
{
|
||||
int client_ver = parse_version(PG_VERSION);
|
||||
int client_ver = PG_VERSION_NUM;
|
||||
|
||||
if (pset.sversion != client_ver)
|
||||
{
|
||||
|
Reference in New Issue
Block a user