$ mysql-tmp --column-type-info test
|
...
|
mysql> SELECT 18446744073709551615 AS c1, name_const('a',18446744073709551615) AS c2;
|
...
|
Field 1: `c1`
|
Type: LONGLONG
|
Flags: NOT_NULL UNSIGNED BINARY NUM
|
...
|
Field 2: `c2`
|
Type: LONGLONG
|
Flags: BINARY NUM
|
...
|
+----------------------+----------------------+
|
| c1 | c2 |
|
+----------------------+----------------------+
|
| 18446744073709551615 | 18446744073709551615 |
|
+----------------------+----------------------
|
Notice, metadata says LONGLONG UNSIGNED for c1 but LONGLONG SIGNED for c2, but return values are both unsigned.
Another example of incorrect behaviour:
DROP TABLE IF EXISTS t1;
|
CREATE TABLE t1 AS SELECT 18446744073709551615 AS c1, name_const('a',18446744073709551615) AS c2;
|
SHOW WARNINGS;
|
SHOW CREATE TABLE t1;
|
The above script returns
+---------+------+---------------------------------------------+
|
| Level | Code | Message |
|
+---------+------+---------------------------------------------+
|
| Warning | 1264 | Out of range value for column 'c2' at row 1 |
|
+---------+------+---------------------------------------------+
|
1 row in set (0.00 sec)
|
|
+-------+--------------------------------------------------------------------------------------------------------------------------------------------+
|
| Table | Create Table |
|
+-------+--------------------------------------------------------------------------------------------------------------------------------------------+
|
| t1 | CREATE TABLE `t1` (
|
`c1` bigint(20) unsigned NOT NULL DEFAULT '0',
|
`c2` bigint(20) DEFAULT NULL
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
|
+-------+--------------------------------------------------------------------------------------------------------------------------------------------+
|
The expected result is to have unsigned flag in both fields.
{"report":{"fcp":732.8999998569489,"ttfb":155,"pageVisibility":"visible","entityId":51065,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"8c572604-9525-4bf3-99e6-f9c7a7dae404","navigationType":0,"readyForUser":815.8999998569489,"redirectCount":0,"resourceLoadedEnd":880.7999999523163,"resourceLoadedStart":160.89999985694885,"resourceTiming":[{"duration":55.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":160.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":160.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":216.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":55.39999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":161.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":161.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":216.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":72.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":161.5,"connectEnd":161.5,"connectStart":161.5,"domainLookupEnd":161.5,"domainLookupStart":161.5,"fetchStart":161.5,"redirectEnd":0,"redirectStart":0,"requestStart":161.5,"responseEnd":233.69999980926514,"responseStart":233.69999980926514,"secureConnectionStart":161.5},{"duration":126.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":161.59999990463257,"connectEnd":161.59999990463257,"connectStart":161.59999990463257,"domainLookupEnd":161.59999990463257,"domainLookupStart":161.59999990463257,"fetchStart":161.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":161.59999990463257,"responseEnd":288,"responseStart":288,"secureConnectionStart":161.59999990463257},{"duration":129.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":161.89999985694885,"connectEnd":161.89999985694885,"connectStart":161.89999985694885,"domainLookupEnd":161.89999985694885,"domainLookupStart":161.89999985694885,"fetchStart":161.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":161.89999985694885,"responseEnd":291.69999980926514,"responseStart":291.69999980926514,"secureConnectionStart":161.89999985694885},{"duration":130.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":162.09999990463257,"connectEnd":162.09999990463257,"connectStart":162.09999990463257,"domainLookupEnd":162.09999990463257,"domainLookupStart":162.09999990463257,"fetchStart":162.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":162.09999990463257,"responseEnd":292.19999980926514,"responseStart":292.19999980926514,"secureConnectionStart":162.09999990463257},{"duration":130.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":162.29999995231628,"connectEnd":162.29999995231628,"connectStart":162.29999995231628,"domainLookupEnd":162.29999995231628,"domainLookupStart":162.29999995231628,"fetchStart":162.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":162.29999995231628,"responseEnd":292.69999980926514,"responseStart":292.69999980926514,"secureConnectionStart":162.29999995231628},{"duration":216.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":162.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":162.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":378.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":130.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":162.69999980926514,"connectEnd":162.69999980926514,"connectStart":162.69999980926514,"domainLookupEnd":162.69999980926514,"domainLookupStart":162.69999980926514,"fetchStart":162.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":162.69999980926514,"responseEnd":293.19999980926514,"responseStart":293.19999980926514,"secureConnectionStart":162.69999980926514},{"duration":215.79999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/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":162.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":162.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":378.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":130.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/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":163,"connectEnd":163,"connectStart":163,"domainLookupEnd":163,"domainLookupStart":163,"fetchStart":163,"redirectEnd":0,"redirectStart":0,"requestStart":163,"responseEnd":293.89999985694885,"responseStart":293.89999985694885,"secureConnectionStart":163},{"duration":250.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":163.89999985694885,"connectEnd":163.89999985694885,"connectStart":163.89999985694885,"domainLookupEnd":163.89999985694885,"domainLookupStart":163.89999985694885,"fetchStart":163.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":163.89999985694885,"responseEnd":414,"responseStart":414,"secureConnectionStart":163.89999985694885},{"duration":268.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":164,"connectEnd":164,"connectStart":164,"domainLookupEnd":164,"domainLookupStart":164,"fetchStart":164,"redirectEnd":0,"redirectStart":0,"requestStart":164,"responseEnd":432.59999990463257,"responseStart":432.59999990463257,"secureConnectionStart":164},{"duration":26.799999952316284,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":405.39999985694885,"connectEnd":405.39999985694885,"connectStart":405.39999985694885,"domainLookupEnd":405.39999985694885,"domainLookupStart":405.39999985694885,"fetchStart":405.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":405.39999985694885,"responseEnd":432.19999980926514,"responseStart":432.19999980926514,"secureConnectionStart":405.39999985694885},{"duration":211.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/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&whisper-enabled=true","startTime":435.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":435.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":647.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":294.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/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&whisper-enabled=true","startTime":436.59999990463257,"connectEnd":436.59999990463257,"connectStart":436.59999990463257,"domainLookupEnd":436.59999990463257,"domainLookupStart":436.59999990463257,"fetchStart":436.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":436.59999990463257,"responseEnd":731.5,"responseStart":731.5,"secureConnectionStart":436.59999990463257},{"duration":443.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/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&whisper-enabled=true","startTime":437,"connectEnd":437,"connectStart":437,"domainLookupEnd":437,"domainLookupStart":437,"fetchStart":437,"redirectEnd":0,"redirectStart":0,"requestStart":437,"responseEnd":880.7999999523163,"responseStart":880.6999998092651,"secureConnectionStart":437},{"duration":212.09999990463257,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":726.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":726.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":938.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":140.29999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":741.2999999523163,"connectEnd":741.2999999523163,"connectStart":741.2999999523163,"domainLookupEnd":741.2999999523163,"domainLookupStart":741.2999999523163,"fetchStart":741.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":741.2999999523163,"responseEnd":881.5999999046326,"responseStart":881.5999999046326,"secureConnectionStart":741.2999999523163}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":3,"responseStart":155,"responseEnd":157,"domLoading":158,"domInteractive":881,"domContentLoadedEventStart":881,"domContentLoadedEventEnd":929,"domComplete":1204,"loadEventStart":1205,"loadEventEnd":1206,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":859.3999998569489},{"name":"bigPipe.sidebar-id.end","time":860.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":860.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":863.2999999523163},{"name":"activityTabFullyLoaded","time":944.2999999523163}],"measures":[],"correlationId":"25a7f60e8155a2","effectiveType":"4g","downlink":9.3,"rtt":0,"serverDuration":90,"dbReadsTimeInMs":8,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}