Skip to content

Commit

Permalink
Remove unnecessary floor() when binding time_of_day parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
vaijns authored and rbock committed Dec 7, 2024
1 parent e3f6760 commit b445f24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/sqlpp11/sqlite3/prepared_statement.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b445f24

Please sign in to comment.