mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-26 00:20:34 +01:00
#3559: Poco::Data::PostgreSQL - DateTime extraction truncates fractional seconds
This commit is contained in:
parent
b158f90381
commit
4b0e1848b2
@ -314,7 +314,7 @@ bool Extractor::extract(std::size_t pos, DateTime& val)
|
||||
|
||||
int tzd = -1;
|
||||
DateTime dateTime;
|
||||
if (!DateTimeParser::tryParse(outputParameter.pData(), dateTime, tzd))
|
||||
if (!DateTimeParser::tryParse("%Y-%m-%d %H:%M:%s", outputParameter.pData(), dateTime, tzd))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user