From c5c3a919f4abca8208c4b9e33a34161e0d88ebb1 Mon Sep 17 00:00:00 2001 From: Richard Date: Wed, 3 Mar 2021 01:26:06 +0000 Subject: updated for newer libpqxx --- src/postgresql.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/postgresql.cpp b/src/postgresql.cpp index 53cd102..681c133 100644 --- a/src/postgresql.cpp +++ b/src/postgresql.cpp @@ -37,10 +37,6 @@ void PostgresConnection::Init(csnd::Csound* csound, LoginData* login) { ); conn = new pqxx::connection(connectionString); - - // ignore notices - std::auto_ptr np(new(pqxx::nonnoticer)); - conn->set_noticer(np); if (!conn->is_open()) { throw std::runtime_error("Connection not open"); @@ -111,9 +107,9 @@ void PostgresConnection::ToArray(pqxx::result result, csnd::Csound* csound, ARRA int index = 0; for (int rowNum = 0; rowNum < result.size(); ++rowNum) { - const pqxx::result::tuple row = result[rowNum]; + const pqxx::row row = result[rowNum]; for (int colNum = 0; colNum < row.size(); ++colNum) { - const pqxx::result::field field = row[colNum]; + const pqxx::field field = row[colNum]; if (asString) { char* item = field.c_str(); strings[index].size = strlen(item) + 1; -- cgit v1.2.3