1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-18 17:42:25 +03:00

Use macro atooid() for conversion of strings to oids, per suggestion

from Tom.
This commit is contained in:
Bruce Momjian
2010-09-28 22:11:21 +00:00
parent ddfa48776c
commit b757f18f2f
3 changed files with 8 additions and 6 deletions

View File

@ -94,9 +94,9 @@ get_pg_database_relfilenode(migratorContext *ctx, Cluster whichCluster)
i_relfile = PQfnumber(res, "relfilenode");
if (whichCluster == CLUSTER_OLD)
ctx->old.pg_database_oid = str2uint(PQgetvalue(res, 0, i_relfile));
ctx->old.pg_database_oid = atooid(PQgetvalue(res, 0, i_relfile));
else
ctx->new.pg_database_oid = str2uint(PQgetvalue(res, 0, i_relfile));
ctx->new.pg_database_oid = atooid(PQgetvalue(res, 0, i_relfile));
PQclear(res);
PQfinish(conn);