-
Bug
-
-
Major
-
Resolution:
Fixed
-
5.5(EOL), 10.0(EOL), 10.1(EOL), 10.2(EOL), 10.3(EOL)
-
-
-
MariaDB [test]> set sql_mode = '';
|
Query OK, 0 rows affected (0.00 sec)
|
|
MariaDB [test]> select timediff('2008-12-31 23:59:59.000001','2008-12-30 01:01:01.000002');
|
+---------------------------------------------------------------------+
|
| timediff('2008-12-31 23:59:59.000001','2008-12-30 01:01:01.000002') |
|
+---------------------------------------------------------------------+
|
| 46:58:57.999999 |
|
+---------------------------------------------------------------------+
|
1 row in set (0.00 sec)
|
|
MariaDB [test]> drop table t1;
|
Query OK, 0 rows affected (0.00 sec)
|
|
MariaDB [test]> CREATE TABLE `t1` (`a` datetime DEFAULT NULL, `b` datetime DEFAULT NULL, `c` time GENERATED ALWAYS AS (timediff(`a`,`b`)) VIRTUAL ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
Query OK, 0 rows affected (0.01 sec)
|
|
MariaDB [test]> insert into t1 values ('2008-12-31 23:59:59.000001','2008-12-30 01:01:01.000002',default);
|
Query OK, 1 row affected (0.00 sec)
|
|
MariaDB [test]> select * from t1;
|
+---------------------+---------------------+----------+
|
| a | b | c |
|
+---------------------+---------------------+----------+
|
| 2008-12-31 23:59:59 | 2008-12-30 01:01:01 | 46:58:58 |
|
+---------------------+---------------------+----------+
|
1 row in set (0.00 sec)
|
|
MariaDB [test]> set sql_mode='NO_ZERO_IN_DATE';
|
Query OK, 0 rows affected (0.00 sec)
|
|
MariaDB [test]> drop table t1;
|
Query OK, 0 rows affected (0.00 sec)
|
|
MariaDB [test]> CREATE TABLE `t1` (`a` datetime DEFAULT NULL, `b` datetime DEFAULT NULL, `c` time GENERATED ALWAYS AS (timediff(`a`,`b`)) VIRTUAL ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
Query OK, 0 rows affected (0.00 sec)
|
|
MariaDB [test]> insert into t1 values ('2008-12-31 23:59:59.000001','2008-12-30 01:01:01.000002',default);
|
Query OK, 1 row affected (0.00 sec)
|
|
MariaDB [test]> select * from t1;
|
+---------------------+---------------------+------+
|
| a | b | c |
|
+---------------------+---------------------+------+
|
| 2008-12-31 23:59:59 | 2008-12-30 01:01:01 | NULL | <---- Notice "NULL"
|
+---------------------+---------------------+------+
|
1 row in set (0.00 sec)
|
- relates to
-
MDEV-7635
update defaults and simplify mysqld config parameters
-
-
Closed
{"report":{"fcp":947.0999999046326,"ttfb":192.5,"pageVisibility":"visible","entityId":59831,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"90beb6da-4696-4489-84dd-ccde19086b10","navigationType":0,"readyForUser":1026.2999999523163,"redirectCount":0,"resourceLoadedEnd":666.2999999523163,"resourceLoadedStart":200,"resourceTiming":[{"duration":143.20000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":200,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":200,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":343.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":143.39999985694885,"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":200.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":200.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":343.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":314.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":200.29999995231628,"connectEnd":200.29999995231628,"connectStart":200.29999995231628,"domainLookupEnd":200.29999995231628,"domainLookupStart":200.29999995231628,"fetchStart":200.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":346.2999999523163,"responseEnd":514.7999999523163,"responseStart":360.5,"secureConnectionStart":200.29999995231628},{"duration":162.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":200.5,"connectEnd":200.5,"connectStart":200.5,"domainLookupEnd":200.5,"domainLookupStart":200.5,"fetchStart":200.5,"redirectEnd":0,"redirectStart":0,"requestStart":347.7999999523163,"responseEnd":363.09999990463257,"responseStart":362.5,"secureConnectionStart":200.5},{"duration":440.09999990463257,"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":200.5,"connectEnd":200.5,"connectStart":200.5,"domainLookupEnd":200.5,"domainLookupStart":200.5,"fetchStart":200.5,"redirectEnd":0,"redirectStart":0,"requestStart":346.7999999523163,"responseEnd":640.5999999046326,"responseStart":369.7999999523163,"secureConnectionStart":200.5},{"duration":172.20000004768372,"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":200.70000004768372,"connectEnd":200.70000004768372,"connectStart":200.70000004768372,"domainLookupEnd":200.70000004768372,"domainLookupStart":200.70000004768372,"fetchStart":200.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":348.7000000476837,"responseEnd":372.90000009536743,"responseStart":372.5,"secureConnectionStart":200.70000004768372},{"duration":229.10000014305115,"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":200.79999995231628,"connectEnd":200.79999995231628,"connectStart":200.79999995231628,"domainLookupEnd":200.79999995231628,"domainLookupStart":200.79999995231628,"fetchStart":200.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":353.7999999523163,"responseEnd":429.90000009536743,"responseStart":429.2999999523163,"secureConnectionStart":200.79999995231628},{"duration":150.5,"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":200.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":200.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":351.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":228.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":201,"connectEnd":201,"connectStart":201,"domainLookupEnd":201,"domainLookupStart":201,"fetchStart":201,"redirectEnd":0,"redirectStart":0,"requestStart":354.5,"responseEnd":429.2999999523163,"responseStart":428.59999990463257,"secureConnectionStart":201},{"duration":153,"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":201.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":201.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":354.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":227.29999995231628,"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":201.20000004768372,"connectEnd":201.20000004768372,"connectStart":201.20000004768372,"domainLookupEnd":201.20000004768372,"domainLookupStart":201.20000004768372,"fetchStart":201.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":355,"responseEnd":428.5,"responseStart":427.40000009536743,"secureConnectionStart":201.20000004768372},{"duration":455.2999999523163,"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.79999995231628,"connectEnd":209.79999995231628,"connectStart":209.79999995231628,"domainLookupEnd":209.79999995231628,"domainLookupStart":209.79999995231628,"fetchStart":209.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":454.5,"responseEnd":665.0999999046326,"responseStart":655.7000000476837,"secureConnectionStart":209.79999995231628},{"duration":456.39999985694885,"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.90000009536743,"connectEnd":209.90000009536743,"connectStart":209.90000009536743,"domainLookupEnd":209.90000009536743,"domainLookupStart":209.90000009536743,"fetchStart":209.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":536.4000000953674,"responseEnd":666.2999999523163,"responseStart":660.4000000953674,"secureConnectionStart":209.90000009536743},{"duration":125.59999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":641.7000000476837,"connectEnd":641.7000000476837,"connectStart":641.7000000476837,"domainLookupEnd":641.7000000476837,"domainLookupStart":641.7000000476837,"fetchStart":641.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":735.7000000476837,"responseEnd":767.2999999523163,"responseStart":766.2999999523163,"secureConnectionStart":641.7000000476837},{"duration":130,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":869,"connectEnd":869,"connectStart":869,"domainLookupEnd":869,"domainLookupStart":869,"fetchStart":869,"redirectEnd":0,"redirectStart":0,"requestStart":965.5999999046326,"responseEnd":999,"responseStart":998.2999999523163,"secureConnectionStart":869}],"fetchStart":0,"domainLookupStart":35,"domainLookupEnd":45,"connectStart":45,"connectEnd":63,"secureConnectionStart":53,"requestStart":64,"responseStart":192,"responseEnd":209,"domLoading":196,"domInteractive":1083,"domContentLoadedEventStart":1083,"domContentLoadedEventEnd":1129,"domComplete":2447,"loadEventStart":2447,"loadEventEnd":2448,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1065.5999999046326},{"name":"bigPipe.sidebar-id.end","time":1066.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1066.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1069},{"name":"activityTabFullyLoaded","time":1142}],"measures":[],"correlationId":"12cd68874e5451","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":70,"dbReadsTimeInMs":11,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}