CREATE TABLE t1 (c CHAR(3), t TIMESTAMP INVISIBLE);
|
INSERT INTO t1 (c,t) VALUES ('foo','2000-01-01 00:00:00');
|
|
CREATE TRIGGER tr BEFORE INSERT ON t1 FOR EACH ROW SET @a= 1;
|
INSERT INTO t1 SELECT * FROM t1;
|
|
# Cleanup
|
DROP TABLE t1;
|
10.3 69efa1343a0a047
|
#3 <signal handler called>
|
#4 0x0000556623cb06b8 in fill_record (thd=0x7fc5b0000b00, table=0x7fc5b00753f0, ptr=0x7fc5b0076a68, values=..., ignore_errors=true, use_value=false) at /data/src/10.3/sql/sql_base.cc:8457
|
#5 0x0000556623cb0927 in fill_record_n_invoke_before_triggers (thd=0x7fc5b0000b00, table=0x7fc5b00753f0, ptr=0x7fc5b0076a58, values=..., ignore_errors=true, event=TRG_EVENT_INSERT) at /data/src/10.3/sql/sql_base.cc:8510
|
#6 0x0000556623cfa8e6 in select_insert::store_values (this=0x7fc5b0016ed8, values=...) at /data/src/10.3/sql/sql_insert.cc:3904
|
#7 0x0000556623cfa58e in select_insert::send_data (this=0x7fc5b0016ed8, values=...) at /data/src/10.3/sql/sql_insert.cc:3837
|
#8 0x0000556623da4694 in end_send (join=0x7fc5b0016f80, join_tab=0x0, end_of_records=false) at /data/src/10.3/sql/sql_select.cc:20407
|
#9 0x0000556623da0bb0 in do_select (join=0x7fc5b0016f80, procedure=0x0) at /data/src/10.3/sql/sql_select.cc:18735
|
#10 0x0000556623d79e78 in JOIN::exec_inner (this=0x7fc5b0016f80) at /data/src/10.3/sql/sql_select.cc:3989
|
#11 0x0000556623d79310 in JOIN::exec (this=0x7fc5b0016f80) at /data/src/10.3/sql/sql_select.cc:3783
|
#12 0x0000556623d7a551 in mysql_select (thd=0x7fc5b0000b00, tables=0x7fc5b00155f0, wild_num=1, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=3489925888, result=0x7fc5b0016ed8, unit=0x7fc5b0004948, select_lex=0x7fc5b00050c0) at /data/src/10.3/sql/sql_select.cc:4188
|
#13 0x0000556623d6c7f5 in handle_select (thd=0x7fc5b0000b00, lex=0x7fc5b0004880, result=0x7fc5b0016ed8, setup_tables_done_option=1073741824) at /data/src/10.3/sql/sql_select.cc:382
|
#14 0x0000556623d3130f in mysql_execute_command (thd=0x7fc5b0000b00) at /data/src/10.3/sql/sql_parse.cc:4833
|
#15 0x0000556623d3b39c in mysql_parse (thd=0x7fc5b0000b00, rawbuf=0x7fc5b0014d58 "INSERT INTO t1 SELECT * FROM t1", length=31, parser_state=0x7fc5cc74c5d0, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:8013
|
#16 0x0000556623d28a4f in dispatch_command (command=COM_QUERY, thd=0x7fc5b0000b00, packet=0x7fc5b008fe31 "INSERT INTO t1 SELECT * FROM t1", packet_length=31, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1842
|
#17 0x0000556623d2748e in do_command (thd=0x7fc5b0000b00) at /data/src/10.3/sql/sql_parse.cc:1387
|
#18 0x0000556623e8bde5 in do_handle_one_connection (connect=0x556627b61220) at /data/src/10.3/sql/sql_connect.cc:1402
|
#19 0x0000556623e8bb72 in handle_one_connection (arg=0x556627b61220) at /data/src/10.3/sql/sql_connect.cc:1308
|
#20 0x0000556624312c2b in pfs_spawn_thread (arg=0x556627c236c0) at /data/src/10.3/storage/perfschema/pfs.cc:1862
|
#21 0x00007fc5d3a7b494 in start_thread (arg=0x7fc5cc74d700) at pthread_create.c:333
|
#22 0x00007fc5d1e6193f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
Reproducible with at least MyISAM, InnoDB, Aria.
{"report":{"fcp":1107.3000001907349,"ttfb":466.5,"pageVisibility":"visible","entityId":66630,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"7e17e5d6-d322-4aed-94af-2b4a99b89459","navigationType":0,"readyForUser":1221.6000001430511,"redirectCount":0,"resourceLoadedEnd":843.1000001430511,"resourceLoadedStart":474.30000019073486,"resourceTiming":[{"duration":9.899999856948853,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":474.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":474.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":484.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":9.899999856948853,"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":474.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":474.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":484.5,"responseStart":0,"secureConnectionStart":0},{"duration":225,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":474.7000000476837,"connectEnd":474.7000000476837,"connectStart":474.7000000476837,"domainLookupEnd":474.7000000476837,"domainLookupStart":474.7000000476837,"fetchStart":474.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":488.10000014305115,"responseEnd":699.7000000476837,"responseStart":513.9000000953674,"secureConnectionStart":474.7000000476837},{"duration":368.40000009536743,"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":474.7000000476837,"connectEnd":474.7000000476837,"connectStart":474.7000000476837,"domainLookupEnd":474.7000000476837,"domainLookupStart":474.7000000476837,"fetchStart":474.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":488.30000019073486,"responseEnd":843.1000001430511,"responseStart":533.5,"secureConnectionStart":474.7000000476837},{"duration":46.5,"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":474.80000019073486,"connectEnd":474.80000019073486,"connectStart":474.80000019073486,"domainLookupEnd":474.80000019073486,"domainLookupStart":474.80000019073486,"fetchStart":474.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":488.5,"responseEnd":521.3000001907349,"responseStart":516.2000000476837,"secureConnectionStart":474.80000019073486},{"duration":50.60000014305115,"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":475,"connectEnd":475,"connectStart":475,"domainLookupEnd":475,"domainLookupStart":475,"fetchStart":475,"redirectEnd":0,"redirectStart":0,"requestStart":493,"responseEnd":525.6000001430511,"responseStart":523.3000001907349,"secureConnectionStart":475},{"duration":14.599999904632568,"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":475.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":475.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":489.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":50.799999952316284,"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":475.10000014305115,"connectEnd":475.10000014305115,"connectStart":475.10000014305115,"domainLookupEnd":475.10000014305115,"domainLookupStart":475.10000014305115,"fetchStart":475.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":494.5,"responseEnd":525.9000000953674,"responseStart":523.8000001907349,"secureConnectionStart":475.10000014305115},{"duration":53.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":475.2000000476837,"connectEnd":475.2000000476837,"connectStart":475.2000000476837,"domainLookupEnd":475.2000000476837,"domainLookupStart":475.2000000476837,"fetchStart":475.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":496.90000009536743,"responseEnd":528.3000001907349,"responseStart":526.4000000953674,"secureConnectionStart":475.2000000476837},{"duration":17,"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":475.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":475.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":492.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":56.10000014305115,"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":475.5,"connectEnd":475.5,"connectStart":475.5,"domainLookupEnd":475.5,"domainLookupStart":475.5,"fetchStart":475.5,"redirectEnd":0,"redirectStart":0,"requestStart":497.10000014305115,"responseEnd":531.6000001430511,"responseStart":526.9000000953674,"secureConnectionStart":475.5},{"duration":283.10000014305115,"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":488,"connectEnd":488,"connectStart":488,"domainLookupEnd":488,"domainLookupStart":488,"fetchStart":488,"redirectEnd":0,"redirectStart":0,"requestStart":525.3000001907349,"responseEnd":771.1000001430511,"responseStart":767.1000001430511,"secureConnectionStart":488},{"duration":281.5,"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":489.40000009536743,"connectEnd":489.40000009536743,"connectStart":489.40000009536743,"domainLookupEnd":489.40000009536743,"domainLookupStart":489.40000009536743,"fetchStart":489.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":525.2000000476837,"responseEnd":770.9000000953674,"responseStart":766.5,"secureConnectionStart":489.40000009536743},{"duration":99.59999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":843.3000001907349,"connectEnd":843.3000001907349,"connectStart":843.3000001907349,"domainLookupEnd":843.3000001907349,"domainLookupStart":843.3000001907349,"fetchStart":843.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":911.3000001907349,"responseEnd":942.9000000953674,"responseStart":942.2000000476837,"secureConnectionStart":843.3000001907349},{"duration":104,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1063.7000000476837,"connectEnd":1063.7000000476837,"connectStart":1063.7000000476837,"domainLookupEnd":1063.7000000476837,"domainLookupStart":1063.7000000476837,"fetchStart":1063.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1137.4000000953674,"responseEnd":1167.7000000476837,"responseStart":1164.5,"secureConnectionStart":1063.7000000476837},{"duration":159.70000004768372,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1100.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1100.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1260.4000000953674,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":245,"domainLookupEnd":265,"connectStart":265,"connectEnd":286,"secureConnectionStart":274,"requestStart":286,"responseStart":467,"responseEnd":489,"domLoading":470,"domInteractive":1294,"domContentLoadedEventStart":1294,"domContentLoadedEventEnd":1352,"domComplete":1720,"loadEventStart":1720,"loadEventEnd":1720,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1261.2000000476837},{"name":"bigPipe.sidebar-id.end","time":1262},{"name":"bigPipe.activity-panel-pipe-id.start","time":1262.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1265.9000000953674},{"name":"activityTabFullyLoaded","time":1366.9000000953674}],"measures":[],"correlationId":"12d43fc98174d2","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":86,"dbReadsTimeInMs":11,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Patch
diff --git a/sql/sql_trigger.cc b/sql/sql_trigger.cc
index 4c1e2a5..d523779 100644
--- a/sql/sql_trigger.cc
+++ b/sql/sql_trigger.cc
@@ -1240,6 +1240,7 @@ bool Table_triggers_list::prepare_record_accessors(TABLE *table)
return 1;
f->flags= (*fld)->flags;
+ f->invisible= (*fld)->invisible;
f->null_ptr= null_ptr;
f->null_bit= null_bit;