From 1727eb6faa1e1d7c194d7feabf1ed296cd481d36 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 9 Oct 2023 00:41:23 +0100 Subject: Explicit instantiation of checkResult Fixes issue where otherwise they could be optimised away whilst being required outside the current translation unit. --- libpqpp/pq-connection.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3