merge pg binary extraction support

This commit is contained in:
Günter Obiltschnig
2022-05-17 07:22:04 +02:00
parent 9577af8c6c
commit 562b3b90c0
17 changed files with 1712 additions and 70 deletions

View File

@@ -493,6 +493,23 @@ std::string SessionHandle::clientEncoding() const
}
std::string SessionHandle::parameterStatus(const std::string& param) const
{
Poco::FastMutex::ScopedLock mutexLocker(_sessionMutex);
if (!isConnectedNoLock())
{
throw NotConnectedException();
}
const char* pValue = PQparameterStatus(_pConnection, param.c_str());
if (pValue)
return std::string(pValue);
else
return std::string();
}
int SessionHandle::libpqVersion() const
{
return PQlibVersion();