Type:
Bug
Priority:
Major
Resolution:
Unresolved
Affects Version/s:
N/A
In Oracle, capitalization of the format elements matters. It is documented and actually holds truth:
SELECT TO_CHAR(SYSDATE, 'MONTH' ) FROM DUAL
MAY
SELECT TO_CHAR(SYSDATE, 'Month' ) FROM DUAL
May
SELECT TO_CHAR(SYSDATE, 'month' ) FROM DUAL
may
In MariaDB implementation it is not so. All variants are accepted, but the same result is returned for any of them:
a04ef8a3cb90
MariaDB [test]> SELECT TO_CHAR(SYSDATE, 'MONTH' ) FROM DUAL;
+ ---------------------------+
| TO_CHAR(SYSDATE, 'MONTH' ) |
+ ---------------------------+
| May |
+ ---------------------------+
1 row in set (0.001 sec)
MariaDB [test]> SELECT TO_CHAR(SYSDATE, 'Month' ) FROM DUAL;
+ ---------------------------+
| TO_CHAR(SYSDATE, 'Month' ) |
+ ---------------------------+
| May |
+ ---------------------------+
1 row in set (0.001 sec)
MariaDB [test]> SELECT TO_CHAR(SYSDATE, 'month' ) FROM DUAL;
+ ---------------------------+
| TO_CHAR(SYSDATE, 'month' ) |
+ ---------------------------+
| May |
+ ---------------------------+
1 row in set (0.001 sec)
I haven't found anything in MDEV-20017 description or comments that would suggest it is intentional. It says that only MONTH is supported (which is not true, as shown above), but even if it were true, it would mean that it returns a different value comparing to Oracle.
relates to
MDEV-20017
Implement TO_CHAR() Oracle compatible function
Closed
There are no comments yet on this issue.
{"report":{"fcp":933.2999999523163,"ttfb":172.09999990463257,"pageVisibility":"visible","entityId":99706,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"2b243b67-11c5-4b26-8839-03f408014f02","navigationType":0,"readyForUser":1004.5999999046326,"redirectCount":0,"resourceLoadedEnd":889.3999998569489,"resourceLoadedStart":177.5,"resourceTiming":[{"duration":241.79999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":177.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":177.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":419.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":241.79999995231628,"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.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":177.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":419.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":295,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":177.89999985694885,"connectEnd":177.89999985694885,"connectStart":177.89999985694885,"domainLookupEnd":177.89999985694885,"domainLookupStart":177.89999985694885,"fetchStart":177.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":177.89999985694885,"responseEnd":472.89999985694885,"responseStart":472.89999985694885,"secureConnectionStart":177.89999985694885},{"duration":369.59999990463257,"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":178,"connectEnd":178,"connectStart":178,"domainLookupEnd":178,"domainLookupStart":178,"fetchStart":178,"redirectEnd":0,"redirectStart":0,"requestStart":178,"responseEnd":547.5999999046326,"responseStart":547.5999999046326,"secureConnectionStart":178},{"duration":373.2999999523163,"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":178.09999990463257,"connectEnd":178.09999990463257,"connectStart":178.09999990463257,"domainLookupEnd":178.09999990463257,"domainLookupStart":178.09999990463257,"fetchStart":178.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":178.09999990463257,"responseEnd":551.3999998569489,"responseStart":551.3999998569489,"secureConnectionStart":178.09999990463257},{"duration":374.2000000476837,"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":178.19999980926514,"connectEnd":178.19999980926514,"connectStart":178.19999980926514,"domainLookupEnd":178.19999980926514,"domainLookupStart":178.19999980926514,"fetchStart":178.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":178.19999980926514,"responseEnd":552.3999998569489,"responseStart":552.3999998569489,"secureConnectionStart":178.19999980926514},{"duration":375.09999990463257,"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.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":178.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":553.3999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":374.59999990463257,"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":178.29999995231628,"connectEnd":178.29999995231628,"connectStart":178.29999995231628,"domainLookupEnd":178.29999995231628,"domainLookupStart":178.29999995231628,"fetchStart":178.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":178.29999995231628,"responseEnd":552.8999998569489,"responseStart":552.8999998569489,"secureConnectionStart":178.29999995231628},{"duration":374.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":178.5,"connectEnd":178.5,"connectStart":178.5,"domainLookupEnd":178.5,"domainLookupStart":178.5,"fetchStart":178.5,"redirectEnd":0,"redirectStart":0,"requestStart":178.5,"responseEnd":553.3999998569489,"responseStart":553.3999998569489,"secureConnectionStart":178.5},{"duration":375.2000000476837,"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.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":178.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":553.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":375.09999990463257,"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.79999995231628,"connectEnd":178.79999995231628,"connectStart":178.79999995231628,"domainLookupEnd":178.79999995231628,"domainLookupStart":178.79999995231628,"fetchStart":178.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":178.79999995231628,"responseEnd":553.8999998569489,"responseStart":553.8999998569489,"secureConnectionStart":178.79999995231628},{"duration":571.7999999523163,"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.39999985694885,"connectEnd":179.39999985694885,"connectStart":179.39999985694885,"domainLookupEnd":179.39999985694885,"domainLookupStart":179.39999985694885,"fetchStart":179.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":179.39999985694885,"responseEnd":751.1999998092651,"responseStart":751.1999998092651,"secureConnectionStart":179.39999985694885},{"duration":710,"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.39999985694885,"connectEnd":179.39999985694885,"connectStart":179.39999985694885,"domainLookupEnd":179.39999985694885,"domainLookupStart":179.39999985694885,"fetchStart":179.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":179.39999985694885,"responseEnd":889.3999998569489,"responseStart":889.3999998569489,"secureConnectionStart":179.39999985694885},{"duration":171.20000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":689.0999999046326,"connectEnd":689.0999999046326,"connectStart":689.0999999046326,"domainLookupEnd":689.0999999046326,"domainLookupStart":689.0999999046326,"fetchStart":689.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":689.0999999046326,"responseEnd":860.2999999523163,"responseStart":860.2999999523163,"secureConnectionStart":689.0999999046326},{"duration":38.09999990463257,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":875.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":875.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":913.1999998092651,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":46,"responseStart":172,"responseEnd":174,"domLoading":175,"domInteractive":1056,"domContentLoadedEventStart":1056,"domContentLoadedEventEnd":1091,"domComplete":1466,"loadEventStart":1466,"loadEventEnd":1466,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1042.0999999046326},{"name":"bigPipe.sidebar-id.end","time":1042.8999998569489},{"name":"bigPipe.activity-panel-pipe-id.start","time":1043},{"name":"bigPipe.activity-panel-pipe-id.end","time":1043.3999998569489},{"name":"activityTabFullyLoaded","time":1098.6999998092651}],"measures":[],"correlationId":"13bea7491687d9","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":70,"dbReadsTimeInMs":11,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}