-
Bug
-
-
Minor
-
Resolution:
Fixed
-
N/A
-
-
None
-
MariaDB [test]> create table t1 (i int);
|
Query OK, 0 rows affected (0.89 sec)
|
|
MariaDB [test]> analyze delete from t1 where 0;
|
Query OK, 0 rows affected (0.00 sec)
|
|
MariaDB [test]> analyze update t1 set i=1 where 0;
|
Query OK, 0 rows affected (0.00 sec)
|
For SELECT it works:
MariaDB [test]> analyze select * from t1 where 0;
|
+------+-------------+-------+------+---------------+------+---------+------+------+--------+----------+------------+------------------+
|
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | r_rows | filtered | r_filtered | Extra |
|
+------+-------------+-------+------+---------------+------+---------+------+------+--------+----------+------------+------------------+
|
| 1 | SIMPLE | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | Impossible WHERE |
|
+------+-------------+-------+------+---------------+------+---------+------+------+--------+----------+------------+------------------+
|
1 row in set (0.00 sec)
|
EXPLAIN works:
MariaDB [test]> explain delete from t1 where 0;
|
+------+-------------+-------+------+---------------+------+---------+------+------+------------------+
|
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
|
+------+-------------+-------+------+---------------+------+---------+------+------+------------------+
|
| 1 | SIMPLE | NULL | NULL | NULL | NULL | NULL | NULL | NULL | Impossible WHERE |
|
+------+-------------+-------+------+---------------+------+---------+------+------+------------------+
|
1 row in set (0.01 sec)
|
|
MariaDB [test]> explain update t1 set i=1 where 0;
|
+------+-------------+-------+------+---------------+------+---------+------+------+------------------+
|
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
|
+------+-------------+-------+------+---------------+------+---------+------+------+------------------+
|
| 1 | SIMPLE | NULL | NULL | NULL | NULL | NULL | NULL | NULL | Impossible WHERE |
|
+------+-------------+-------+------+---------------+------+---------+------+------+------------------+
|
1 row in set (0.01 sec)
|
commit b95ec135533b13e921aa8de1b9c769d47b2efe60
|
Author: Alexey Botchkov <holyfoot@montyprogram.com>
|
Date: Thu Jun 26 11:37:24 2014 +0500
|
Branch: 10.1
|
- relates to
-
MDEV-406
ANALYZE $stmt
-
-
Closed
There are no comments yet on this issue.
{"report":{"fcp":1139.300000011921,"ttfb":344.89999997615814,"pageVisibility":"visible","entityId":39614,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"9e2e0113-8ec5-429f-be9d-9dbc42055f1a","navigationType":0,"readyForUser":1225,"redirectCount":0,"resourceLoadedEnd":1057.5,"resourceLoadedStart":350.10000002384186,"resourceTiming":[{"duration":286.69999998807907,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":350.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":350.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":636.8000000119209,"responseStart":0,"secureConnectionStart":0},{"duration":286.89999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":350.30000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":350.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":637.1999999880791,"responseStart":0,"secureConnectionStart":0},{"duration":295.80000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":350.5,"connectEnd":350.5,"connectStart":350.5,"domainLookupEnd":350.5,"domainLookupStart":350.5,"fetchStart":350.5,"redirectEnd":0,"redirectStart":0,"requestStart":350.5,"responseEnd":646.3000000119209,"responseStart":646.3000000119209,"secureConnectionStart":350.5},{"duration":357.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":350.69999998807907,"connectEnd":350.69999998807907,"connectStart":350.69999998807907,"domainLookupEnd":350.69999998807907,"domainLookupStart":350.69999998807907,"fetchStart":350.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":350.69999998807907,"responseEnd":708.1999999880791,"responseStart":708.1000000238419,"secureConnectionStart":350.69999998807907},{"duration":361,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":350.89999997615814,"connectEnd":350.89999997615814,"connectStart":350.89999997615814,"domainLookupEnd":350.89999997615814,"domainLookupStart":350.89999997615814,"fetchStart":350.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":350.89999997615814,"responseEnd":711.8999999761581,"responseStart":711.8999999761581,"secureConnectionStart":350.89999997615814},{"duration":361.19999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":351.19999998807907,"connectEnd":351.19999998807907,"connectStart":351.19999998807907,"domainLookupEnd":351.19999998807907,"domainLookupStart":351.19999998807907,"fetchStart":351.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":351.19999998807907,"responseEnd":712.3999999761581,"responseStart":712.3999999761581,"secureConnectionStart":351.19999998807907},{"duration":361.30000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":351.39999997615814,"connectEnd":351.39999997615814,"connectStart":351.39999997615814,"domainLookupEnd":351.39999997615814,"domainLookupStart":351.39999997615814,"fetchStart":351.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":351.39999997615814,"responseEnd":712.6999999880791,"responseStart":712.6999999880791,"secureConnectionStart":351.39999997615814},{"duration":436.89999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":351.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":351.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":788.3999999761581,"responseStart":0,"secureConnectionStart":0},{"duration":361.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":351.69999998807907,"connectEnd":351.69999998807907,"connectStart":351.69999998807907,"domainLookupEnd":351.69999998807907,"domainLookupStart":351.69999998807907,"fetchStart":351.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":351.69999998807907,"responseEnd":713.1999999880791,"responseStart":713.1999999880791,"secureConnectionStart":351.69999998807907},{"duration":436.60000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":351.89999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":351.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":788.5,"responseStart":0,"secureConnectionStart":0},{"duration":361.69999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":352,"connectEnd":352,"connectStart":352,"domainLookupEnd":352,"domainLookupStart":352,"fetchStart":352,"redirectEnd":0,"redirectStart":0,"requestStart":352,"responseEnd":713.6999999880791,"responseStart":713.6999999880791,"secureConnectionStart":352},{"duration":473.80000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":357.39999997615814,"connectEnd":357.39999997615814,"connectStart":357.39999997615814,"domainLookupEnd":357.39999997615814,"domainLookupStart":357.39999997615814,"fetchStart":357.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":357.39999997615814,"responseEnd":831.1999999880791,"responseStart":831.1999999880791,"secureConnectionStart":357.39999997615814},{"duration":520.9000000357628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":357.39999997615814,"connectEnd":357.39999997615814,"connectStart":357.39999997615814,"domainLookupEnd":357.39999997615814,"domainLookupStart":357.39999997615814,"fetchStart":357.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":357.39999997615814,"responseEnd":878.3000000119209,"responseStart":878.3000000119209,"secureConnectionStart":357.39999997615814},{"duration":44.10000002384186,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":800.3999999761581,"connectEnd":800.3999999761581,"connectStart":800.3999999761581,"domainLookupEnd":800.3999999761581,"domainLookupStart":800.3999999761581,"fetchStart":800.3999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":800.3999999761581,"responseEnd":844.5,"responseStart":844.5,"secureConnectionStart":800.3999999761581},{"duration":206.89999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bv2/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":850.6000000238419,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":850.6000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1057.5,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":100,"responseStart":345,"responseEnd":350,"domLoading":348,"domInteractive":1281,"domContentLoadedEventStart":1281,"domContentLoadedEventEnd":1330,"domComplete":1726,"loadEventStart":1726,"loadEventEnd":1727,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1264.800000011921},{"name":"bigPipe.sidebar-id.end","time":1265.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1265.6000000238419},{"name":"bigPipe.activity-panel-pipe-id.end","time":1266.1000000238419},{"name":"activityTabFullyLoaded","time":1341.300000011921}],"measures":[],"correlationId":"d2a2865f0da3c8","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":168,"dbReadsTimeInMs":10,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}