mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-09 14:45:47 +02:00
Use strcmp() instead of strverscmp()
This commit is contained in:
parent
95e038cce7
commit
6d709fb51c
@ -1165,7 +1165,8 @@ pg_ptrack_support(void)
|
||||
}
|
||||
|
||||
/* Now we support only ptrack versions upper than 1.5 */
|
||||
if (strverscmp(PQgetvalue(res_db, 0, 0), "1.5") < 0)
|
||||
if (strcmp(PQgetvalue(res_db, 0, 0), "1.5") != 0 &&
|
||||
strcmp(PQgetvalue(res_db, 0, 0), "1.6") != 0)
|
||||
{
|
||||
elog(WARNING, "Update your ptrack to the version 1.5 or upper. Current version is %s", PQgetvalue(res_db, 0, 0));
|
||||
PQclear(res_db);
|
||||
|
Loading…
Reference in New Issue
Block a user