diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-10-09 00:41:23 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-10-09 00:41:23 +0100 |
commit | 1727eb6faa1e1d7c194d7feabf1ed296cd481d36 (patch) | |
tree | 4bd6e0ba7d23264975db14aed70349abf4299f22 | |
parent | Move valueAs to BinaryColumn, implement with std::byteswap (diff) | |
download | libdbpp-postgresql-1727eb6faa1e1d7c194d7feabf1ed296cd481d36.tar.bz2 libdbpp-postgresql-1727eb6faa1e1d7c194d7feabf1ed296cd481d36.tar.xz libdbpp-postgresql-1727eb6faa1e1d7c194d7feabf1ed296cd481d36.zip |
Explicit instantiation of checkResult
Fixes issue where otherwise they could be optimised away whilst being
required outside the current translation unit.
-rw-r--r-- | libpqpp/pq-connection.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libpqpp/pq-connection.cpp b/libpqpp/pq-connection.cpp index ed00d8d..5c50b7c 100644 --- a/libpqpp/pq-connection.cpp +++ b/libpqpp/pq-connection.cpp @@ -135,6 +135,9 @@ PQ::Connection::checkResult(PGresult * res, Expected... expected) const return ResultPtr {res}; } +template PQ::ResultPtr PQ::Connection::checkResult(PGresult *, ExecStatusType) const; +template PQ::ResultPtr PQ::Connection::checkResult(PGresult *, ExecStatusType, ExecStatusType) const; + AdHocFormatter(PQConnectionCopyFrom, "COPY %? FROM STDIN %?"); void |