Test case for MySQL "bug#13256831 - ERROR 1032 (HY000): CAN'T FIND RECORD" fails in 10.0:
--echo # Bug#13256831 - ERROR 1032 (HY000): CAN'T FIND RECORD
|
|
CREATE TABLE t1 (f1 INT PRIMARY KEY, f2 INT) ENGINE=InnoDB;
|
CREATE TABLE t2 (f1 INT PRIMARY KEY, f2 INT) ENGINE=InnoDB;
|
INSERT INTO t1 VALUES (5, 7);
|
INSERT INTO t2 VALUES (6, 97);
|
|
CREATE ALGORITHM = MERGE VIEW v1 AS
|
SELECT a2.f1 AS f1, a2.f2 AS f2
|
FROM t1 AS a1 JOIN t2 AS a2 ON a1.f2 > a2.f1
|
WITH LOCAL CHECK OPTION;
|
|
SELECT * FROM v1;
|
UPDATE v1 SET f1 = 1;
|
SELECT * FROM v1;
|
|
DROP TABLE t1, t2;
|
DROP VIEW v1;
|
Relevant revision:
revno: 3402.31.24
|
committer: Dmitry Shulga <Dmitry.Shulga@oracle.com>
|
branch nick: mysql-trunk-bug13256831
|
timestamp: Fri 2011-12-09 16:47:01 +0600
|
message:
|
Fixed bug#13256831 - ERROR 1032 (HY000): CAN'T FIND RECORD.
|
|
This bug only occurs if a user tries to update a base table using
|
an updatable view and this view was created as a join for which
|
the clause 'WITH CHECK OPTION' was specified.
|
|
The reason for the bug was that when such an update was
|
executed, row positions were not properly handled for tables
|
that were not updated but had constraints that had to be
|
checked due to the 'WITH CHECK OPTION' clause.
|
|
The reason for the bug was that when such update is executed
|
then for tables specified in the view definition and
|
also listed in the 'WITH CHECK OPTION' clause the positioning to
|
row being updated is not performed.
|
{"report":{"fcp":1767.0999999046326,"ttfb":507.69999980926514,"pageVisibility":"visible","entityId":33908,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"904d6af5-a5e5-42b7-9053-ac5c1d2eb188","navigationType":0,"readyForUser":2013.3000001907349,"redirectCount":0,"resourceLoadedEnd":2055.199999809265,"resourceLoadedStart":512.8000001907349,"resourceTiming":[{"duration":551.5999999046326,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":512.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":512.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1064.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":552.0999999046326,"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":513,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":513,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1065.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":600.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":513.1999998092651,"connectEnd":513.1999998092651,"connectStart":513.1999998092651,"domainLookupEnd":513.1999998092651,"domainLookupStart":513.1999998092651,"fetchStart":513.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":513.1999998092651,"responseEnd":1114,"responseStart":1114,"secureConnectionStart":513.1999998092651},{"duration":809.7999997138977,"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":513.4000000953674,"connectEnd":513.4000000953674,"connectStart":513.4000000953674,"domainLookupEnd":513.4000000953674,"domainLookupStart":513.4000000953674,"fetchStart":513.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":513.4000000953674,"responseEnd":1323.1999998092651,"responseStart":1323.1999998092651,"secureConnectionStart":513.4000000953674},{"duration":813.7000002861023,"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":513.5999999046326,"connectEnd":513.5999999046326,"connectStart":513.5999999046326,"domainLookupEnd":513.5999999046326,"domainLookupStart":513.5999999046326,"fetchStart":513.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":513.5999999046326,"responseEnd":1327.3000001907349,"responseStart":1327.3000001907349,"secureConnectionStart":513.5999999046326},{"duration":814.3000001907349,"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":513.6999998092651,"connectEnd":513.6999998092651,"connectStart":513.6999998092651,"domainLookupEnd":513.6999998092651,"domainLookupStart":513.6999998092651,"fetchStart":513.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":513.6999998092651,"responseEnd":1328,"responseStart":1328,"secureConnectionStart":513.6999998092651},{"duration":814.9000000953674,"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":513.9000000953674,"connectEnd":513.9000000953674,"connectStart":513.9000000953674,"domainLookupEnd":513.9000000953674,"domainLookupStart":513.9000000953674,"fetchStart":513.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":513.9000000953674,"responseEnd":1328.8000001907349,"responseStart":1328.8000001907349,"secureConnectionStart":513.9000000953674},{"duration":821.3000001907349,"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":514.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":514.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1335.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":815.5999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":514.3000001907349,"connectEnd":514.3000001907349,"connectStart":514.3000001907349,"domainLookupEnd":514.3000001907349,"domainLookupStart":514.3000001907349,"fetchStart":514.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":514.3000001907349,"responseEnd":1329.9000000953674,"responseStart":1329.9000000953674,"secureConnectionStart":514.3000001907349},{"duration":821.0999999046326,"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":514.4000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":514.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1335.5,"responseStart":0,"secureConnectionStart":0},{"duration":816.0999999046326,"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":514.5,"connectEnd":514.5,"connectStart":514.5,"domainLookupEnd":514.5,"domainLookupStart":514.5,"fetchStart":514.5,"redirectEnd":0,"redirectStart":0,"requestStart":514.5,"responseEnd":1330.5999999046326,"responseStart":1330.5999999046326,"secureConnectionStart":514.5},{"duration":1336.2000002861023,"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":528.1999998092651,"connectEnd":528.1999998092651,"connectStart":528.1999998092651,"domainLookupEnd":528.1999998092651,"domainLookupStart":528.1999998092651,"fetchStart":528.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":528.1999998092651,"responseEnd":1864.4000000953674,"responseStart":1864.4000000953674,"secureConnectionStart":528.1999998092651},{"duration":1526.7999997138977,"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":528.4000000953674,"connectEnd":528.4000000953674,"connectStart":528.4000000953674,"domainLookupEnd":528.4000000953674,"domainLookupStart":528.4000000953674,"fetchStart":528.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":528.4000000953674,"responseEnd":2055.199999809265,"responseStart":2055.199999809265,"secureConnectionStart":528.4000000953674},{"duration":487.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1377.8000001907349,"connectEnd":1377.8000001907349,"connectStart":1377.8000001907349,"domainLookupEnd":1377.8000001907349,"domainLookupStart":1377.8000001907349,"fetchStart":1377.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1377.8000001907349,"responseEnd":1864.9000000953674,"responseStart":1864.9000000953674,"secureConnectionStart":1377.8000001907349}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":342,"responseStart":508,"responseEnd":522,"domLoading":511,"domInteractive":2127,"domContentLoadedEventStart":2127,"domContentLoadedEventEnd":2173,"domComplete":3663,"loadEventStart":3663,"loadEventEnd":3665,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2107.699999809265},{"name":"bigPipe.sidebar-id.end","time":2108.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":2108.800000190735},{"name":"bigPipe.activity-panel-pipe-id.end","time":2111.5999999046326},{"name":"activityTabFullyLoaded","time":2185}],"measures":[],"correlationId":"4ac276e6725c6a","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":99,"dbReadsTimeInMs":11,"dbConnsTimeInMs":24,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}