-
Bug
-
-
Major
-
Resolution:
Fixed
-
10.1(EOL), 10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5
-
-
-
SET sql_mode='STRICT_ALL_TABLES,STRICT_TRANS_TABLES';
|
CREATE OR REPLACE TABLE t1 AS SELECT
|
0xFFFFFFFFFFFFFFFF+0 AS c1,
|
FLOOR(0xFFFFFFFFFFFFFFFF) AS c2,
|
CEILING(0xFFFFFFFFFFFFFFFF) AS c3,
|
ROUND(0xFFFFFFFFFFFFFFFF) AS c4,
|
TRUNCATE(0xFFFFFFFFFFFFFFFF,0) AS c5;
|
ERROR 1264 (22003): Out of range value for column 'c4' at row
|
Looks bad. No error expected.
SET sql_mode='';
|
CREATE OR REPLACE TABLE t1 AS SELECT
|
0xFFFFFFFFFFFFFFFF+0 AS c1,
|
FLOOR(0xFFFFFFFFFFFFFFFF) AS c2,
|
CEILING(0xFFFFFFFFFFFFFFFF) AS c3,
|
ROUND(0xFFFFFFFFFFFFFFFF) AS c4,
|
TRUNCATE(0xFFFFFFFFFFFFFFFF,0) AS c5;
|
Query OK, 1 row affected, 2 warnings (0.022 sec)
|
Records: 1 Duplicates: 0 Warnings: 2
|
Ok. With a loose mode it worked, but with warnings. Warnings are not expected.
*************************** 1. row ***************************
|
c1: 18446744073709551615
|
c2: 9223372036854775808
|
c3: 9223372036854775808
|
c4: 100000000000000000
|
c5: 100000000000000000
|
1 row in set (0.001 sec)
|
The result for all columns is wrong. Expect 18446744073709551615 for all columns.
+-------+-----------------------+------+-----+---------+-------+
|
| Field | Type | Null | Key | Default | Extra |
|
+-------+-----------------------+------+-----+---------+-------+
|
| c1 | bigint(21) unsigned | NO | | NULL | |
|
| c2 | bigint(10) unsigned | NO | | NULL | |
|
| c3 | bigint(10) unsigned | NO | | NULL | |
|
| c4 | double(17,0) unsigned | NO | | NULL | |
|
| c5 | double(17,0) unsigned | NO | | NULL | |
|
+-------+-----------------------+------+-----+---------+-------+
|
The data types for all columns except c1 are wrong. Expect BIGINT(21) UNSIGNED for all columns.
- relates to
-
MDEV-23032
FLOOR()/CEIL() incorrectly calculate the precision of a DECIMAL(M,D) column.
-
-
Closed
Transition |
Time In Source Status |
Execution Times |
Open |
|
Closed |
|
14h 28m
|
1
|
{"report":{"fcp":882.5,"ttfb":165.60000014305115,"pageVisibility":"visible","entityId":90053,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"a0c8d89b-009a-49fa-b597-741881203588","navigationType":0,"readyForUser":965.6000001430511,"redirectCount":0,"resourceLoadedEnd":901.3000001907349,"resourceLoadedStart":173.90000009536743,"resourceTiming":[{"duration":147.70000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":173.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":173.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":321.60000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":147.5,"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":174.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":174.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":321.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":156.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":174.40000009536743,"connectEnd":174.40000009536743,"connectStart":174.40000009536743,"domainLookupEnd":174.40000009536743,"domainLookupStart":174.40000009536743,"fetchStart":174.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":174.40000009536743,"responseEnd":330.90000009536743,"responseStart":330.90000009536743,"secureConnectionStart":174.40000009536743},{"duration":341.39999985694885,"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":174.80000019073486,"connectEnd":174.80000019073486,"connectStart":174.80000019073486,"domainLookupEnd":174.80000019073486,"domainLookupStart":174.80000019073486,"fetchStart":174.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":174.80000019073486,"responseEnd":516.2000000476837,"responseStart":516.2000000476837,"secureConnectionStart":174.80000019073486},{"duration":345.60000014305115,"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":175,"connectEnd":175,"connectStart":175,"domainLookupEnd":175,"domainLookupStart":175,"fetchStart":175,"redirectEnd":0,"redirectStart":0,"requestStart":175,"responseEnd":520.6000001430511,"responseStart":520.6000001430511,"secureConnectionStart":175},{"duration":345.90000009536743,"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":175,"connectEnd":175,"connectStart":175,"domainLookupEnd":175,"domainLookupStart":175,"fetchStart":175,"redirectEnd":0,"redirectStart":0,"requestStart":175,"responseEnd":520.9000000953674,"responseStart":520.9000000953674,"secureConnectionStart":175},{"duration":346.2999999523163,"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":175.10000014305115,"connectEnd":175.10000014305115,"connectStart":175.10000014305115,"domainLookupEnd":175.10000014305115,"domainLookupStart":175.10000014305115,"fetchStart":175.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":175.10000014305115,"responseEnd":521.4000000953674,"responseStart":521.4000000953674,"secureConnectionStart":175.10000014305115},{"duration":346.7000000476837,"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":175.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":175.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":521.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":346.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":175.30000019073486,"connectEnd":175.30000019073486,"connectStart":175.30000019073486,"domainLookupEnd":175.30000019073486,"domainLookupStart":175.30000019073486,"fetchStart":175.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":175.30000019073486,"responseEnd":521.7000000476837,"responseStart":521.7000000476837,"secureConnectionStart":175.30000019073486},{"duration":346.7999999523163,"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":175.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":175.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":522.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":346.90000009536743,"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":175.5,"connectEnd":175.5,"connectStart":175.5,"domainLookupEnd":175.5,"domainLookupStart":175.5,"fetchStart":175.5,"redirectEnd":0,"redirectStart":0,"requestStart":175.5,"responseEnd":522.4000000953674,"responseStart":522.4000000953674,"secureConnectionStart":175.5},{"duration":466.5,"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":186.10000014305115,"connectEnd":186.10000014305115,"connectStart":186.10000014305115,"domainLookupEnd":186.10000014305115,"domainLookupStart":186.10000014305115,"fetchStart":186.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":186.10000014305115,"responseEnd":652.6000001430511,"responseStart":652.6000001430511,"secureConnectionStart":186.10000014305115},{"duration":701.7999999523163,"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":186.10000014305115,"connectEnd":186.10000014305115,"connectStart":186.10000014305115,"domainLookupEnd":186.10000014305115,"domainLookupStart":186.10000014305115,"fetchStart":186.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":186.10000014305115,"responseEnd":887.9000000953674,"responseStart":887.9000000953674,"secureConnectionStart":186.10000014305115},{"duration":171.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":480.2000000476837,"connectEnd":480.2000000476837,"connectStart":480.2000000476837,"domainLookupEnd":480.2000000476837,"domainLookupStart":480.2000000476837,"fetchStart":480.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":480.2000000476837,"responseEnd":652.1000001430511,"responseStart":652.1000001430511,"secureConnectionStart":480.2000000476837},{"duration":116.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":784.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":784.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":901.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":269.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":785.8000001907349,"connectEnd":785.8000001907349,"connectStart":785.8000001907349,"domainLookupEnd":785.8000001907349,"domainLookupStart":785.8000001907349,"fetchStart":785.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":785.8000001907349,"responseEnd":1055.7000000476837,"responseStart":1055.7000000476837,"secureConnectionStart":785.8000001907349},{"duration":276,"initiatorType":"script","name":"https://jira.mariadb.org/s/f51ef5507eea4c158f257c66c93b2a3f-CDN/lu2bu7/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":786.2000000476837,"connectEnd":786.2000000476837,"connectStart":786.2000000476837,"domainLookupEnd":786.2000000476837,"domainLookupStart":786.2000000476837,"fetchStart":786.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":786.2000000476837,"responseEnd":1062.2000000476837,"responseStart":1062.2000000476837,"secureConnectionStart":786.2000000476837},{"duration":187.90000009536743,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":875.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":875.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1063.6000001430511,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":6,"responseStart":166,"responseEnd":186,"domLoading":169,"domInteractive":1023,"domContentLoadedEventStart":1023,"domContentLoadedEventEnd":1069,"domComplete":1426,"loadEventStart":1426,"loadEventEnd":1426,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1004.4000000953674},{"name":"bigPipe.sidebar-id.end","time":1005.1000001430511},{"name":"bigPipe.activity-panel-pipe-id.start","time":1005.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1006},{"name":"activityTabFullyLoaded","time":1086.3000001907349}],"measures":[],"correlationId":"95e679e539d075","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":71,"dbReadsTimeInMs":14,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}