create_defs.pl generates wrong template for TIME

Bug #508852 reported by Aleksandr Kuzminsky
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Data Recovery Tool for InnoDB
Fix Released
Undecided
Aleksandr Kuzminsky

Bug Description

        if ($type =~ /TIME/i) {
                return { type => 'FT_DATE', fixed_len => 3 };
        }

Revision history for this message
Aleksandr Kuzminsky (akuzminsky) wrote :

FT_DATE type is set however new type FT_TIME is needed.
TIME is stored i 3 bytes, but different encoding from DATE.

  * DATE: A three-byte integer packed as DD + MM×32 + YYYY×16×32
  * TIME: A three-byte integer packed as DD×24×3600 + HH×3600 + MM×60 + SS

Changed in percona-innodb-recovery-tool:
status: New → Fix Committed
assignee: nobody → Aleksandr Kuzminsky (akuzminsky)
Changed in percona-data-recovery-tool-for-innodb:
milestone: none → release-0.5
Changed in percona-data-recovery-tool-for-innodb:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.