Type:
Bug
Priority:
Critical
Resolution:
Unresolved
Affects Version/s:
10.0.13 , 10.1(EOL) , 10.2(EOL) , 10.3(EOL) , 10.4(EOL) , 10.5 , 10.6 , 10.7(EOL) , 10.8(EOL) , 10.9(EOL) , 10.10(EOL)
CREATE TABLE t1 (a VARCHAR (3)) ENGINE=MyISAM;
INSERT INTO t1 VALUES ( 'foo' ),( 'bar' );
CREATE TABLE t2 (i INT , b VARCHAR (3)) ENGINE=MyISAM;
CREATE ALGORITHM=MERGE VIEW v2 AS SELECT * FROM t2;
INSERT INTO t2 VALUES (4, 'foo' ),(5, 'baz' );
PREPARE stmt FROM "SELECT * FROM t1 WHERE NOT EXISTS ( SELECT i FROM v2 WHERE b = a )" ;
EXECUTE stmt;
EXECUTE stmt;
Actual result:
EXECUTE stmt;
a
bar
EXECUTE stmt;
a
foo
bar
Expected result:
EXECUTE stmt;
a
bar
EXECUTE stmt;
a
bar
revision-id: knielsen@knielsen-hq.org-20140902120701-txesdmkczel84qgf
revno: 4369
branch-nick: 10.0
is blocked by
MDEV-30073
Wrong result on 2nd execution of PS for query with NOT EXISTS
In Progress
{"report":{"fcp":1624.5999999046326,"ttfb":833,"pageVisibility":"visible","entityId":44336,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"13c6fb2e-4d57-4df3-bab8-f48fe7e4e15e","navigationType":0,"readyForUser":1705.6999998092651,"redirectCount":0,"resourceLoadedEnd":1724.0999999046326,"resourceLoadedStart":839.1999998092651,"resourceTiming":[{"duration":199.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":839.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":839.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1039.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":200,"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":839.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":839.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1039.5,"responseStart":0,"secureConnectionStart":0},{"duration":256.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":839.6999998092651,"connectEnd":839.6999998092651,"connectStart":839.6999998092651,"domainLookupEnd":839.6999998092651,"domainLookupStart":839.6999998092651,"fetchStart":839.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":839.6999998092651,"responseEnd":1096.5999999046326,"responseStart":1096.5999999046326,"secureConnectionStart":839.6999998092651},{"duration":334,"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":839.8999996185303,"connectEnd":839.8999996185303,"connectStart":839.8999996185303,"domainLookupEnd":839.8999996185303,"domainLookupStart":839.8999996185303,"fetchStart":839.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":839.8999996185303,"responseEnd":1173.8999996185303,"responseStart":1173.8999996185303,"secureConnectionStart":839.8999996185303},{"duration":338,"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":840.0999999046326,"connectEnd":840.0999999046326,"connectStart":840.0999999046326,"domainLookupEnd":840.0999999046326,"domainLookupStart":840.0999999046326,"fetchStart":840.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":840.0999999046326,"responseEnd":1178.0999999046326,"responseStart":1178.0999999046326,"secureConnectionStart":840.0999999046326},{"duration":338.6000003814697,"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":840.3999996185303,"connectEnd":840.3999996185303,"connectStart":840.3999996185303,"domainLookupEnd":840.3999996185303,"domainLookupStart":840.3999996185303,"fetchStart":840.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":840.3999996185303,"responseEnd":1179,"responseStart":1179,"secureConnectionStart":840.3999996185303},{"duration":338.90000009536743,"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":840.6999998092651,"connectEnd":840.6999998092651,"connectStart":840.6999998092651,"domainLookupEnd":840.6999998092651,"domainLookupStart":840.6999998092651,"fetchStart":840.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":840.6999998092651,"responseEnd":1179.5999999046326,"responseStart":1179.5999999046326,"secureConnectionStart":840.6999998092651},{"duration":399.80000019073486,"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":840.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":840.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1240.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":339.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":841,"connectEnd":841,"connectStart":841,"domainLookupEnd":841,"domainLookupStart":841,"fetchStart":841,"redirectEnd":0,"redirectStart":0,"requestStart":841,"responseEnd":1180.5,"responseStart":1180.5,"secureConnectionStart":841},{"duration":399.59999990463257,"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":841.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":841.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1240.7999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":340.1000003814697,"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":841.3999996185303,"connectEnd":841.3999996185303,"connectStart":841.3999996185303,"domainLookupEnd":841.3999996185303,"domainLookupStart":841.3999996185303,"fetchStart":841.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":841.3999996185303,"responseEnd":1181.5,"responseStart":1181.5,"secureConnectionStart":841.3999996185303},{"duration":555,"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":842.1999998092651,"connectEnd":842.1999998092651,"connectStart":842.1999998092651,"domainLookupEnd":842.1999998092651,"domainLookupStart":842.1999998092651,"fetchStart":842.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":842.1999998092651,"responseEnd":1397.1999998092651,"responseStart":1397.1999998092651,"secureConnectionStart":842.1999998092651},{"duration":771.8000001907349,"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":842.2999997138977,"connectEnd":842.2999997138977,"connectStart":842.2999997138977,"domainLookupEnd":842.2999997138977,"domainLookupStart":842.2999997138977,"fetchStart":842.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":842.2999997138977,"responseEnd":1614.0999999046326,"responseStart":1614.0999999046326,"secureConnectionStart":842.2999997138977},{"duration":145,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1253.5,"connectEnd":1253.5,"connectStart":1253.5,"domainLookupEnd":1253.5,"domainLookupStart":1253.5,"fetchStart":1253.5,"redirectEnd":0,"redirectStart":0,"requestStart":1253.5,"responseEnd":1398.5,"responseStart":1398.5,"secureConnectionStart":1253.5},{"duration":92.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1525.5999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1525.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1617.7999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":189.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1526.5999999046326,"connectEnd":1526.5999999046326,"connectStart":1526.5999999046326,"domainLookupEnd":1526.5999999046326,"domainLookupStart":1526.5999999046326,"fetchStart":1526.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1526.5999999046326,"responseEnd":1716.2999997138977,"responseStart":1716.2999997138977,"secureConnectionStart":1526.5999999046326},{"duration":197.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":1527,"connectEnd":1527,"connectStart":1527,"domainLookupEnd":1527,"domainLookupStart":1527,"fetchStart":1527,"redirectEnd":0,"redirectStart":0,"requestStart":1527,"responseEnd":1724.0999999046326,"responseStart":1724.0999999046326,"secureConnectionStart":1527},{"duration":172.7000002861023,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1617.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1617.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1790,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":667,"responseStart":833,"responseEnd":838,"domLoading":837,"domInteractive":1791,"domContentLoadedEventStart":1791,"domContentLoadedEventEnd":1845,"domComplete":2049,"loadEventStart":2049,"loadEventEnd":2050,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1750.3999996185303},{"name":"bigPipe.sidebar-id.end","time":1751.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1751.3999996185303},{"name":"bigPipe.activity-panel-pipe-id.end","time":1753},{"name":"activityTabFullyLoaded","time":1867.2999997138977}],"measures":[],"correlationId":"e9d3a92a9328a2","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":101,"dbReadsTimeInMs":11,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Second time used other engine, so probably passing the same JOIN_TAB address to it is just a coincidence or (using wrong JOIN (small probability, because it should be freed)).