Skip to content

Commit

Permalink
Merge pull request #5 from MaterializeInc/fix/add-support-for-libpqxx7
Browse files Browse the repository at this point in the history
fix: Add support for libpqxx7
  • Loading branch information
def- authored Sep 6, 2024
2 parents 2483b0a + ceb068b commit 85e887a
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 85e887a

Please sign in to comment.