Remove unnecessary floor() when binding time_of_day parameter

This commit is contained in:
vaijns
2024-12-07 12:50:25 +01:00
committed by Roland Bock
parent e3f676079b
commit b445f24b24

View File

@@ -256,7 +256,7 @@ namespace sqlpp
int result;
if (not is_null)
{
const auto time = ::date::make_time(::sqlpp::chrono::floor<::std::chrono::microseconds>(*value));
const auto time = ::date::make_time(*value);
std::ostringstream os; // gcc-4.9 does not support auto os = std::ostringstream{};
os << time;
const auto text = os.str();