CREATETABLE t (a TIMESTAMP, b DATE GENERATED ALWAYS AS (a) VIRTUAL, KEY(b));
INSERTINTO t (a) VALUES ('1999-01-31 22:00:00'),('1990-01-01 00:00:00');
SET TIME_ZONE='+02:00';
CHECKTABLE t EXTENDED;
DROPTABLE t;
Sergei Golubchik
added a comment - Same without DATE() :
SET TIME_ZONE= '+00:00' ;
CREATE TABLE t (a TIMESTAMP , b DATE GENERATED ALWAYS AS (a) VIRTUAL, KEY (b));
INSERT INTO t (a) VALUES ( '1999-01-31 22:00:00' ),( '1990-01-01 00:00:00' );
SET TIME_ZONE= '+02:00' ;
CHECK TABLE t EXTENDED;
DROP TABLE t;
DATE was added just to make the test case more "valid", to avoid the truncation warning upon INSERT.
For an additional note, the test case itself was not artificial, as it may seem based on timezone changes within a session.
Initially the failure was observed upon restoration of mysqldump dump, followed by a health check via CHECK TABLE. mysqldump by default sets the timezone to 0 in the beginning and restores the original (typically non-zero) value at the end of the dump.
Elena Stepanova
added a comment - DATE was added just to make the test case more "valid", to avoid the truncation warning upon INSERT.
For an additional note, the test case itself was not artificial, as it may seem based on timezone changes within a session.
Initially the failure was observed upon restoration of mysqldump dump, followed by a health check via CHECK TABLE. mysqldump by default sets the timezone to 0 in the beginning and restores the original (typically non-zero) value at the end of the dump.
People
Alexander Barkov
Elena Stepanova
Votes:
0Vote for this issue
Watchers:
2Start 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.
{"report":{"fcp":767.3999999761581,"ttfb":196.79999995231628,"pageVisibility":"visible","entityId":126668,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"24acc18c-1e7a-49a8-ab55-59276cf6e771","navigationType":0,"readyForUser":849.1999999284744,"redirectCount":0,"resourceLoadedEnd":493.59999990463257,"resourceLoadedStart":201.39999997615814,"resourceTiming":[{"duration":11.899999976158142,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":201.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":201.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":213.29999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":11.899999976158142,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":201.69999992847443,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":201.69999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":213.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":168.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":201.79999995231628,"connectEnd":201.79999995231628,"connectStart":201.79999995231628,"domainLookupEnd":201.79999995231628,"domainLookupStart":201.79999995231628,"fetchStart":201.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":221,"responseEnd":370.2999999523163,"responseStart":244.39999997615814,"secureConnectionStart":201.79999995231628},{"duration":291.6999999284744,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":201.89999997615814,"connectEnd":201.89999997615814,"connectStart":201.89999997615814,"domainLookupEnd":201.89999997615814,"domainLookupStart":201.89999997615814,"fetchStart":201.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":222.19999992847443,"responseEnd":493.59999990463257,"responseStart":245,"secureConnectionStart":201.89999997615814},{"duration":47.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":202,"connectEnd":202,"connectStart":202,"domainLookupEnd":202,"domainLookupStart":202,"fetchStart":202,"redirectEnd":0,"redirectStart":0,"requestStart":222.89999997615814,"responseEnd":249.59999990463257,"responseStart":246.69999992847443,"secureConnectionStart":202},{"duration":48.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":202,"connectEnd":202,"connectStart":202,"domainLookupEnd":202,"domainLookupStart":202,"fetchStart":202,"redirectEnd":0,"redirectStart":0,"requestStart":224.09999990463257,"responseEnd":250.09999990463257,"responseStart":247.39999997615814,"secureConnectionStart":202},{"duration":48.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":202.09999990463257,"connectEnd":202.09999990463257,"connectStart":202.09999990463257,"domainLookupEnd":202.09999990463257,"domainLookupStart":202.09999990463257,"fetchStart":202.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":224.19999992847443,"responseEnd":250.5,"responseStart":248,"secureConnectionStart":202.09999990463257},{"duration":20.600000023841858,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":202.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":202.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":222.89999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":48.299999952316284,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":202.39999997615814,"connectEnd":202.39999997615814,"connectStart":202.39999997615814,"domainLookupEnd":202.39999997615814,"domainLookupStart":202.39999997615814,"fetchStart":202.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":225,"responseEnd":250.69999992847443,"responseStart":248.5,"secureConnectionStart":202.39999997615814},{"duration":16.199999928474426,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":208.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":208.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":224.69999992847443,"responseStart":0,"secureConnectionStart":0},{"duration":51.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":208.59999990463257,"connectEnd":208.59999990463257,"connectStart":208.59999990463257,"domainLookupEnd":208.59999990463257,"domainLookupStart":208.59999990463257,"fetchStart":208.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":230.39999997615814,"responseEnd":260.09999990463257,"responseStart":258.6999999284744,"secureConnectionStart":208.59999990463257},{"duration":278.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":209.19999992847443,"connectEnd":209.19999992847443,"connectStart":209.19999992847443,"domainLookupEnd":209.19999992847443,"domainLookupStart":209.19999992847443,"fetchStart":209.19999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":239.89999997615814,"responseEnd":488.09999990463257,"responseStart":485.7999999523163,"secureConnectionStart":209.19999992847443},{"duration":278.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":209.39999997615814,"connectEnd":209.39999997615814,"connectStart":209.39999997615814,"domainLookupEnd":209.39999997615814,"domainLookupStart":209.39999997615814,"fetchStart":209.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":244.19999992847443,"responseEnd":488.1999999284744,"responseStart":486.2999999523163,"secureConnectionStart":209.39999997615814},{"duration":141.29999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":520,"connectEnd":520,"connectStart":520,"domainLookupEnd":520,"domainLookupStart":520,"fetchStart":520,"redirectEnd":0,"redirectStart":0,"requestStart":626.5,"responseEnd":661.2999999523163,"responseStart":660.5,"secureConnectionStart":520}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":22,"responseStart":197,"responseEnd":211,"domLoading":200,"domInteractive":922,"domContentLoadedEventStart":922,"domContentLoadedEventEnd":972,"domComplete":1544,"loadEventStart":1544,"loadEventEnd":1544,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":897.1999999284744},{"name":"bigPipe.sidebar-id.end","time":898},{"name":"bigPipe.activity-panel-pipe-id.start","time":898.1999999284744},{"name":"bigPipe.activity-panel-pipe-id.end","time":899.5999999046326},{"name":"activityTabFullyLoaded","time":997.6999999284744}],"measures":[],"correlationId":"15a4d27ad332e3","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":94,"dbReadsTimeInMs":10,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Same without DATE():