diff options
author | Richard <q@1bpm.net> | 2021-03-03 01:26:06 +0000 |
---|---|---|
committer | Richard <q@1bpm.net> | 2021-03-03 01:26:06 +0000 |
commit | c5c3a919f4abca8208c4b9e33a34161e0d88ebb1 (patch) | |
tree | 043a6dc32bf0b374b3749051267fa6595001ce0e /src | |
parent | 610b574c4e0d5953790777d35df9a591a982926f (diff) | |
download | csound-sqldb-c5c3a919f4abca8208c4b9e33a34161e0d88ebb1.tar.gz csound-sqldb-c5c3a919f4abca8208c4b9e33a34161e0d88ebb1.tar.bz2 csound-sqldb-c5c3a919f4abca8208c4b9e33a34161e0d88ebb1.zip |
updated for newer libpqxx
Diffstat (limited to 'src')
-rw-r--r-- | src/postgresql.cpp | 8 |
1 files 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<pqxx::noticer> 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; |