-
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
{"report":{"fcp":1089.6999998092651,"ttfb":314,"pageVisibility":"visible","entityId":39614,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":16,"apdex":0.5,"journeyId":"b1c91806-db81-4bda-a23e-beefcec6eb2f","navigationType":0,"readyForUser":1193,"redirectCount":0,"resourceLoadedEnd":1178.1999998092651,"resourceLoadedStart":319.2999997138977,"resourceTiming":[{"duration":270.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":319.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":319.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":589.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":270.59999990463257,"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":319.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":319.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":590.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":328.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":319.69999980926514,"connectEnd":319.69999980926514,"connectStart":319.69999980926514,"domainLookupEnd":319.69999980926514,"domainLookupStart":319.69999980926514,"fetchStart":319.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":319.69999980926514,"responseEnd":648.5,"responseStart":648.5,"secureConnectionStart":319.69999980926514},{"duration":391.5,"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":319.8999996185303,"connectEnd":319.8999996185303,"connectStart":319.8999996185303,"domainLookupEnd":319.8999996185303,"domainLookupStart":319.8999996185303,"fetchStart":319.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":319.8999996185303,"responseEnd":711.3999996185303,"responseStart":711.3999996185303,"secureConnectionStart":319.8999996185303},{"duration":394.7999997138977,"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":320,"connectEnd":320,"connectStart":320,"domainLookupEnd":320,"domainLookupStart":320,"fetchStart":320,"redirectEnd":0,"redirectStart":0,"requestStart":320,"responseEnd":714.7999997138977,"responseStart":714.7999997138977,"secureConnectionStart":320},{"duration":395.19999980926514,"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":320.09999990463257,"connectEnd":320.09999990463257,"connectStart":320.09999990463257,"domainLookupEnd":320.09999990463257,"domainLookupStart":320.09999990463257,"fetchStart":320.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":320.09999990463257,"responseEnd":715.2999997138977,"responseStart":715.2999997138977,"secureConnectionStart":320.09999990463257},{"duration":395.59999990463257,"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":320.19999980926514,"connectEnd":320.19999980926514,"connectStart":320.19999980926514,"domainLookupEnd":320.19999980926514,"domainLookupStart":320.19999980926514,"fetchStart":320.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":320.19999980926514,"responseEnd":715.7999997138977,"responseStart":715.7999997138977,"secureConnectionStart":320.19999980926514},{"duration":396.09999990463257,"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":320.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":320.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":716.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":395.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":320.3999996185303,"connectEnd":320.3999996185303,"connectStart":320.3999996185303,"domainLookupEnd":320.3999996185303,"domainLookupStart":320.3999996185303,"fetchStart":320.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":320.3999996185303,"responseEnd":716.2999997138977,"responseStart":716.2999997138977,"secureConnectionStart":320.3999996185303},{"duration":396.7999997138977,"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":320.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":320.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":717.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":396.40000009536743,"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":320.59999990463257,"connectEnd":320.59999990463257,"connectStart":320.59999990463257,"domainLookupEnd":320.59999990463257,"domainLookupStart":320.59999990463257,"fetchStart":320.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":320.59999990463257,"responseEnd":717,"responseStart":717,"secureConnectionStart":320.59999990463257},{"duration":851.3000001907349,"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":325.8999996185303,"connectEnd":325.8999996185303,"connectStart":325.8999996185303,"domainLookupEnd":325.8999996185303,"domainLookupStart":325.8999996185303,"fetchStart":325.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":325.8999996185303,"responseEnd":1177.1999998092651,"responseStart":1177.1999998092651,"secureConnectionStart":325.8999996185303},{"duration":852.1999998092651,"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":326,"connectEnd":326,"connectStart":326,"domainLookupEnd":326,"domainLookupStart":326,"fetchStart":326,"redirectEnd":0,"redirectStart":0,"requestStart":326,"responseEnd":1178.1999998092651,"responseStart":1178.1999998092651,"secureConnectionStart":326},{"duration":285.7999997138977,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":892,"connectEnd":892,"connectStart":892,"domainLookupEnd":892,"domainLookupStart":892,"fetchStart":892,"redirectEnd":0,"redirectStart":0,"requestStart":892,"responseEnd":1177.7999997138977,"responseStart":1177.7999997138977,"secureConnectionStart":892},{"duration":119.19999980926514,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1067.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1067.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1186.8999996185303,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":189,"responseStart":314,"responseEnd":321,"domLoading":317,"domInteractive":1330,"domContentLoadedEventStart":1330,"domContentLoadedEventEnd":1375,"domComplete":2423,"loadEventStart":2423,"loadEventEnd":2425,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1311.0999999046326},{"name":"bigPipe.sidebar-id.end","time":1312},{"name":"bigPipe.activity-panel-pipe-id.start","time":1312.2999997138977},{"name":"bigPipe.activity-panel-pipe-id.end","time":1314.6999998092651},{"name":"activityTabFullyLoaded","time":1386.2999997138977}],"measures":[],"correlationId":"39028d0209a8eb","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":70,"dbReadsTimeInMs":9,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}