0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-12-26 07:53:21 +08:00

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; int result;
if (not is_null) 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{}; std::ostringstream os; // gcc-4.9 does not support auto os = std::ostringstream{};
os << time; os << time;
const auto text = os.str(); const auto text = os.str();