Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
N/A
The query works:
bb-10.6-mdev17399-hf 8611fb30bc6
MariaDB [test]> SELECT * FROM JSON_TABLE( CONVERT ( '[]' USING dec8), '$' COLUMNS(b VARCHAR (8) CHARSET utf8 PATH '$' )) AS jt2 WHERE ( CONVERT ( '[]' USING cp1256) = b);
Empty set (0.001 sec)
But the same query via a view fails with ER_CANT_AGGREGATE_2COLLATIONS:
MariaDB [test]> CREATE OR REPLACE VIEW v AS
SELECT * FROM JSON_TABLE( CONVERT ( '[]' USING dec8), '$' COLUMNS(b VARCHAR (8) CHARSET utf8 PATH '$' )) AS jt2 WHERE ( CONVERT ( '[]' USING cp1256) = b);
Query OK, 0 rows affected (0.015 sec)
MariaDB [test]>
MariaDB [test]> SELECT * FROM v;
ERROR 1267 (HY000): Illegal mix of collations (cp1256_general_ci,IMPLICIT) and (dec8_swedish_ci,IMPLICIT) for operation '='
On MySQL both queries work (with warnings urging to use utf8mb4 instead of utf8, but that's unrelated):
MySQL 8.0.23
MySQL [test]> SELECT * FROM JSON_TABLE( CONVERT ( '[]' USING dec8), '$' COLUMNS(b VARCHAR (8) CHARSET utf8 PATH '$' )) AS jt2 WHERE ( CONVERT ( '[]' USING cp1256) = b);
Empty set , 1 warning (0.001 sec)
MySQL [test]>
MySQL [test]> CREATE OR REPLACE VIEW v AS
-> SELECT * FROM JSON_TABLE( CONVERT ( '[]' USING dec8), '$' COLUMNS(b VARCHAR (8) CHARSET utf8 PATH '$' )) AS jt2 WHERE ( CONVERT ( '[]' USING cp1256) = b);
Query OK, 0 rows affected, 1 warning (0.033 sec)
MySQL [test]>
MySQL [test]> SELECT * FROM v;
Empty set , 2 warnings (0.002 sec)
MySQL [test]>
MySQL [test]> show warnings;
+ ---------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Level | Code | Message |
+ ---------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Warning | 3719 | 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous. |
| Warning | 3719 | 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous. |
+ ---------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
2 rows in set (0.000 sec)
There are no comments yet on this issue.
{"report":{"fcp":983.3999999761581,"ttfb":168.5,"pageVisibility":"visible","entityId":98285,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":16,"apdex":0.5,"journeyId":"924b4da0-61d4-480e-9f0c-ede9a378daa5","navigationType":0,"readyForUser":1090.2999999523163,"redirectCount":0,"resourceLoadedEnd":646,"resourceLoadedStart":177.10000002384186,"resourceTiming":[{"duration":187.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":177.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":177.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":364.60000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":187.89999997615814,"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":177.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":177.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":365.1999999284744,"responseStart":0,"secureConnectionStart":0},{"duration":355.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":177.39999997615814,"connectEnd":177.39999997615814,"connectStart":177.39999997615814,"domainLookupEnd":177.39999997615814,"domainLookupStart":177.39999997615814,"fetchStart":177.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":367.7999999523163,"responseEnd":532.5,"responseStart":397.1999999284744,"secureConnectionStart":177.39999997615814},{"duration":468.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":177.5,"connectEnd":177.5,"connectStart":177.5,"domainLookupEnd":177.5,"domainLookupStart":177.5,"fetchStart":177.5,"redirectEnd":0,"redirectStart":0,"requestStart":369.10000002384186,"responseEnd":646,"responseStart":419.10000002384186,"secureConnectionStart":177.5},{"duration":223.79999995231628,"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":177.60000002384186,"connectEnd":177.60000002384186,"connectStart":177.60000002384186,"domainLookupEnd":177.60000002384186,"domainLookupStart":177.60000002384186,"fetchStart":177.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":369.10000002384186,"responseEnd":401.39999997615814,"responseStart":398.7999999523163,"secureConnectionStart":177.60000002384186},{"duration":226,"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":177.69999992847443,"connectEnd":177.69999992847443,"connectStart":177.69999992847443,"domainLookupEnd":177.69999992847443,"domainLookupStart":177.69999992847443,"fetchStart":177.69999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":369.39999997615814,"responseEnd":403.6999999284744,"responseStart":399.39999997615814,"secureConnectionStart":177.69999992847443},{"duration":229,"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":177.89999997615814,"connectEnd":177.89999997615814,"connectStart":177.89999997615814,"domainLookupEnd":177.89999997615814,"domainLookupStart":177.89999997615814,"fetchStart":177.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":370.10000002384186,"responseEnd":406.89999997615814,"responseStart":401.7999999523163,"secureConnectionStart":177.89999997615814},{"duration":191.79999995231628,"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":178,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":178,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":369.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":229,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":178,"connectEnd":178,"connectStart":178,"domainLookupEnd":178,"domainLookupStart":178,"fetchStart":178,"redirectEnd":0,"redirectStart":0,"requestStart":372.60000002384186,"responseEnd":407,"responseStart":402.6999999284744,"secureConnectionStart":178},{"duration":192.89999997615814,"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":178.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":178.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":371,"responseStart":0,"secureConnectionStart":0},{"duration":228.89999997615814,"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":178.29999995231628,"connectEnd":178.29999995231628,"connectStart":178.29999995231628,"domainLookupEnd":178.29999995231628,"domainLookupStart":178.29999995231628,"fetchStart":178.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":374.5,"responseEnd":407.1999999284744,"responseStart":404,"secureConnectionStart":178.29999995231628},{"duration":412.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":179.29999995231628,"connectEnd":179.29999995231628,"connectStart":179.29999995231628,"domainLookupEnd":179.29999995231628,"domainLookupStart":179.29999995231628,"fetchStart":179.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":410.7999999523163,"responseEnd":591.6999999284744,"responseStart":585.1999999284744,"secureConnectionStart":179.29999995231628},{"duration":414.10000002384186,"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":179.39999997615814,"connectEnd":179.39999997615814,"connectStart":179.39999997615814,"domainLookupEnd":179.39999997615814,"domainLookupStart":179.39999997615814,"fetchStart":179.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":429.39999997615814,"responseEnd":593.5,"responseStart":588.3999999761581,"secureConnectionStart":179.39999997615814},{"duration":142.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":693,"connectEnd":693,"connectStart":693,"domainLookupEnd":693,"domainLookupStart":693,"fetchStart":693,"redirectEnd":0,"redirectStart":0,"requestStart":799,"responseEnd":835.5,"responseStart":834,"secureConnectionStart":693},{"duration":207.20000004768372,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":975.8999999761581,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":975.8999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1183.1000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":227.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":988.1000000238419,"connectEnd":988.1000000238419,"connectStart":988.1000000238419,"domainLookupEnd":988.1000000238419,"domainLookupStart":988.1000000238419,"fetchStart":988.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":1183.7999999523163,"responseEnd":1215.1999999284744,"responseStart":1214.6000000238419,"secureConnectionStart":988.1000000238419}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":19,"responseStart":169,"responseEnd":176,"domLoading":172,"domInteractive":1223,"domContentLoadedEventStart":1223,"domContentLoadedEventEnd":1272,"domComplete":1381,"loadEventStart":1381,"loadEventEnd":1381,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1171.5},{"name":"bigPipe.sidebar-id.end","time":1172.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":1172.3999999761581},{"name":"bigPipe.activity-panel-pipe-id.end","time":1172.8999999761581},{"name":"activityTabFullyLoaded","time":1277.6999999284744}],"measures":[],"correlationId":"993141bed24111","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":67,"dbReadsTimeInMs":10,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}