Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6d709fb

Browse files
committed
Use strcmp() instead of strverscmp()
1 parent 95e038c commit 6d709fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backup.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,8 @@ pg_ptrack_support(void)
11651165
}
11661166

11671167
/* Now we support only ptrack versions upper than 1.5 */
1168-
if (strverscmp(PQgetvalue(res_db, 0, 0), "1.5") < 0)
1168+
if (strcmp(PQgetvalue(res_db, 0, 0), "1.5") != 0 &&
1169+
strcmp(PQgetvalue(res_db, 0, 0), "1.6") != 0)
11691170
{
11701171
elog(WARNING, "Update your ptrack to the version 1.5 or upper. Current version is %s", PQgetvalue(res_db, 0, 0));
11711172
PQclear(res_db);

0 commit comments

Comments
 (0)