MySQL [test]> createtable t (a int, b int, key(a), key(b desc));
Query OK, 0 rows affected (0.244 sec)
MySQL [test]> select index_name, column_name, collation from information_schema.statisticswhere table_name = 't';
+------------+-------------+-----------+
| INDEX_NAME | COLUMN_NAME | COLLATION |
+------------+-------------+-----------+
| a | a | A |
| b | b | D |
+------------+-------------+-----------+
2 rowsinset (0.007 sec)
Elena Stepanova
added a comment - - edited Now when with the development of MDEV-13756 INFORMATION_SCHEMA.STATISTICS.COLLATION starts meaning something, I think it needs to be fixed.
preview-10.8-MDEV-13756-desc-indexes c13c1079b
MariaDB [test]> create or replace table t (a int , b int , key (a), key (b desc ));
Query OK, 0 rows affected (0.107 sec)
MariaDB [test]> select index_name, column_name, collation from information_schema. statistics where table_name = 't' ;
+ ------------+-------------+-----------+
| index_name | column_name | collation |
+ ------------+-------------+-----------+
| a | a | NULL |
| b | b | NULL |
+ ------------+-------------+-----------+
2 rows in set (0.002 sec)
The upstream bug was fixed in 8.0.
MySQL 8.0
MySQL [test]> create table t (a int , b int , key (a), key (b desc ));
Query OK, 0 rows affected (0.244 sec)
MySQL [test]> select index_name, column_name, collation from information_schema. statistics where table_name = 't' ;
+ ------------+-------------+-----------+
| INDEX_NAME | COLUMN_NAME | COLLATION |
+ ------------+-------------+-----------+
| a | a | A |
| b | b | D |
+ ------------+-------------+-----------+
2 rows in set (0.007 sec)
People
Sergei Golubchik
Luciano Barcaro
Votes:
0Vote for this issue
Watchers:
3Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":943.3999996185303,"ttfb":271.19999980926514,"pageVisibility":"visible","entityId":24343,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"0cb932b7-2c86-4d3d-a793-adeb287ba0d1","navigationType":0,"readyForUser":1068.0999994277954,"redirectCount":0,"resourceLoadedEnd":822.6999998092651,"resourceLoadedStart":282.30000019073486,"resourceTiming":[{"duration":37.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":282.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":282.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":319.5,"responseStart":0,"secureConnectionStart":0},{"duration":37.30000019073486,"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":282.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":282.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":319.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":223.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":282.69999980926514,"connectEnd":282.69999980926514,"connectStart":282.69999980926514,"domainLookupEnd":282.69999980926514,"domainLookupStart":282.69999980926514,"fetchStart":282.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":321.8999996185303,"responseEnd":506.3999996185303,"responseStart":336,"secureConnectionStart":282.69999980926514},{"duration":365.69999980926514,"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":282.8999996185303,"connectEnd":282.8999996185303,"connectStart":282.8999996185303,"domainLookupEnd":282.8999996185303,"domainLookupStart":282.8999996185303,"fetchStart":282.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":322.80000019073486,"responseEnd":648.5999994277954,"responseStart":338.5,"secureConnectionStart":282.8999996185303},{"duration":60.10000038146973,"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":283.0999994277954,"connectEnd":283.0999994277954,"connectStart":283.0999994277954,"domainLookupEnd":283.0999994277954,"domainLookupStart":283.0999994277954,"fetchStart":283.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":324.80000019073486,"responseEnd":343.19999980926514,"responseStart":340.19999980926514,"secureConnectionStart":283.0999994277954},{"duration":62.59999942779541,"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":283.30000019073486,"connectEnd":283.30000019073486,"connectStart":283.30000019073486,"domainLookupEnd":283.30000019073486,"domainLookupStart":283.30000019073486,"fetchStart":283.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":325.30000019073486,"responseEnd":345.8999996185303,"responseStart":341,"secureConnectionStart":283.30000019073486},{"duration":62.60000038146973,"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":283.3999996185303,"connectEnd":283.3999996185303,"connectStart":283.3999996185303,"domainLookupEnd":283.3999996185303,"domainLookupStart":283.3999996185303,"fetchStart":283.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":326.19999980926514,"responseEnd":346,"responseStart":343.3999996185303,"secureConnectionStart":283.3999996185303},{"duration":41.40000057220459,"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":283.5999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":283.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":325,"responseStart":0,"secureConnectionStart":0},{"duration":68.59999942779541,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":283.80000019073486,"connectEnd":283.80000019073486,"connectStart":283.80000019073486,"domainLookupEnd":283.80000019073486,"domainLookupStart":283.80000019073486,"fetchStart":283.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":331.30000019073486,"responseEnd":352.3999996185303,"responseStart":351.0999994277954,"secureConnectionStart":283.80000019073486},{"duration":42.10000038146973,"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":283.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":283.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":326,"responseStart":0,"secureConnectionStart":0},{"duration":72.59999942779541,"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":284,"connectEnd":284,"connectStart":284,"domainLookupEnd":284,"domainLookupStart":284,"fetchStart":284,"redirectEnd":0,"redirectStart":0,"requestStart":335.5999994277954,"responseEnd":356.5999994277954,"responseStart":354.69999980926514,"secureConnectionStart":284},{"duration":367.5999994277954,"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":287.80000019073486,"connectEnd":287.80000019073486,"connectStart":287.80000019073486,"domainLookupEnd":287.80000019073486,"domainLookupStart":287.80000019073486,"fetchStart":287.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":395.80000019073486,"responseEnd":655.3999996185303,"responseStart":652.3999996185303,"secureConnectionStart":287.80000019073486},{"duration":534.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":287.8999996185303,"connectEnd":287.8999996185303,"connectStart":287.8999996185303,"domainLookupEnd":287.8999996185303,"domainLookupStart":287.8999996185303,"fetchStart":287.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":809.5,"responseEnd":822.6999998092651,"responseStart":821.8999996185303,"secureConnectionStart":287.8999996185303},{"duration":264.30000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":637.5,"connectEnd":637.5,"connectStart":637.5,"domainLookupEnd":637.5,"domainLookupStart":637.5,"fetchStart":637.5,"redirectEnd":0,"redirectStart":0,"requestStart":865.8999996185303,"responseEnd":901.8000001907349,"responseStart":898.8000001907349,"secureConnectionStart":637.5},{"duration":257.1000003814697,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":933.0999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":933.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1190.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":241.80000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":963.0999994277954,"connectEnd":963.0999994277954,"connectStart":963.0999994277954,"domainLookupEnd":963.0999994277954,"domainLookupStart":963.0999994277954,"fetchStart":963.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":1173.0999994277954,"responseEnd":1204.8999996185303,"responseStart":1203.8999996185303,"secureConnectionStart":963.0999994277954}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":81,"responseStart":271,"responseEnd":285,"domLoading":274,"domInteractive":1197,"domContentLoadedEventStart":1197,"domContentLoadedEventEnd":1258,"domComplete":1692,"loadEventStart":1692,"loadEventEnd":1692,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1170},{"name":"bigPipe.sidebar-id.end","time":1170.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1170.8999996185303},{"name":"bigPipe.activity-panel-pipe-id.end","time":1173},{"name":"activityTabFullyLoaded","time":1275.8000001907349}],"measures":[],"correlationId":"870ecaeaa4a3d2","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":101,"dbReadsTimeInMs":10,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Also reproducible on all of MySQL 5.1 - 5.7 (MySQL bug #65121)