Skip to content

Commit ea885ad

Browse files
committed
Bug #34308417 Fixing a type-o, should be "truncate"
Contributed by Dimitry Kudryavtsev Change-Id: Ib70c4dfd4d8d350be9f4a3f4df1e36efaaac2979
1 parent 1749b5c commit ea885ad

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mysys/my_time.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2130,7 +2130,8 @@ void get_date_from_daynr(int64_t daynr, uint *ret_year, uint *ret_month,
21302130
if (days_in_year == 366) {
21312131
if (day_of_year > 31 + 28) {
21322132
day_of_year--;
2133-
if (day_of_year == 31 + 28) leap_day = 1; /* Handle leap years leapday */
2133+
if (day_of_year == 31 + 28)
2134+
leap_day = 1; /* Handle leap years leapday */
21342135
}
21352136
}
21362137
*ret_month = 1;
@@ -2515,7 +2516,7 @@ bool datetime_add_nanoseconds_with_round(MYSQL_TIME *ltime, uint nanoseconds,
25152516
}
25162517

25172518
/**
2518-
Add nanoseconds to time and round or tuncate as indicated by argument.
2519+
Add nanoseconds to time and round or truncate as indicated by argument.
25192520
25202521
@param [in,out] ltime MYSQL_TIME variable to add to.
25212522
@param nanoseconds Nanosecons value.
@@ -2533,7 +2534,7 @@ bool time_add_nanoseconds_adjust_frac(MYSQL_TIME *ltime, uint nanoseconds,
25332534
}
25342535

25352536
/**
2536-
Add nanoseconds to datetime and round or tuncate as indicated by argument.
2537+
Add nanoseconds to datetime and round or truncate as indicated by argument.
25372538
25382539
@param [in,out] ltime MYSQL_TIME variable to add to.
25392540
@param nanoseconds Nanoseconds value.

0 commit comments

Comments
 (0)