Skip to content

Commit 85e887a

Browse files
authored
Merge pull request #5 from MaterializeInc/fix/add-support-for-libpqxx7
fix: Add support for libpqxx7
2 parents 2483b0a + ceb068b commit 85e887a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

postgres.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,11 @@ schema_pqxx::schema_pqxx(std::string &conninfo, bool no_catalog, bool dump_state
588588
aggregate_index++;
589589
}
590590
cerr << "done." << endl;
591+
#ifdef HAVE_LIBPQXX7
592+
c.close();
593+
#else
591594
c.disconnect();
595+
#endif
592596

593597
if (dump_state) {
594598
std::cout << data.dump(4) << std::endl;

0 commit comments

Comments
 (0)