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
=== modified file 'print_data.c'
--- print_data.c 2014-09-04 18:02:09 +0000
+++ print_data.c 2014-09-22 21:07:18 +0000
@@ -177,9 +177,9 @@
177 fprintf(f_result, "\"%02u:%02u:%02u.%d\"", hour, min, sec, frac);177 fprintf(f_result, "\"%02u:%02u:%02u.%d\"", hour, min, sec, frac);
178 }else{178 }else{
179 ltime &= ~(1UL << 23);179 ltime &= ~(1UL << 23);
180 sec = ltime % 60; ltime /= 60;180 sec = ltime % 100; ltime /= 100;
181 min = ltime % 60; ltime /= 60;181 min = ltime % 100; ltime /= 100;
182 hour = ltime % 24;182 hour = ltime;
183 fprintf(f_result, "\"%02u:%02u:%02u\"", hour, min, sec);183 fprintf(f_result, "\"%02u:%02u:%02u\"", hour, min, sec);
184 }184 }
185}185}

Subscribers

People subscribed via source and target branches

to status/vote changes: