2 queries, the only difference is that the second query (q2.sql) has an empty trigger.
In version 10.5.26 the behavior is the same (q1.sql and q2.sql), the result is as expected (7 rows affected).
In version 10.5.28 q2.sql gives an unexpected result (2 rows affected, 10 warnings).
- duplicates
-
MDEV-36026
Problem with INSERT SELECT on NOT NULL columns while having BEFORE UPDATE trigger
-
-
Closed
{"report":{"fcp":765.1000000238419,"ttfb":209.29999995231628,"pageVisibility":"visible","entityId":133154,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"7ac2fdc4-9115-4fa2-9a86-2cfddadb5682","navigationType":0,"readyForUser":874.7000000476837,"redirectCount":0,"resourceLoadedEnd":499.7999999523163,"resourceLoadedStart":219.39999997615814,"resourceTiming":[{"duration":6.200000047683716,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":219.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":219.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":225.60000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":6.199999928474426,"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":219.60000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":219.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":225.79999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":154.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":219.79999995231628,"connectEnd":219.79999995231628,"connectStart":219.79999995231628,"domainLookupEnd":219.79999995231628,"domainLookupStart":219.79999995231628,"fetchStart":219.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":229.60000002384186,"responseEnd":374.2000000476837,"responseStart":247.39999997615814,"secureConnectionStart":219.79999995231628},{"duration":268.60000002384186,"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":219.79999995231628,"connectEnd":219.79999995231628,"connectStart":219.79999995231628,"domainLookupEnd":219.79999995231628,"domainLookupStart":219.79999995231628,"fetchStart":219.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":229.70000004768372,"responseEnd":488.39999997615814,"responseStart":265.7000000476837,"secureConnectionStart":219.79999995231628},{"duration":7.100000023841858,"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":220,"connectEnd":220,"connectStart":220,"domainLookupEnd":220,"domainLookupStart":220,"fetchStart":220,"redirectEnd":0,"redirectStart":0,"requestStart":220,"responseEnd":227.10000002384186,"responseStart":227.10000002384186,"secureConnectionStart":220},{"duration":52.10000002384186,"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":220.10000002384186,"connectEnd":220.10000002384186,"connectStart":220.10000002384186,"domainLookupEnd":220.10000002384186,"domainLookupStart":220.10000002384186,"fetchStart":220.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":231.60000002384186,"responseEnd":272.2000000476837,"responseStart":268.10000002384186,"secureConnectionStart":220.10000002384186},{"duration":9.199999928474426,"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":220.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":220.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":229.39999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":51.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":220.20000004768372,"connectEnd":220.20000004768372,"connectStart":220.20000004768372,"domainLookupEnd":220.20000004768372,"domainLookupStart":220.20000004768372,"fetchStart":220.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":232.60000002384186,"responseEnd":272,"responseStart":266.89999997615814,"secureConnectionStart":220.20000004768372},{"duration":87.60000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":220.29999995231628,"connectEnd":220.29999995231628,"connectStart":220.29999995231628,"domainLookupEnd":220.29999995231628,"domainLookupStart":220.29999995231628,"fetchStart":220.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":234.20000004768372,"responseEnd":307.89999997615814,"responseStart":304.5,"secureConnectionStart":220.29999995231628},{"duration":11.5,"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":220.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":220.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":232,"responseStart":0,"secureConnectionStart":0},{"duration":87.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":220.60000002384186,"connectEnd":220.60000002384186,"connectStart":220.60000002384186,"domainLookupEnd":220.60000002384186,"domainLookupStart":220.60000002384186,"fetchStart":220.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":236.5,"responseEnd":308.10000002384186,"responseStart":305.5,"secureConnectionStart":220.60000002384186},{"duration":274.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":223.5,"connectEnd":223.5,"connectStart":223.5,"domainLookupEnd":223.5,"domainLookupStart":223.5,"fetchStart":223.5,"redirectEnd":0,"redirectStart":0,"requestStart":279.7999999523163,"responseEnd":498.39999997615814,"responseStart":491.89999997615814,"secureConnectionStart":223.5},{"duration":276.2999999523163,"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":223.5,"connectEnd":223.5,"connectStart":223.5,"domainLookupEnd":223.5,"domainLookupStart":223.5,"fetchStart":223.5,"redirectEnd":0,"redirectStart":0,"requestStart":280.89999997615814,"responseEnd":499.7999999523163,"responseStart":493.39999997615814,"secureConnectionStart":223.5},{"duration":59.299999952316284,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":522.1000000238419,"connectEnd":522.1000000238419,"connectStart":522.1000000238419,"domainLookupEnd":522.1000000238419,"domainLookupStart":522.1000000238419,"fetchStart":522.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":545,"responseEnd":581.3999999761581,"responseStart":580.1000000238419,"secureConnectionStart":522.1000000238419},{"duration":46.89999997615814,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":757.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":757.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":804.6000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":96.79999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":764.5,"connectEnd":764.5,"connectStart":764.5,"domainLookupEnd":764.5,"domainLookupStart":764.5,"fetchStart":764.5,"redirectEnd":0,"redirectStart":0,"requestStart":828.7999999523163,"responseEnd":861.2999999523163,"responseStart":860.2999999523163,"secureConnectionStart":764.5}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":55,"responseStart":209,"responseEnd":222,"domLoading":213,"domInteractive":929,"domContentLoadedEventStart":929,"domContentLoadedEventEnd":972,"domComplete":1152,"loadEventStart":1152,"loadEventEnd":1152,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":912.5},{"name":"bigPipe.sidebar-id.end","time":913.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":913.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":914.2000000476837},{"name":"activityTabFullyLoaded","time":989.7999999523163}],"measures":[],"correlationId":"d6da5ee6b43c38","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":93,"dbReadsTimeInMs":12,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Thank you for the report!
yes, this is the same problem as
MDEV-36026, I've checked that commit cd7513995dd67bf9376681c0986b8a5c484188c8 fixes the problem , q2.sql returnes the expected result.