The server crashes with a stack trace similar to MDEV-18153. However, here the problem is not related to a change in sql_mode. Possibly, virtual columns containing references to non-virtual TIMESTAMP..ON UPDATE columns, do not catch changes imposed by the ON UPDATE clause.
SET SQL_MODE= DEFAULT;
|
CREATE OR REPLACE TABLE t1 (
|
t TIMESTAMP(4),
|
d DATETIME,
|
v TIMESTAMP(4) AS (t) VIRTUAL,
|
KEY(v,d)
|
);
|
INSERT IGNORE INTO t1 (t,d) VALUES ('2006-03-01 23:59:59.9999','2029-10-10 21:27:53');
|
UPDATE IGNORE t1 SET d = '2019-08-22 05:42:30.9999';
|
UPDATE IGNORE t1 SET d = '2006-04-01 23:59:59.9999';
|
#3 0x00007ffff76eba26 in __assert_fail () from /lib64/libc.so.6
|
#4 0x0000000000eff83a in row_upd_sec_index_entry (node=0x7fff60077c48,
|
thr=0x7fff6007b428)
|
at /home/bar/maria-git/server.10.4/storage/innobase/row/row0upd.cc:2429
|
#5 0x0000000000effeac in row_upd_sec_step (node=0x7fff60077c48,
|
thr=0x7fff6007b428)
|
at /home/bar/maria-git/server.10.4/storage/innobase/row/row0upd.cc:2543
|
#6 0x0000000000f025c4 in row_upd (node=0x7fff60077c48, thr=0x7fff6007b428)
|
at /home/bar/maria-git/server.10.4/storage/innobase/row/row0upd.cc:3319
|
#7 0x0000000000f0292b in row_upd_step (thr=0x7fff6007b428)
|
at /home/bar/maria-git/server.10.4/storage/innobase/row/row0upd.cc:3434
|
#8 0x0000000000eb63da in row_update_for_mysql (prebuilt=0x7fff60077118)
|
at /home/bar/maria-git/server.10.4/storage/innobase/row/row0mysql.cc:1885
|
#9 0x0000000000d60769 in ha_innobase::update_row (this=0x7fff6006f6b8,
|
old_row=0x7fff60073028 "\371]]\363T\"V\231\243\354Z\236]]\363T\"V\245\245\245\245\245\245`0\a`\377\177",
|
new_row=0x7fff60073010 "\371]]\363T\"\227\231x\203~\373]]\363T\"V\245\245\245\245\245\245\371]]\363T\"V\231\243\354Z\236]]\363T\"V\245\245\245\245\245\245`0\a`\377\177")
|
at /home/bar/maria-git/server.10.4/storage/innobase/handler/ha_innodb.cc:8849
|
#10 0x0000000000b4bad6 in handler::ha_update_row (this=0x7fff6006f6b8,
|
old_data=0x7fff60073028 "\371]]\363T\"V\231\243\354Z\236]]\363T\"V\245\245\245\245\245\245`0\a`\377\177",
|
new_data=0x7fff60073010 "\371]]\363T\"\227\231x\203~\373]]\363T\"V\245\245\245\245\245\245\371]]\363T\"V\231\243\354Z\236]]\363T\"V\245\245\245\245\245\245`0\a`\377\177") at /home/bar/maria-git/server.10.4/sql/handler.cc:6727
|
#11 0x000000000091baab in mysql_update (thd=0x7fff60000d60,
|
table_list=0x7fff60014280, fields=..., values=..., conds=0x0, order_num=0,
|
order=0x0, limit=18446744073709551615, ignore=true,
|
found_return=0x7ffff41d6218, updated_return=0x7ffff41d6210)
|
at /home/bar/maria-git/server.10.4/sql/sql_update.cc:1045
|
If I add the DEFAULT clause into the column t, the problem goes away:
SET SQL_MODE= DEFAULT;
|
CREATE OR REPLACE TABLE t1 (
|
t TIMESTAMP(4) DEFAULT '2001-01-01 10:20:30',
|
d DATETIME,
|
v TIMESTAMP(4) AS (t) VIRTUAL,
|
KEY(v,d)
|
);
|
INSERT IGNORE INTO t1 (t,d) VALUES ('2006-03-01 23:59:59.9999','2029-10-10 21:27:53');
|
UPDATE IGNORE t1 SET d = '2019-08-22 05:42:30.9999';
|
UPDATE IGNORE t1 SET d = '2006-04-01 23:59:59.9999';
|
There are no comments yet on this issue.
{"report":{"fcp":1187.7999999523163,"ttfb":413.7000000476837,"pageVisibility":"visible","entityId":78378,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"b89b5858-7542-40fa-8e00-54a06c479812","navigationType":0,"readyForUser":1281,"redirectCount":0,"resourceLoadedEnd":1337.4000000953674,"resourceLoadedStart":418.90000009536743,"resourceTiming":[{"duration":140,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":418.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":418.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":558.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":139.90000009536743,"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":419.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":419.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":559.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":199.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":419.40000009536743,"connectEnd":419.40000009536743,"connectStart":419.40000009536743,"domainLookupEnd":419.40000009536743,"domainLookupStart":419.40000009536743,"fetchStart":419.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":419.40000009536743,"responseEnd":618.5,"responseStart":618.5,"secureConnectionStart":419.40000009536743},{"duration":307.5,"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":419.59999990463257,"connectEnd":419.59999990463257,"connectStart":419.59999990463257,"domainLookupEnd":419.59999990463257,"domainLookupStart":419.59999990463257,"fetchStart":419.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":419.59999990463257,"responseEnd":727.0999999046326,"responseStart":727.0999999046326,"secureConnectionStart":419.59999990463257},{"duration":312.2999999523163,"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":419.7000000476837,"connectEnd":419.7000000476837,"connectStart":419.7000000476837,"domainLookupEnd":419.7000000476837,"domainLookupStart":419.7000000476837,"fetchStart":419.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":419.7000000476837,"responseEnd":732,"responseStart":732,"secureConnectionStart":419.7000000476837},{"duration":312.5,"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":420,"connectEnd":420,"connectStart":420,"domainLookupEnd":420,"domainLookupStart":420,"fetchStart":420,"redirectEnd":0,"redirectStart":0,"requestStart":420,"responseEnd":732.5,"responseStart":732.5,"secureConnectionStart":420},{"duration":312.90000009536743,"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":420,"connectEnd":420,"connectStart":420,"domainLookupEnd":420,"domainLookupStart":420,"fetchStart":420,"redirectEnd":0,"redirectStart":0,"requestStart":420,"responseEnd":732.9000000953674,"responseStart":732.9000000953674,"secureConnectionStart":420},{"duration":350.5,"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":420.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":420.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":770.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":313,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":420.40000009536743,"connectEnd":420.40000009536743,"connectStart":420.40000009536743,"domainLookupEnd":420.40000009536743,"domainLookupStart":420.40000009536743,"fetchStart":420.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":420.40000009536743,"responseEnd":733.4000000953674,"responseStart":733.4000000953674,"secureConnectionStart":420.40000009536743},{"duration":350.5,"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":420.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":420.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":771,"responseStart":0,"secureConnectionStart":0},{"duration":313.39999985694885,"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":420.7000000476837,"connectEnd":420.7000000476837,"connectStart":420.7000000476837,"domainLookupEnd":420.7000000476837,"domainLookupStart":420.7000000476837,"fetchStart":420.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":420.7000000476837,"responseEnd":734.0999999046326,"responseStart":734.0999999046326,"secureConnectionStart":420.7000000476837},{"duration":553.1000001430511,"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":430.2999999523163,"connectEnd":430.2999999523163,"connectStart":430.2999999523163,"domainLookupEnd":430.2999999523163,"domainLookupStart":430.2999999523163,"fetchStart":430.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":430.2999999523163,"responseEnd":983.4000000953674,"responseStart":983.4000000953674,"secureConnectionStart":430.2999999523163},{"duration":838.2999999523163,"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":430.40000009536743,"connectEnd":430.40000009536743,"connectStart":430.40000009536743,"domainLookupEnd":430.40000009536743,"domainLookupStart":430.40000009536743,"fetchStart":430.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":430.40000009536743,"responseEnd":1268.7000000476837,"responseStart":1268.7000000476837,"secureConnectionStart":430.40000009536743},{"duration":199.70000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":784.2000000476837,"connectEnd":784.2000000476837,"connectStart":784.2000000476837,"domainLookupEnd":784.2000000476837,"domainLookupStart":784.2000000476837,"fetchStart":784.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":784.2000000476837,"responseEnd":983.9000000953674,"responseStart":983.9000000953674,"secureConnectionStart":784.2000000476837},{"duration":264.40000009536743,"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":1073,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1073,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1337.4000000953674,"responseStart":0,"secureConnectionStart":0}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":241,"responseStart":414,"responseEnd":428,"domLoading":418,"domInteractive":1360,"domContentLoadedEventStart":1360,"domContentLoadedEventEnd":1403,"domComplete":1858,"loadEventStart":1858,"loadEventEnd":1858,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1350.2999999523163},{"name":"bigPipe.sidebar-id.end","time":1351.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1351.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":1351.7999999523163},{"name":"activityTabFullyLoaded","time":1413.5}],"measures":[],"correlationId":"14f753cf9e2d8f","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":103,"dbReadsTimeInMs":13,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}