DROP TABLE IF EXISTS t1;
|
CREATE TABLE t1 (c VARCHAR(8) CHARACTER SET latin1, d DATE);
|
INSERT INTO t1 VALUES ('test',now());
|
SELECT * FROM t1 WHERE DAYNAME(d)<>c;
|
returns an error:
ERROR 1267 (HY000): Illegal mix of collations (utf8_general_ci,COERCIBLE) and (latin1_swedish_ci,IMPLICIT) for operation '<>'
|
It should work without errors.
The same problem is repeatable with MONTHNAME:
DROP TABLE IF EXISTS t1;
|
CREATE TABLE t1 (c VARCHAR(8) CHARACTER SET latin1, d DATE);
|
INSERT INTO t1 VALUES ('test',now());
|
SELECT * FROM t1 WHERE MONTHNAME(d)<>c;
|
There are no comments yet on this issue.
{"report":{"fcp":1000,"ttfb":215.0999999642372,"pageVisibility":"visible","entityId":56695,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":16,"apdex":0.5,"journeyId":"f07d7632-9680-4273-baeb-e9233958cf1a","navigationType":0,"readyForUser":1138.5999999642372,"redirectCount":0,"resourceLoadedEnd":645.6999999880791,"resourceLoadedStart":228.0999999642372,"resourceTiming":[{"duration":12.600000023841858,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":228.0999999642372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":228.0999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":240.69999998807907,"responseStart":0,"secureConnectionStart":0},{"duration":12.300000011920929,"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":228.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":228.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":240.80000001192093,"responseStart":0,"secureConnectionStart":0},{"duration":262.30000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":228.5999999642372,"connectEnd":246.69999998807907,"connectStart":246.69999998807907,"domainLookupEnd":246.69999998807907,"domainLookupStart":246.69999998807907,"fetchStart":228.5999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":252.19999998807907,"responseEnd":490.89999997615814,"responseStart":268.5,"secureConnectionStart":246.69999998807907},{"duration":46.80000001192093,"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":229.0999999642372,"connectEnd":229.0999999642372,"connectStart":229.0999999642372,"domainLookupEnd":229.0999999642372,"domainLookupStart":229.0999999642372,"fetchStart":229.0999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":255.5999999642372,"responseEnd":275.89999997615814,"responseStart":273.5,"secureConnectionStart":229.0999999642372},{"duration":412.4000000357628,"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":229.0999999642372,"connectEnd":229.0999999642372,"connectStart":229.0999999642372,"domainLookupEnd":229.0999999642372,"domainLookupStart":229.0999999642372,"fetchStart":229.0999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":253.39999997615814,"responseEnd":641.5,"responseStart":286.5,"secureConnectionStart":229.0999999642372},{"duration":55.39999997615814,"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":229.19999998807907,"connectEnd":229.19999998807907,"connectStart":229.19999998807907,"domainLookupEnd":229.19999998807907,"domainLookupStart":229.19999998807907,"fetchStart":229.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":255.89999997615814,"responseEnd":284.5999999642372,"responseStart":274.0999999642372,"secureConnectionStart":229.19999998807907},{"duration":61.299999952316284,"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":229.30000001192093,"connectEnd":229.30000001192093,"connectStart":229.30000001192093,"domainLookupEnd":229.30000001192093,"domainLookupStart":229.30000001192093,"fetchStart":229.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":256,"responseEnd":290.5999999642372,"responseStart":285.89999997615814,"secureConnectionStart":229.30000001192093},{"duration":20.80000001192093,"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":229.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":229.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":250.19999998807907,"responseStart":0,"secureConnectionStart":0},{"duration":65.30000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":229.5,"connectEnd":229.5,"connectStart":229.5,"domainLookupEnd":229.5,"domainLookupStart":229.5,"fetchStart":229.5,"redirectEnd":0,"redirectStart":0,"requestStart":256.19999998807907,"responseEnd":294.80000001192093,"responseStart":291.5,"secureConnectionStart":229.5},{"duration":21.30000001192093,"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":229.5999999642372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":229.5999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":250.89999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":65.19999998807907,"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":229.69999998807907,"connectEnd":229.69999998807907,"connectStart":229.69999998807907,"domainLookupEnd":229.69999998807907,"domainLookupStart":229.69999998807907,"fetchStart":229.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":256.30000001192093,"responseEnd":294.89999997615814,"responseStart":292.0999999642372,"secureConnectionStart":229.69999998807907},{"duration":413.39999997615814,"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":232.30000001192093,"connectEnd":232.30000001192093,"connectStart":232.30000001192093,"domainLookupEnd":232.30000001192093,"domainLookupStart":232.30000001192093,"fetchStart":232.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":293.5,"responseEnd":645.6999999880791,"responseStart":638.0999999642372,"secureConnectionStart":232.30000001192093},{"duration":411,"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":232.39999997615814,"connectEnd":232.39999997615814,"connectStart":232.39999997615814,"domainLookupEnd":232.39999997615814,"domainLookupStart":232.39999997615814,"fetchStart":232.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":299,"responseEnd":643.3999999761581,"responseStart":634.3999999761581,"secureConnectionStart":232.39999997615814},{"duration":40.39999997615814,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":640.6999999880791,"connectEnd":640.6999999880791,"connectStart":640.6999999880791,"domainLookupEnd":640.6999999880791,"domainLookupStart":640.6999999880791,"fetchStart":640.6999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":647.1999999880791,"responseEnd":681.0999999642372,"responseStart":680.3999999761581,"secureConnectionStart":640.6999999880791},{"duration":311.7999999523163,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":909.3000000119209,"connectEnd":909.3000000119209,"connectStart":909.3000000119209,"domainLookupEnd":909.3000000119209,"domainLookupStart":909.3000000119209,"fetchStart":909.3000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":1189.0999999642372,"responseEnd":1221.0999999642372,"responseStart":1220.5,"secureConnectionStart":909.3000000119209}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":83,"responseStart":216,"responseEnd":232,"domLoading":221,"domInteractive":1217,"domContentLoadedEventStart":1217,"domContentLoadedEventEnd":1267,"domComplete":1638,"loadEventStart":1638,"loadEventEnd":1638,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1201.699999988079},{"name":"bigPipe.sidebar-id.end","time":1202.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1202.699999988079},{"name":"bigPipe.activity-panel-pipe-id.end","time":1203.0999999642372},{"name":"activityTabFullyLoaded","time":1287.699999988079}],"measures":[],"correlationId":"c931731eb3bcd9","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":70,"dbReadsTimeInMs":10,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}