#3935: The extractor in postgresql drops milliseconds

This commit is contained in:
Günter Obiltschnig 2023-07-10 21:52:36 +02:00
parent 00e157da43
commit 5f17a02548

View File

@ -313,7 +313,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;
}