Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
N/A
create or replace table t1 (i int , s timestamp (6) as row start, e timestamp (6) as row end , c varchar (8), period for system_time(s,e)) with system versioning;
insert into t1 values (1, null , null , 'foo' );
select * from t1;
Insert works without complaints, the resulting data is wrong (note column c ):
MariaDB [test]> insert into t1 values (1, null , null , 'foo' );
Query OK, 1 row affected (0.03 sec)
MariaDB [test]> select * from t1;
+ ------+----------------------------+----------------------------+------+
| i | s | e | c |
+ ------+----------------------------+----------------------------+------+
| 1 | 2017-12-28 20:13:42.655595 | 2038-01-19 05:14:07.999999 | NULL |
+ ------+----------------------------+----------------------------+------+
1 row in set (0.00 sec)
Another variation, if we provide values instead of NULLs – this is especially important, because that's what mysqldump will do:
MariaDB [test]> create or replace table t1 (i int , s timestamp (6) as row start, e timestamp (6) as row end , c varchar (8), period for system_time(s,e)) with system versioning;
Query OK, 0 rows affected (0.22 sec)
MariaDB [test]> insert into t1 values (2, '2012-12-12 12:12:12:121212' , '2012-12-12 12:12:12:121212' , 'bar' );
Query OK, 1 row affected, 1 warning (0.03 sec)
MariaDB [test]> show warnings;
+ ---------+------+----------------------------------------+
| Level | Code | Message |
+ ---------+------+----------------------------------------+
| Warning | 1265 | Data truncated for column 'c' at row 1 |
+ ---------+------+----------------------------------------+
1 row in set (0.00 sec)
MariaDB [test]> select * from t1;
+ ------+----------------------------+----------------------------+----------+
| i | s | e | c |
+ ------+----------------------------+----------------------------+----------+
| 2 | 2017-12-28 20:16:37.635292 | 2038-01-19 05:14:07.999999 | 2012-12- |
+ ------+----------------------------+----------------------------+----------+
1 row in set (0.00 sec)
Now there was a warning, but it's a wrong one anyway. More obvious in strict mode:
MariaDB [test]> set sql_mode= 'strict_all_tables' ;
Query OK, 0 rows affected (0.00 sec)
MariaDB [test]> insert into t1 values (2, '2012-12-12 12:12:12:121212' , '2012-12-12 12:12:12:121212' , 'bar' );
ERROR 1406 (22001): Data too long for column 'c' at row 1
It complain about an attempt to insert into a generated column, not about too long value for c .
There are no comments yet on this issue.
{"report":{"fcp":2023.5999994277954,"ttfb":646.0999994277954,"pageVisibility":"visible","entityId":65021,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"f5e6189a-f5a2-4b06-85a4-2a766a122f79","navigationType":0,"readyForUser":2188.0999994277954,"redirectCount":0,"resourceLoadedEnd":2301.5,"resourceLoadedStart":668.5,"resourceTiming":[{"duration":552.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":668.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":668.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1221,"responseStart":0,"secureConnectionStart":0},{"duration":783.9000005722046,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":668.7999992370605,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":668.7999992370605,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1452.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":796.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":668.8999996185303,"connectEnd":668.8999996185303,"connectStart":668.8999996185303,"domainLookupEnd":668.8999996185303,"domainLookupStart":668.8999996185303,"fetchStart":668.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":668.8999996185303,"responseEnd":1465.1999998092651,"responseStart":1465.1999998092651,"secureConnectionStart":668.8999996185303},{"duration":858.3999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":669.1999998092651,"connectEnd":669.1999998092651,"connectStart":669.1999998092651,"domainLookupEnd":669.1999998092651,"domainLookupStart":669.1999998092651,"fetchStart":669.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":669.1999998092651,"responseEnd":1527.5999994277954,"responseStart":1527.5999994277954,"secureConnectionStart":669.1999998092651},{"duration":862.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":669.3999996185303,"connectEnd":669.3999996185303,"connectStart":669.3999996185303,"domainLookupEnd":669.3999996185303,"domainLookupStart":669.3999996185303,"fetchStart":669.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":669.3999996185303,"responseEnd":1532.1999998092651,"responseStart":1532.0999994277954,"secureConnectionStart":669.3999996185303},{"duration":863.1000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":669.5999994277954,"connectEnd":669.5999994277954,"connectStart":669.5999994277954,"domainLookupEnd":669.5999994277954,"domainLookupStart":669.5999994277954,"fetchStart":669.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":669.5999994277954,"responseEnd":1532.6999998092651,"responseStart":1532.6999998092651,"secureConnectionStart":669.5999994277954},{"duration":863.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":669.7999992370605,"connectEnd":669.7999992370605,"connectStart":669.7999992370605,"domainLookupEnd":669.7999992370605,"domainLookupStart":669.7999992370605,"fetchStart":669.7999992370605,"redirectEnd":0,"redirectStart":0,"requestStart":669.7999992370605,"responseEnd":1533.2999992370605,"responseStart":1533.2999992370605,"secureConnectionStart":669.7999992370605},{"duration":975.8999996185303,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":669.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":669.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1645.7999992370605,"responseStart":0,"secureConnectionStart":0},{"duration":865.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":670.0999994277954,"connectEnd":670.0999994277954,"connectStart":670.0999994277954,"domainLookupEnd":670.0999994277954,"domainLookupStart":670.0999994277954,"fetchStart":670.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":670.0999994277954,"responseEnd":1535.3999996185303,"responseStart":1535.3999996185303,"secureConnectionStart":670.0999994277954},{"duration":975.9000005722046,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/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":670.2999992370605,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":670.2999992370605,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1646.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":866.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/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":670.3999996185303,"connectEnd":670.3999996185303,"connectStart":670.3999996185303,"domainLookupEnd":670.3999996185303,"domainLookupStart":670.3999996185303,"fetchStart":670.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":670.3999996185303,"responseEnd":1537.2999992370605,"responseStart":1537.2999992370605,"secureConnectionStart":670.3999996185303},{"duration":1292.6999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":671.3999996185303,"connectEnd":671.3999996185303,"connectStart":671.3999996185303,"domainLookupEnd":671.3999996185303,"domainLookupStart":671.3999996185303,"fetchStart":671.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":671.3999996185303,"responseEnd":1964.0999994277954,"responseStart":1964.0999994277954,"secureConnectionStart":671.3999996185303},{"duration":1630,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":671.5,"connectEnd":671.5,"connectStart":671.5,"domainLookupEnd":671.5,"domainLookupStart":671.5,"fetchStart":671.5,"redirectEnd":0,"redirectStart":0,"requestStart":671.5,"responseEnd":2301.5,"responseStart":2301.5,"secureConnectionStart":671.5},{"duration":298.29999923706055,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1667.5,"connectEnd":1667.5,"connectStart":1667.5,"domainLookupEnd":1667.5,"domainLookupStart":1667.5,"fetchStart":1667.5,"redirectEnd":0,"redirectStart":0,"requestStart":1667.5,"responseEnd":1965.7999992370605,"responseStart":1965.7999992370605,"secureConnectionStart":1667.5},{"duration":525.1999998092651,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":2015.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":2015.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2540.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":402.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":2057.2999992370605,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":2057.2999992370605,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2459.7999992370605,"responseStart":0,"secureConnectionStart":0},{"duration":402.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/css/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":2058,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":2058,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2460.199999809265,"responseStart":0,"secureConnectionStart":0},{"duration":361.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":2058.8999996185303,"connectEnd":2058.8999996185303,"connectStart":2058.8999996185303,"domainLookupEnd":2058.8999996185303,"domainLookupStart":2058.8999996185303,"fetchStart":2058.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":2058.8999996185303,"responseEnd":2420.699999809265,"responseStart":2420.699999809265,"secureConnectionStart":2058.8999996185303},{"duration":392.5999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":2060.199999809265,"connectEnd":2060.199999809265,"connectStart":2060.199999809265,"domainLookupEnd":2060.199999809265,"domainLookupStart":2060.199999809265,"fetchStart":2060.199999809265,"redirectEnd":0,"redirectStart":0,"requestStart":2060.199999809265,"responseEnd":2452.7999992370605,"responseStart":2452.7999992370605,"secureConnectionStart":2060.199999809265},{"duration":393.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/e0bf5781d46ea69fb123572974cf39de-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/js/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":2061.0999994277954,"connectEnd":2061.0999994277954,"connectStart":2061.0999994277954,"domainLookupEnd":2061.0999994277954,"domainLookupStart":2061.0999994277954,"fetchStart":2061.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":2061.0999994277954,"responseEnd":2454.3999996185303,"responseStart":2454.3999996185303,"secureConnectionStart":2061.0999994277954}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":467,"responseStart":646,"responseEnd":647,"domLoading":665,"domInteractive":2320,"domContentLoadedEventStart":2320,"domContentLoadedEventEnd":2459,"domComplete":2835,"loadEventStart":2835,"loadEventEnd":2836,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2304.699999809265},{"name":"bigPipe.sidebar-id.end","time":2305.5999994277954},{"name":"bigPipe.activity-panel-pipe-id.start","time":2305.699999809265},{"name":"bigPipe.activity-panel-pipe-id.end","time":2306.2999992370605},{"name":"activityTabFullyLoaded","time":2545.2999992370605}],"measures":[],"correlationId":"35fb199db91170","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":94,"dbReadsTimeInMs":11,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}