-
Bug
-
-
Major
-
Resolution:
Fixed
-
10.1(EOL), 10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5
-
-
-
Fields of the numeric and temporal data types convert to character_set_results, while functions do not:
This is bad when character_set_results is set to character sets like UCS2, UTF16, UTF32, as well as filename.
SET character_set_results=filename;
|
CREATE OR REPLACE TABLE t1 (a DATETIME(6));
|
INSERT INTO t1 VALUES ('2001-01-01 00:00:00.000000');
|
SELECT a, COALESCE(a) AS c FROM t1;
|
+----------------------------------------------------+----------------------------+
|
| a | c |
|
+----------------------------------------------------+----------------------------+
|
| 2001@002d01@002d01@002000@003a00@003a00@002e000000 | 2001-01-01 00:00:00.000000 |
|
+----------------------------------------------------+----------------------------+
|
Notice, the field converted its value to 'filename', while the function did not.
The same problem is repeatable with INT (and also with TINYINT, SHORTINT, MEDIUMINT, BIGINT):
SET character_set_results=filename;
|
CREATE OR REPLACE TABLE t1 (a INT);
|
INSERT INTO t1 VALUES (-3);
|
SELECT a, COALESCE(a) AS c FROM t1;
|
+--------+------+
|
| a | c |
|
+--------+------+
|
| @002d3 | -3 |
|
+--------+------+
|
- relates to
-
MDEV-23162
Improve Protocol performance for numeric data
-
-
Closed
{"report":{"fcp":963.2999992370605,"ttfb":268,"pageVisibility":"visible","entityId":90433,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"0ec3fa10-380d-4d5c-a6ea-60b21108c4db","navigationType":0,"readyForUser":1079.0999994277954,"redirectCount":0,"resourceLoadedEnd":775.8999996185303,"resourceLoadedStart":274.19999980926514,"resourceTiming":[{"duration":186.89999961853027,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":274.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":274.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":461.0999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":186.89999961853027,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":274.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":274.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":461.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":195.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":274.69999980926514,"connectEnd":274.69999980926514,"connectStart":274.69999980926514,"domainLookupEnd":274.69999980926514,"domainLookupStart":274.69999980926514,"fetchStart":274.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":274.69999980926514,"responseEnd":470.5,"responseStart":470.5,"secureConnectionStart":274.69999980926514},{"duration":227.10000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":274.8999996185303,"connectEnd":274.8999996185303,"connectStart":274.8999996185303,"domainLookupEnd":274.8999996185303,"domainLookupStart":274.8999996185303,"fetchStart":274.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":274.8999996185303,"responseEnd":502,"responseStart":502,"secureConnectionStart":274.8999996185303},{"duration":230.9000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":275.0999994277954,"connectEnd":275.0999994277954,"connectStart":275.0999994277954,"domainLookupEnd":275.0999994277954,"domainLookupStart":275.0999994277954,"fetchStart":275.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":275.0999994277954,"responseEnd":506,"responseStart":506,"secureConnectionStart":275.0999994277954},{"duration":231.20000076293945,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":275.29999923706055,"connectEnd":275.29999923706055,"connectStart":275.29999923706055,"domainLookupEnd":275.29999923706055,"domainLookupStart":275.29999923706055,"fetchStart":275.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":275.29999923706055,"responseEnd":506.5,"responseStart":506.3999996185303,"secureConnectionStart":275.29999923706055},{"duration":231.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":275.5,"connectEnd":275.5,"connectStart":275.5,"domainLookupEnd":275.5,"domainLookupStart":275.5,"fetchStart":275.5,"redirectEnd":0,"redirectStart":0,"requestStart":275.5,"responseEnd":507,"responseStart":507,"secureConnectionStart":275.5},{"duration":344.4000005722046,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":275.5999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":275.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":620,"responseStart":0,"secureConnectionStart":0},{"duration":232.4000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":275.79999923706055,"connectEnd":275.79999923706055,"connectStart":275.79999923706055,"domainLookupEnd":275.79999923706055,"domainLookupStart":275.79999923706055,"fetchStart":275.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":275.79999923706055,"responseEnd":508.19999980926514,"responseStart":508.19999980926514,"secureConnectionStart":275.79999923706055},{"duration":344.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":276,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":276,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":620.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":232.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":276.19999980926514,"connectEnd":276.19999980926514,"connectStart":276.19999980926514,"domainLookupEnd":276.19999980926514,"domainLookupStart":276.19999980926514,"fetchStart":276.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":276.19999980926514,"responseEnd":508.69999980926514,"responseStart":508.69999980926514,"secureConnectionStart":276.19999980926514},{"duration":414.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":277.0999994277954,"connectEnd":277.0999994277954,"connectStart":277.0999994277954,"domainLookupEnd":277.0999994277954,"domainLookupStart":277.0999994277954,"fetchStart":277.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":277.0999994277954,"responseEnd":691.8999996185303,"responseStart":691.8999996185303,"secureConnectionStart":277.0999994277954},{"duration":498.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":277.0999994277954,"connectEnd":277.0999994277954,"connectStart":277.0999994277954,"domainLookupEnd":277.0999994277954,"domainLookupStart":277.0999994277954,"fetchStart":277.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":277.0999994277954,"responseEnd":775.8999996185303,"responseStart":775.8999996185303,"secureConnectionStart":277.0999994277954},{"duration":81.59999942779541,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":647.1999998092651,"connectEnd":647.1999998092651,"connectStart":647.1999998092651,"domainLookupEnd":647.1999998092651,"domainLookupStart":647.1999998092651,"fetchStart":647.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":647.1999998092651,"responseEnd":728.7999992370605,"responseStart":728.7999992370605,"secureConnectionStart":647.1999998092651}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":107,"responseStart":269,"responseEnd":271,"domLoading":272,"domInteractive":1140,"domContentLoadedEventStart":1141,"domContentLoadedEventEnd":1188,"domComplete":2007,"loadEventStart":2007,"loadEventEnd":2009,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1117.8999996185303},{"name":"bigPipe.sidebar-id.end","time":1118.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1118.8999996185303},{"name":"bigPipe.activity-panel-pipe-id.end","time":1122},{"name":"activityTabFullyLoaded","time":1199.3999996185303}],"measures":[],"correlationId":"222ab4bc587afd","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":97,"dbReadsTimeInMs":12,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}