An UPDATE statement that reads against (but does not modify) a MRG_MyISAM table with a read-only sub-table fails.
drop table if exists t1, t2, t2_0;
|
CREATE TABLE `t1` (
|
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
`a` int(11) DEFAULT NULL,
|
PRIMARY KEY (`id`)
|
) ENGINE=MyISAM;
|
|
CREATE TABLE `t2_0` (
|
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
`b` int(11) DEFAULT NULL,
|
PRIMARY KEY (`id`)
|
) ENGINE=MyISAM;
|
|
CREATE TABLE `t2` (
|
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
`b` int(11) DEFAULT NULL,
|
PRIMARY KEY (`id`)
|
) ENGINE=MRG_MyISAM UNION=(`t2_0`);
|
|
FLUSH TABLES;
|
myisampack -f ./data/test/t2_0
|
myisamchk -rq ./data/test/t2_0
|
update t1 join t2 using (id) set t1.a=t2.b;
|
> update t1 join t2 using (id) set t1.a=t2.b;
|
ERROR 1036 (HY000): Table 't2_0' is read only
|
This works in MySQL 5.1, but fails in MySQL 5.5 and MariaDB 5.5.
- is blocked by
-
MDEV-5981
name resolution issues with views and multi-update in ps-protocol
-
-
Closed
{"report":{"fcp":834.1999999284744,"ttfb":257.89999997615814,"pageVisibility":"visible","entityId":35303,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"5c4a3120-b7ff-4df0-b4a0-96c8fdcb9df7","navigationType":0,"readyForUser":906.6000000238419,"redirectCount":0,"resourceLoadedEnd":542.6999999284744,"resourceLoadedStart":266,"resourceTiming":[{"duration":4.600000023841858,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":266,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":266,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":270.60000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":4.700000047683716,"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":266.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":266.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":271,"responseStart":0,"secureConnectionStart":0},{"duration":121.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":266.39999997615814,"connectEnd":266.39999997615814,"connectStart":266.39999997615814,"domainLookupEnd":266.39999997615814,"domainLookupStart":266.39999997615814,"fetchStart":266.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":272.7999999523163,"responseEnd":387.5,"responseStart":287.6999999284744,"secureConnectionStart":266.39999997615814},{"duration":275.6999999284744,"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":267,"connectEnd":267,"connectStart":267,"domainLookupEnd":267,"domainLookupStart":267,"fetchStart":267,"redirectEnd":0,"redirectStart":0,"requestStart":273.39999997615814,"responseEnd":542.6999999284744,"responseStart":296.39999997615814,"secureConnectionStart":267},{"duration":36,"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":267.2999999523163,"connectEnd":267.2999999523163,"connectStart":267.2999999523163,"domainLookupEnd":267.2999999523163,"domainLookupStart":267.2999999523163,"fetchStart":267.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":274.1999999284744,"responseEnd":303.2999999523163,"responseStart":300.89999997615814,"secureConnectionStart":267.2999999523163},{"duration":29.899999976158142,"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":267.39999997615814,"connectEnd":267.39999997615814,"connectStart":267.39999997615814,"domainLookupEnd":267.39999997615814,"domainLookupStart":267.39999997615814,"fetchStart":267.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":275.1999999284744,"responseEnd":297.2999999523163,"responseStart":295.6999999284744,"secureConnectionStart":267.39999997615814},{"duration":38,"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":267.60000002384186,"connectEnd":267.60000002384186,"connectStart":267.60000002384186,"domainLookupEnd":267.60000002384186,"domainLookupStart":267.60000002384186,"fetchStart":267.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":276.7999999523163,"responseEnd":305.60000002384186,"responseStart":303.6999999284744,"secureConnectionStart":267.60000002384186},{"duration":7.800000071525574,"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":267.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":267.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":275.60000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":38.200000047683716,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":267.89999997615814,"connectEnd":267.89999997615814,"connectStart":267.89999997615814,"domainLookupEnd":267.89999997615814,"domainLookupStart":267.89999997615814,"fetchStart":267.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":277.89999997615814,"responseEnd":306.10000002384186,"responseStart":304.10000002384186,"secureConnectionStart":267.89999997615814},{"duration":9.199999928474426,"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":268.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":268.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":277.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":44.700000047683716,"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":268.2999999523163,"connectEnd":268.2999999523163,"connectStart":268.2999999523163,"domainLookupEnd":268.2999999523163,"domainLookupStart":268.2999999523163,"fetchStart":268.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":279.7999999523163,"responseEnd":313,"responseStart":306.60000002384186,"secureConnectionStart":268.2999999523163},{"duration":6.600000023841858,"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":298.1999999284744,"connectEnd":298.1999999284744,"connectStart":298.1999999284744,"domainLookupEnd":298.1999999284744,"domainLookupStart":298.1999999284744,"fetchStart":298.1999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":298.1999999284744,"responseEnd":304.7999999523163,"responseStart":304.7999999523163,"secureConnectionStart":298.1999999284744},{"duration":5.199999928474426,"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":309.5,"connectEnd":309.5,"connectStart":309.5,"domainLookupEnd":309.5,"domainLookupStart":309.5,"fetchStart":309.5,"redirectEnd":0,"redirectStart":0,"requestStart":309.5,"responseEnd":314.6999999284744,"responseStart":314.6999999284744,"secureConnectionStart":309.5},{"duration":49.39999997615814,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":527,"connectEnd":527,"connectStart":527,"domainLookupEnd":527,"domainLookupStart":527,"fetchStart":527,"redirectEnd":0,"redirectStart":0,"requestStart":546.1000000238419,"responseEnd":576.3999999761581,"responseStart":575.6999999284744,"secureConnectionStart":527},{"duration":110,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":756.6999999284744,"connectEnd":756.6999999284744,"connectStart":756.6999999284744,"domainLookupEnd":756.6999999284744,"domainLookupStart":756.6999999284744,"fetchStart":756.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":836.7999999523163,"responseEnd":866.6999999284744,"responseStart":866.1000000238419,"secureConnectionStart":756.6999999284744}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":73,"responseStart":258,"responseEnd":309,"domLoading":261,"domInteractive":980,"domContentLoadedEventStart":980,"domContentLoadedEventEnd":1040,"domComplete":1321,"loadEventStart":1321,"loadEventEnd":1322,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":945.2999999523163},{"name":"bigPipe.sidebar-id.end","time":946},{"name":"bigPipe.activity-panel-pipe-id.start","time":946.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":950},{"name":"activityTabFullyLoaded","time":1062.2999999523163}],"measures":[],"correlationId":"a0d5c070569fe1","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":116,"dbReadsTimeInMs":14,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
The problem here is that MySQL 5.5 did cause problems in how privileges are checked in multi-table-update.
We are fixing this and several other multi-table-update problems as part of
MDEV-5981name resolution issues with views and multi-update in ps-protocol.This should be fixed at the same time or after this task is done.