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

DST and timestamp comparison

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.2(EOL), 10.3(EOL), 10.4(EOL)
    • 10.6
    • Temporal Types, Time zones
    • None

    Description

      set time_zone='Europe/Moscow';
      create table t1 (a int, d timestamp);
      set @@timestamp=1067121000;
      select now();
      insert into t1 values (1, current_timestamp()), (2, current_timestamp());
      set @@timestamp=1067121001;
      update t1 set d= current_timestamp() where a = 2;
      set @@timestamp=1067122860;
      select now();
      insert into t1 values (3, current_timestamp()), (4, current_timestamp());
      set @@timestamp=1067122861;
      update t1 set d= current_timestamp() where a = 4;
      select a,d,now(),unix_timestamp(d),unix_timestamp(now()) from t1;
      select a,d,now(),unix_timestamp(d),unix_timestamp(now()) from t1 where d > current_timestamp();
      drop table t1;
      

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              serg Sergei Golubchik
              Votes:
              0 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.