Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-32930

mysqlbinlog --verbose shows incorrect values for timestamps >= 2^31 if binlog was created with mysql56_temporal_format=off

    XMLWordPrintable

Details

    Description

      --source include/have_binlog_format_row.inc
       
      set @format.save= @@mysql56_temporal_format;
      set global mysql56_temporal_format= off;
       
      create table t (a timestamp);
      insert into t values (from_unixtime(power(2,31)));
       
      --let $datadir= `select @@datadir`
      flush binary logs;
      --exec $MYSQL_BINLOG --verbose $datadir/master-bin.000001
       
      drop table t;
      set global mysql56_temporal_format= @format.save;
      

      bb-11.3-timestamp fd6689da3fffc4d57d8ebde5f8776aefa8cdb8a4

      ### INSERT INTO `test`.`t`
      ### SET
      ###   @1=-2147483648
      

      Attachments

        Issue Links

          Activity

            People

              monty Michael Widenius
              elenst Elena Stepanova
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.