Merge lp:~lefred/undrop-for-innodb/undrop-for-innodb_time into lp:undrop-for-innodb

Proposed by Frederic Descamps
Status: Needs review
Proposed branch: lp:~lefred/undrop-for-innodb/undrop-for-innodb_time
Merge into: lp:undrop-for-innodb
Diff against target: 16 lines (+3/-3)
1 file modified
print_data.c (+3/-3)
To merge this branch: bzr merge lp:~lefred/undrop-for-innodb/undrop-for-innodb_time
Reviewer Review Type Date Requested Status
Aleksandr Kuzminsky Pending
Review via email: mp+235535@code.launchpad.net

Description of the change

When you have a TIME field, in a 5.5 , a column with "11.00.00" is currently restored as "06:33:27".

This version fix that issue.

To post a comment you must log in.

Unmerged revisions

24. By lefred <email address hidden>

Fix time

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'print_data.c'
2--- print_data.c 2014-09-04 18:02:09 +0000
3+++ print_data.c 2014-09-22 21:07:18 +0000
4@@ -177,9 +177,9 @@
5 fprintf(f_result, "\"%02u:%02u:%02u.%d\"", hour, min, sec, frac);
6 }else{
7 ltime &= ~(1UL << 23);
8- sec = ltime % 60; ltime /= 60;
9- min = ltime % 60; ltime /= 60;
10- hour = ltime % 24;
11+ sec = ltime % 100; ltime /= 100;
12+ min = ltime % 100; ltime /= 100;
13+ hour = ltime;
14 fprintf(f_result, "\"%02u:%02u:%02u\"", hour, min, sec);
15 }
16 }

Subscribers

People subscribed via source and target branches

to status/vote changes: