Skip to content

Commit

Permalink
gate the disconnect function in postgres.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
ParkMyCar committed Sep 6, 2024
1 parent 2483b0a commit ceb068b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions postgres.cc
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,11 @@ schema_pqxx::schema_pqxx(std::string &conninfo, bool no_catalog, bool dump_state
aggregate_index++;
}
cerr << "done." << endl;
#ifdef HAVE_LIBPQXX7
c.close();
#else
c.disconnect();
#endif

if (dump_state) {
std::cout << data.dump(4) << std::endl;
Expand Down

0 comments on commit ceb068b

Please sign in to comment.