mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-12-25 23:40:50 +08:00
Remove unnecessary floor() when binding time_of_day parameter
This commit is contained in:
parent
e3f676079b
commit
b445f24b24
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user