Return system identification information with appropriate data types

This commit is contained in:
Ian Barwick
2017-08-14 08:50:54 +09:00
parent 50b82f785e
commit b95b3e50e3
3 changed files with 5 additions and 4 deletions

View File

@@ -1455,7 +1455,7 @@ identify_system(PGconn *replconn, t_system_identification *identification)
return false;
}
strncpy(identification->systemid, PQgetvalue(res, 0, 0), MAXLEN);
identification->system_identifier = atol(PQgetvalue(res, 0, 0));
identification->timeline = atoi(PQgetvalue(res, 0, 1));
identification->xlogpos = parse_lsn(PQgetvalue(res, 0, 2));