-
Bug
-
-
Major
-
Resolution:
Unresolved
-
10.11.5, 10.4(EOL), 10.5, 10.6, 10.9(EOL), 10.10(EOL), 10.11
-
-
-
When an `ALTER TABLE` statement tries to drop an constraint while also adding one, the drop operation is not performed:
|
MariaDB [test]> create table a (id int primary key);
|
Query OK, 0 rows affected (0.016 sec)
|
|
MariaDB [test]> create table b (id int primary key references a(id));
|
Query OK, 0 rows affected (0.015 sec)
|
|
MariaDB [test]> show create table b\G
|
*************************** 1. row ***************************
|
Table: b
|
Create Table: CREATE TABLE `b` (
|
`id` int(11) NOT NULL,
|
PRIMARY KEY (`id`),
|
CONSTRAINT `b_ibfk_1` FOREIGN KEY (`id`) REFERENCES `a` (`id`)
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci
|
1 row in set (0.001 sec)
|
|
MariaDB [test]> alter table b drop constraint b_ibfk_1, add constraint other foreign key (id) references a(id) on update cascade;
|
Query OK, 0 rows affected (0.023 sec)
|
Records: 0 Duplicates: 0 Warnings: 0
|
|
MariaDB [test]> show create table b\G
|
*************************** 1. row ***************************
|
Table: b
|
Create Table: CREATE TABLE `b` (
|
`id` int(11) NOT NULL,
|
PRIMARY KEY (`id`),
|
CONSTRAINT `b_ibfk_1` FOREIGN KEY (`id`) REFERENCES `a` (`id`),
|
CONSTRAINT `other` FOREIGN KEY (`id`) REFERENCES `a` (`id`) ON UPDATE CASCADE
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci
|
1 row in set (0.010 sec)
|
- relates to
-
MDEV-16356
Allow ALGORITHM=NOCOPY for ADD CONSTRAINT
-
-
Open
{"report":{"fcp":1252.9000000953674,"ttfb":707.5,"pageVisibility":"visible","entityId":125366,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"5d378cdd-6905-4004-99d1-c742d8dd85e8","navigationType":0,"readyForUser":1317.4000000953674,"redirectCount":0,"resourceLoadedEnd":1406.6000000238419,"resourceLoadedStart":713.3000000715256,"resourceTiming":[{"duration":80,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":713.3000000715256,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":713.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":793.3000000715256,"responseStart":0,"secureConnectionStart":0},{"duration":81.5,"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":713.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":713.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":795,"responseStart":0,"secureConnectionStart":0},{"duration":131.60000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":713.6000000238419,"connectEnd":713.6000000238419,"connectStart":713.6000000238419,"domainLookupEnd":713.6000000238419,"domainLookupStart":713.6000000238419,"fetchStart":713.6000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":713.6000000238419,"responseEnd":845.2000000476837,"responseStart":845.2000000476837,"secureConnectionStart":713.6000000238419},{"duration":209.69999992847443,"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":713.8000000715256,"connectEnd":713.8000000715256,"connectStart":713.8000000715256,"domainLookupEnd":713.8000000715256,"domainLookupStart":713.8000000715256,"fetchStart":713.8000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":713.8000000715256,"responseEnd":923.5,"responseStart":923.5,"secureConnectionStart":713.8000000715256},{"duration":213.29999995231628,"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":713.9000000953674,"connectEnd":713.9000000953674,"connectStart":713.9000000953674,"domainLookupEnd":713.9000000953674,"domainLookupStart":713.9000000953674,"fetchStart":713.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":713.9000000953674,"responseEnd":927.2000000476837,"responseStart":927.2000000476837,"secureConnectionStart":713.9000000953674},{"duration":213.70000004768372,"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":714,"connectEnd":714,"connectStart":714,"domainLookupEnd":714,"domainLookupStart":714,"fetchStart":714,"redirectEnd":0,"redirectStart":0,"requestStart":714,"responseEnd":927.7000000476837,"responseStart":927.7000000476837,"secureConnectionStart":714},{"duration":214.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":714.1000000238419,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":714.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":928.6000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":214,"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":714.1000000238419,"connectEnd":714.1000000238419,"connectStart":714.1000000238419,"domainLookupEnd":714.1000000238419,"domainLookupStart":714.1000000238419,"fetchStart":714.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":714.1000000238419,"responseEnd":928.1000000238419,"responseStart":928.1000000238419,"secureConnectionStart":714.1000000238419},{"duration":214.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":714.3000000715256,"connectEnd":714.3000000715256,"connectStart":714.3000000715256,"domainLookupEnd":714.3000000715256,"domainLookupStart":714.3000000715256,"fetchStart":714.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":714.3000000715256,"responseEnd":928.6000000238419,"responseStart":928.6000000238419,"secureConnectionStart":714.3000000715256},{"duration":214.69999992847443,"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":714.4000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":714.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":929.1000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":214.80000007152557,"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":714.5,"connectEnd":714.5,"connectStart":714.5,"domainLookupEnd":714.5,"domainLookupStart":714.5,"fetchStart":714.5,"redirectEnd":0,"redirectStart":0,"requestStart":714.5,"responseEnd":929.3000000715256,"responseStart":929.3000000715256,"secureConnectionStart":714.5},{"duration":472.7000000476837,"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":715.2000000476837,"connectEnd":715.2000000476837,"connectStart":715.2000000476837,"domainLookupEnd":715.2000000476837,"domainLookupStart":715.2000000476837,"fetchStart":715.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":715.2000000476837,"responseEnd":1187.9000000953674,"responseStart":1187.9000000953674,"secureConnectionStart":715.2000000476837},{"duration":691.3999999761581,"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":715.2000000476837,"connectEnd":715.2000000476837,"connectStart":715.2000000476837,"domainLookupEnd":715.2000000476837,"domainLookupStart":715.2000000476837,"fetchStart":715.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":715.2000000476837,"responseEnd":1406.6000000238419,"responseStart":1406.6000000238419,"secureConnectionStart":715.2000000476837},{"duration":297.3000000715256,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1059,"connectEnd":1059,"connectStart":1059,"domainLookupEnd":1059,"domainLookupStart":1059,"fetchStart":1059,"redirectEnd":0,"redirectStart":0,"requestStart":1059,"responseEnd":1356.3000000715256,"responseStart":1356.3000000715256,"secureConnectionStart":1059},{"duration":219.70000004768372,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1232,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1232,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1451.7000000476837,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":529,"responseStart":707,"responseEnd":709,"domLoading":711,"domInteractive":1458,"domContentLoadedEventStart":1458,"domContentLoadedEventEnd":1494,"domComplete":2003,"loadEventStart":2003,"loadEventEnd":2004,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1440.2000000476837},{"name":"bigPipe.sidebar-id.end","time":1441.1000000238419},{"name":"bigPipe.activity-panel-pipe-id.start","time":1441.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":1443.7000000476837},{"name":"activityTabFullyLoaded","time":1497.5}],"measures":[],"correlationId":"8fb48c43ae1078","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":102,"dbReadsTimeInMs":14,"dbConnsTimeInMs":24,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}