-
Bug
-
-
Major
-
Resolution:
Fixed
-
10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5, 10.6, 10.7(EOL), 10.8(EOL), 10.9(EOL)
-
-
-
If I specify mutiple conflicting COLLATE clauses on the column level, no error is raised:
CREATE OR REPLACE TABLE t1 (a CHAR(10) COLLATE latin1_swedish_ci NOT NULL COLLATE latin1_bin);
|
SHOW CREATE TABLE t1;
|
+-------+----------------------------------------------------------------------------------------------------------------------------+
|
| Table | Create Table |
|
+-------+----------------------------------------------------------------------------------------------------------------------------+
|
| t1 | CREATE TABLE `t1` (
|
`a` char(10) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
|
+-------+----------------------------------------------------------------------------------------------------------------------------+
|
Notice, the first COLLATE was ignored, the last COLLATE was used.
The same problem is repeatable on the table level. See MDEV-28117.
Alexander Barkov
made changes -
Summary
|
Multiple conflicting COLLATE clauses are not rejected
|
Multiple conflicting column COLLATE clauses are not rejected
|
Alexander Barkov
made changes -
Description
|
If I specify mutiple conflicting COLLATE clauses on the column level, no error is raised:
{code:sql}
CREATE OR REPLACE TABLE t1 (a CHAR(10) COLLATE latin1_swedish_ci NOT NULL COLLATE latin1_bin);
SHOW CREATE TABLE t1;
{code}
{noformat}
+-------+----------------------------------------------------------------------------------------------------------------------------+
| Table | Create Table |
+-------+----------------------------------------------------------------------------------------------------------------------------+
| t1 | CREATE TABLE `t1` (
`a` char(10) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
+-------+----------------------------------------------------------------------------------------------------------------------------+
{noformat}
Notice, the first COLLATE was ignored, the last COLLATE was used.
The same problem is repeatable on the table level:
{code:sql}
CREATE OR REPLACE TABLE t1 (a CHAR(10)) COLLATE latin1_swedish_ci COLLATE latin1_bin;
SHOW CREATE TABLE t1;
{code}
{noformat}
+-------+------------------------------------------------------------------------------------------------------------------------------+
| Table | Create Table |
+-------+------------------------------------------------------------------------------------------------------------------------------+
| t1 | CREATE TABLE `t1` (
`a` char(10) COLLATE latin1_bin DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin |
+-------+------------------------------------------------------------------------------------------------------------------------------+
{noformat}
|
If I specify mutiple conflicting COLLATE clauses on the column level, no error is raised:
{code:sql}
CREATE OR REPLACE TABLE t1 (a CHAR(10) COLLATE latin1_swedish_ci NOT NULL COLLATE latin1_bin);
SHOW CREATE TABLE t1;
{code}
{noformat}
+-------+----------------------------------------------------------------------------------------------------------------------------+
| Table | Create Table |
+-------+----------------------------------------------------------------------------------------------------------------------------+
| t1 | CREATE TABLE `t1` (
`a` char(10) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
+-------+----------------------------------------------------------------------------------------------------------------------------+
{noformat}
Notice, the first COLLATE was ignored, the last COLLATE was used.
The same problem is repeatable on the table level. See MDEV-28117.
|
Alexander Barkov
made changes -
Fix Version/s
|
|
10.9.0
[ 27113
]
|
Fix Version/s
|
10.9
[ 26905
]
|
|
Resolution
|
|
Fixed
[ 1
]
|
Status
|
Open
[ 1
]
|
Closed
[ 6
]
|
{"report":{"fcp":834.7999999523163,"ttfb":262.2999999523163,"pageVisibility":"visible","entityId":108802,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"1125cc00-e947-429f-8a28-86fb8b2bbace","navigationType":0,"readyForUser":922,"redirectCount":0,"resourceLoadedEnd":852.3999999761581,"resourceLoadedStart":267.5,"resourceTiming":[{"duration":33,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":267.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":267.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":300.5,"responseStart":0,"secureConnectionStart":0},{"duration":34,"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":267.6999999284744,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":267.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":301.6999999284744,"responseStart":0,"secureConnectionStart":0},{"duration":89.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":267.89999997615814,"connectEnd":267.89999997615814,"connectStart":267.89999997615814,"domainLookupEnd":267.89999997615814,"domainLookupStart":267.89999997615814,"fetchStart":267.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":267.89999997615814,"responseEnd":357.6999999284744,"responseStart":357.6999999284744,"secureConnectionStart":267.89999997615814},{"duration":158.70000004768372,"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":268.09999990463257,"connectEnd":268.09999990463257,"connectStart":268.09999990463257,"domainLookupEnd":268.09999990463257,"domainLookupStart":268.09999990463257,"fetchStart":268.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":268.09999990463257,"responseEnd":426.7999999523163,"responseStart":426.6999999284744,"secureConnectionStart":268.09999990463257},{"duration":162.20000004768372,"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":268.2999999523163,"connectEnd":268.2999999523163,"connectStart":268.2999999523163,"domainLookupEnd":268.2999999523163,"domainLookupStart":268.2999999523163,"fetchStart":268.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":268.2999999523163,"responseEnd":430.5,"responseStart":430.5,"secureConnectionStart":268.2999999523163},{"duration":162.5,"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":268.5,"connectEnd":268.5,"connectStart":268.5,"domainLookupEnd":268.5,"domainLookupStart":268.5,"fetchStart":268.5,"redirectEnd":0,"redirectStart":0,"requestStart":268.5,"responseEnd":431,"responseStart":431,"secureConnectionStart":268.5},{"duration":162.70000004768372,"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":268.6999999284744,"connectEnd":268.6999999284744,"connectStart":268.6999999284744,"domainLookupEnd":268.6999999284744,"domainLookupStart":268.6999999284744,"fetchStart":268.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":268.6999999284744,"responseEnd":431.39999997615814,"responseStart":431.39999997615814,"secureConnectionStart":268.6999999284744},{"duration":234.70000004768372,"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":268.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":268.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":503.5,"responseStart":0,"secureConnectionStart":0},{"duration":162.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":269,"connectEnd":269,"connectStart":269,"domainLookupEnd":269,"domainLookupStart":269,"fetchStart":269,"redirectEnd":0,"redirectStart":0,"requestStart":269,"responseEnd":431.89999997615814,"responseStart":431.89999997615814,"secureConnectionStart":269},{"duration":234.5,"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":269.1999999284744,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":269.1999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":503.6999999284744,"responseStart":0,"secureConnectionStart":0},{"duration":163,"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":269.39999997615814,"connectEnd":269.39999997615814,"connectStart":269.39999997615814,"domainLookupEnd":269.39999997615814,"domainLookupStart":269.39999997615814,"fetchStart":269.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":269.39999997615814,"responseEnd":432.39999997615814,"responseStart":432.39999997615814,"secureConnectionStart":269.39999997615814},{"duration":574.1000000238419,"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":275.09999990463257,"connectEnd":275.09999990463257,"connectStart":275.09999990463257,"domainLookupEnd":275.09999990463257,"domainLookupStart":275.09999990463257,"fetchStart":275.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":275.09999990463257,"responseEnd":849.1999999284744,"responseStart":849.1999999284744,"secureConnectionStart":275.09999990463257},{"duration":576.8000000715256,"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":275.59999990463257,"connectEnd":275.59999990463257,"connectStart":275.59999990463257,"domainLookupEnd":275.59999990463257,"domainLookupStart":275.59999990463257,"fetchStart":275.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":275.59999990463257,"responseEnd":852.3999999761581,"responseStart":852.3999999761581,"secureConnectionStart":275.59999990463257},{"duration":334.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":515.5,"connectEnd":515.5,"connectStart":515.5,"domainLookupEnd":515.5,"domainLookupStart":515.5,"fetchStart":515.5,"redirectEnd":0,"redirectStart":0,"requestStart":515.5,"responseEnd":849.5999999046326,"responseStart":849.5999999046326,"secureConnectionStart":515.5},{"duration":202.29999995231628,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":828.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":828.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1030.5999999046326,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":76,"responseStart":262,"responseEnd":274,"domLoading":266,"domInteractive":1064,"domContentLoadedEventStart":1064,"domContentLoadedEventEnd":1115,"domComplete":1355,"loadEventStart":1355,"loadEventEnd":1356,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1033.0999999046326},{"name":"bigPipe.sidebar-id.end","time":1034.8999999761581},{"name":"bigPipe.activity-panel-pipe-id.start","time":1035},{"name":"bigPipe.activity-panel-pipe-id.end","time":1037.6999999284744},{"name":"activityTabFullyLoaded","time":1130.3999999761581}],"measures":[],"correlationId":"e03b8805a5b661","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":126,"dbReadsTimeInMs":26,"dbConnsTimeInMs":35,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}