Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
None
Component/s:
None
The following test case gives us a wrong result in MariaDB 5.2/5.5
CREATE TABLE t1 (
pk int NOT NULL,
col_int_nokey int NOT NULL,
col_int_key int NOT NULL,
col_time_key time NOT NULL,
col_varchar_key varchar(1) NOT NULL,
col_varchar_nokey varchar(1) NOT NULL,
PRIMARY KEY (pk),
KEY col_int_key (col_int_key),
KEY col_time_key (col_time_key),
KEY col_varchar_key (col_varchar_key,col_int_key)
) ENGINE=MyISAM;
CREATE TABLE t2 (
pk int NOT NULL AUTO_INCREMENT,
col_int_nokey int NOT NULL,
col_int_key int NOT NULL,
col_time_key time NOT NULL,
col_varchar_key varchar(1) NOT NULL,
col_varchar_nokey varchar(1) NOT NULL,
PRIMARY KEY (pk),
KEY col_int_key (col_int_key),
KEY col_time_key (col_time_key),
KEY col_varchar_key (col_varchar_key,col_int_key)
) ENGINE=MyISAM;
INSERT INTO t2 VALUES (1,4,4,'00:00:00','b','b');
SET @var2:=4, @var3:=8;
MariaDB [test]> SELECT * FROM ( SELECT @var3:=12, sq4_alias1.* FROM t1 AS sq4_alias1 WHERE (sq4_alias1.col_varchar_key + NULL) IS NULL OR sq4_alias1.col_varchar_key = @var3 ) AS alias3;
+-----------+----+---------------+-------------+--------------+-----------------+-------------------+
| @var3:=12 | pk | col_int_nokey | col_int_key | col_time_key | col_varchar_key | col_varchar_nokey |
+-----------+----+---------------+-------------+--------------+-----------------+-------------------+
| 12 | 0 | 0 | 0 | 00:00:00 | | |
+-----------+----+---------------+-------------+--------------+-----------------+-------------------+
No rows are expected in the result here.
(see also bug #13651000 from mysql-trunk)
{"report":{"fcp":855.6999998092651,"ttfb":200,"pageVisibility":"visible","entityId":20119,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"48b2083e-350d-4aff-8ca7-e723b72ba2d1","navigationType":0,"readyForUser":936.7999992370605,"redirectCount":0,"resourceLoadedEnd":967.0999994277954,"resourceLoadedStart":205.69999980926514,"resourceTiming":[{"duration":134.39999961853027,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":205.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":205.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":340.0999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":134.39999961853027,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":206,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":206,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":340.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":144.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":206.19999980926514,"connectEnd":206.19999980926514,"connectStart":206.19999980926514,"domainLookupEnd":206.19999980926514,"domainLookupStart":206.19999980926514,"fetchStart":206.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":206.19999980926514,"responseEnd":350.69999980926514,"responseStart":350.69999980926514,"secureConnectionStart":206.19999980926514},{"duration":252.60000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":206.29999923706055,"connectEnd":206.29999923706055,"connectStart":206.29999923706055,"domainLookupEnd":206.29999923706055,"domainLookupStart":206.29999923706055,"fetchStart":206.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":206.29999923706055,"responseEnd":458.8999996185303,"responseStart":458.8999996185303,"secureConnectionStart":206.29999923706055},{"duration":256.80000019073486,"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":206.5999994277954,"connectEnd":206.5999994277954,"connectStart":206.5999994277954,"domainLookupEnd":206.5999994277954,"domainLookupStart":206.5999994277954,"fetchStart":206.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":206.5999994277954,"responseEnd":463.3999996185303,"responseStart":463.3999996185303,"secureConnectionStart":206.5999994277954},{"duration":257,"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":206.79999923706055,"connectEnd":206.79999923706055,"connectStart":206.79999923706055,"domainLookupEnd":206.79999923706055,"domainLookupStart":206.79999923706055,"fetchStart":206.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":206.79999923706055,"responseEnd":463.79999923706055,"responseStart":463.79999923706055,"secureConnectionStart":206.79999923706055},{"duration":257.0999994277954,"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":207,"connectEnd":207,"connectStart":207,"domainLookupEnd":207,"domainLookupStart":207,"fetchStart":207,"redirectEnd":0,"redirectStart":0,"requestStart":207,"responseEnd":464.0999994277954,"responseStart":464.0999994277954,"secureConnectionStart":207},{"duration":288.5,"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":207.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":207.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":495.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":257.4000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":207.29999923706055,"connectEnd":207.29999923706055,"connectStart":207.29999923706055,"domainLookupEnd":207.29999923706055,"domainLookupStart":207.29999923706055,"fetchStart":207.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":207.29999923706055,"responseEnd":464.69999980926514,"responseStart":464.69999980926514,"secureConnectionStart":207.29999923706055},{"duration":288.30000019073486,"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":207.5999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":207.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":495.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":257.69999980926514,"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":207.69999980926514,"connectEnd":207.69999980926514,"connectStart":207.69999980926514,"domainLookupEnd":207.69999980926514,"domainLookupStart":207.69999980926514,"fetchStart":207.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":207.69999980926514,"responseEnd":465.3999996185303,"responseStart":465.29999923706055,"secureConnectionStart":207.69999980926514},{"duration":385.19999980926514,"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":208.39999961853027,"connectEnd":208.39999961853027,"connectStart":208.39999961853027,"domainLookupEnd":208.39999961853027,"domainLookupStart":208.39999961853027,"fetchStart":208.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":208.39999961853027,"responseEnd":593.5999994277954,"responseStart":593.5999994277954,"secureConnectionStart":208.39999961853027},{"duration":687.1999998092651,"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":208.5999994277954,"connectEnd":208.5999994277954,"connectStart":208.5999994277954,"domainLookupEnd":208.5999994277954,"domainLookupStart":208.5999994277954,"fetchStart":208.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":208.5999994277954,"responseEnd":895.7999992370605,"responseStart":895.7999992370605,"secureConnectionStart":208.5999994277954},{"duration":86.89999961853027,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":507.8999996185303,"connectEnd":507.8999996185303,"connectStart":507.8999996185303,"domainLookupEnd":507.8999996185303,"domainLookupStart":507.8999996185303,"fetchStart":507.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":507.8999996185303,"responseEnd":594.7999992370605,"responseStart":594.7999992370605,"secureConnectionStart":507.8999996185303},{"duration":195.80000019073486,"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","startTime":771.2999992370605,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":771.2999992370605,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":967.0999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":253.60000038146973,"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","startTime":772.2999992370605,"connectEnd":772.2999992370605,"connectStart":772.2999992370605,"domainLookupEnd":772.2999992370605,"domainLookupStart":772.2999992370605,"fetchStart":772.2999992370605,"redirectEnd":0,"redirectStart":0,"requestStart":772.2999992370605,"responseEnd":1025.8999996185303,"responseStart":1025.8999996185303,"secureConnectionStart":772.2999992370605},{"duration":257.1000003814697,"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","startTime":772.5999994277954,"connectEnd":772.5999994277954,"connectStart":772.5999994277954,"domainLookupEnd":772.5999994277954,"domainLookupStart":772.5999994277954,"fetchStart":772.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":772.5999994277954,"responseEnd":1029.6999998092651,"responseStart":1029.6999998092651,"secureConnectionStart":772.5999994277954}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":30,"responseStart":200,"responseEnd":201,"domLoading":203,"domInteractive":992,"domContentLoadedEventStart":992,"domContentLoadedEventEnd":1035,"domComplete":1334,"loadEventStart":1334,"loadEventEnd":1335,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":979.5999994277954},{"name":"bigPipe.sidebar-id.end","time":980.3999996185303},{"name":"bigPipe.activity-panel-pipe-id.start","time":980.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":981.8999996185303},{"name":"activityTabFullyLoaded","time":1057.2999992370605}],"measures":[],"correlationId":"360460e6c4959b","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":104,"dbReadsTimeInMs":19,"dbConnsTimeInMs":26,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Launchpad bug id: 1002546