do not exit in pg_version

This commit is contained in:
Christian Kruse
2014-01-16 14:32:04 +01:00
parent 18206b3a64
commit 77aa6aa326
3 changed files with 44 additions and 38 deletions

View File

@@ -192,8 +192,7 @@ pg_version(PGconn *conn, char* major_version)
log_err(_("Version check PQexec failed: %s"),
PQerrorMessage(conn));
PQclear(res);
PQfinish(conn);
exit(ERR_DB_QUERY);
return NULL;
}
major_version1 = atoi(PQgetvalue(res, 0, 0));