|
|
|
@ -255,7 +255,8 @@ ConnectDatabase(Archive *AHX, |
|
|
|
/* check to see that the backend connection was successfully made */ |
|
|
|
/* check to see that the backend connection was successfully made */ |
|
|
|
if (PQstatus(AH->connection) == CONNECTION_BAD) |
|
|
|
if (PQstatus(AH->connection) == CONNECTION_BAD) |
|
|
|
die_horribly(AH, modulename, "connection to database \"%s\" failed: %s", |
|
|
|
die_horribly(AH, modulename, "connection to database \"%s\" failed: %s", |
|
|
|
PQdb(AH->connection), PQerrorMessage(AH->connection)); |
|
|
|
PQdb(AH->connection) ? PQdb(AH->connection) : "", |
|
|
|
|
|
|
|
PQerrorMessage(AH->connection)); |
|
|
|
|
|
|
|
|
|
|
|
/* check for version mismatch */ |
|
|
|
/* check for version mismatch */ |
|
|
|
_check_database_version(AH); |
|
|
|
_check_database_version(AH); |
|
|
|
|