Skip to content

Commit

Permalink
MDEV-15176: comment fix "1 00:10:10" -> "24:10:10"
Browse files Browse the repository at this point in the history
Applying #594
to bb-10.2-ext
  • Loading branch information
Alexander Barkov committed Feb 5, 2018
1 parent d67dcb7 commit b4db96d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/compat56.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ longlong TIME_to_longlong_time_packed(const MYSQL_TIME *ltime)
{
DBUG_ASSERT(ltime->year == 0);
DBUG_ASSERT(ltime->month == 0);
// Mix days with hours: "1 00:10:10" -> "24:00:10"
// Mix days with hours: "1 00:10:10" -> "24:10:10"
long hms= ((ltime->day * 24 + ltime->hour) << 12) |
(ltime->minute << 6) | ltime->second;
longlong tmp= MY_PACKED_TIME_MAKE(hms, ltime->second_part);
Expand Down

0 comments on commit b4db96d

Please sign in to comment.