mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-21 06:37:42 +01:00
merge Postgres fixes from 1.10.2
This commit is contained in:
parent
9906cf4995
commit
49cd3028f4
@ -69,7 +69,7 @@ bool Extractor::extract(std::size_t pos, Poco::UInt8& val)
|
||||
return false;
|
||||
}
|
||||
|
||||
val = static_cast<Int8>(tempVal);
|
||||
val = static_cast<UInt8>(tempVal);
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -88,7 +88,7 @@ bool Extractor::extract(std::size_t pos, Poco::Int16& val)
|
||||
return false;
|
||||
}
|
||||
|
||||
val = static_cast<Int8>(tempVal);
|
||||
val = static_cast<Int16>(tempVal);
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -107,7 +107,7 @@ bool Extractor::extract(std::size_t pos, Poco::UInt16& val)
|
||||
return false;
|
||||
}
|
||||
|
||||
val = static_cast<Int8>(tempVal);
|
||||
val = static_cast<UInt16>(tempVal);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -57,7 +57,8 @@ namespace PostgreSQL {
|
||||
|
||||
|
||||
SessionImpl::SessionImpl(const std::string& aConnectionString, std::size_t aLoginTimeout):
|
||||
Poco::Data::AbstractSessionImpl<SessionImpl>(aConnectionString, aLoginTimeout)
|
||||
Poco::Data::AbstractSessionImpl<SessionImpl>(aConnectionString, aLoginTimeout),
|
||||
_connectorName("postgresql")
|
||||
{
|
||||
setProperty("handle", static_cast<SessionHandle*>(&_sessionHandle));
|
||||
setConnectionTimeout(CONNECTION_TIMEOUT_DEFAULT);
|
||||
|
Loading…
x
Reference in New Issue
Block a user