This script:
DROP TABLE IF EXISTS t1;
|
CREATE TABLE t1 (
|
c1 LONGBLOB,
|
c2 MEDIUMBLOB,
|
c3 BLOB,
|
c4 TINYBLOB,
|
c5 VARCHAR(64),
|
c6 VARCHAR(4000),
|
c7 CHAR(64));
|
DROP TABLE IF EXISTS t2;
|
CREATE TABLE t2 AS SELECT
|
@c1:=c1 AS c1,
|
@c2:=c2 AS c2,
|
@c3:=c3 AS c3,
|
@c4:=c4 AS c4,
|
@c5:=c5 AS c5,
|
@c6:=c6 AS c6,
|
@c7:=c7 AS c7 FROM t1;
|
SHOW CREATE TABLE t2;
|
returns
+-------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
| Table | Create Table |
|
+-------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
| t2 | CREATE TABLE `t2` (
|
`c1` longblob,
|
`c2` longblob,
|
`c3` blob,
|
`c4` varbinary(255) DEFAULT NULL,
|
`c5` varchar(64) DEFAULT NULL,
|
`c6` text,
|
`c7` varchar(64) DEFAULT NULL
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
|
+-------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
Now if I run "mysql --column-type-info test" and run the same SELECT query that was used in CREATE TABLE t2:
SELECT
|
@c1:=c1 AS c1,
|
@c2:=c2 AS c2,
|
@c3:=c3 AS c3,
|
@c4:=c4 AS c4,
|
@c5:=c5 AS c5,
|
@c6:=c6 AS c6,
|
@c7:=c7 AS c7 FROM t1;
|
it returns the following metadata:
Field 1: `c1`
|
Type: LONG_BLOB
|
Collation: binary (63)
|
Length: 4294967295
|
|
Field 2: `c2`
|
Type: MEDIUM_BLOB
|
Collation: binary (63)
|
Length: 16777215
|
|
Field 3: `c3`
|
Catalog: `def`
|
Type: VAR_STRING
|
Collation: binary (63)
|
Length: 65535
|
|
Field 4: `c4`
|
Type: VAR_STRING
|
Collation: binary (63)
|
Length: 255
|
|
Field 5: `c5`
|
Type: VAR_STRING
|
Collation: utf8_general_ci (33)
|
Length: 192
|
|
Field 6: `c6`
|
Type: VAR_STRING
|
Collation: utf8_general_ci (33)
|
Length: 12000
|
|
Field 7: `c7`
|
Type: VAR_STRING
|
Collation: utf8_general_ci (33)
|
Length: 192
|
Notice, for some columns the column type in metadata does not match the column type in t2.
There are no comments yet on this issue.
{"report":{"fcp":1137.5999999046326,"ttfb":328.5,"pageVisibility":"visible","entityId":53500,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"d347019e-9c7b-4162-bb21-dfc8e78548ee","navigationType":0,"readyForUser":1219.2999999523163,"redirectCount":0,"resourceLoadedEnd":842.0999999046326,"resourceLoadedStart":337.2000000476837,"resourceTiming":[{"duration":156.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":337.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":337.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":493.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":156.20000004768372,"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":337.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":337.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":493.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":342.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":337.59999990463257,"connectEnd":496.59999990463257,"connectStart":496.59999990463257,"domainLookupEnd":496.59999990463257,"domainLookupStart":496.59999990463257,"fetchStart":337.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":496.7999999523163,"responseEnd":679.7000000476837,"responseStart":518.2999999523163,"secureConnectionStart":496.59999990463257},{"duration":504,"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":338.09999990463257,"connectEnd":338.09999990463257,"connectStart":338.09999990463257,"domainLookupEnd":338.09999990463257,"domainLookupStart":338.09999990463257,"fetchStart":338.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":497.59999990463257,"responseEnd":842.0999999046326,"responseStart":529,"secureConnectionStart":338.09999990463257},{"duration":209.09999990463257,"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":338.2000000476837,"connectEnd":338.2000000476837,"connectStart":338.2000000476837,"domainLookupEnd":338.2000000476837,"domainLookupStart":338.2000000476837,"fetchStart":338.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":498.09999990463257,"responseEnd":547.2999999523163,"responseStart":540,"secureConnectionStart":338.2000000476837},{"duration":210.59999990463257,"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":338.2000000476837,"connectEnd":338.2000000476837,"connectStart":338.2000000476837,"domainLookupEnd":338.2000000476837,"domainLookupStart":338.2000000476837,"fetchStart":338.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":497.7000000476837,"responseEnd":548.7999999523163,"responseStart":541.3999998569489,"secureConnectionStart":338.2000000476837},{"duration":208.5,"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":338.2999999523163,"connectEnd":338.2999999523163,"connectStart":338.2999999523163,"domainLookupEnd":338.2999999523163,"domainLookupStart":338.2999999523163,"fetchStart":338.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":498.7000000476837,"responseEnd":546.7999999523163,"responseStart":539.2999999523163,"secureConnectionStart":338.2999999523163},{"duration":159.89999985694885,"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":338.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":338.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":498.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":198.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":338.59999990463257,"connectEnd":338.59999990463257,"connectStart":338.59999990463257,"domainLookupEnd":338.59999990463257,"domainLookupStart":338.59999990463257,"fetchStart":338.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":504.5,"responseEnd":537.2999999523163,"responseStart":535.5,"secureConnectionStart":338.59999990463257},{"duration":162.09999990463257,"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":338.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":338.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":500.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":200.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":338.7000000476837,"connectEnd":338.7000000476837,"connectStart":338.7000000476837,"domainLookupEnd":338.7000000476837,"domainLookupStart":338.7000000476837,"fetchStart":338.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":504.7000000476837,"responseEnd":538.7999999523163,"responseStart":536.2999999523163,"secureConnectionStart":338.7000000476837},{"duration":444.80000019073486,"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":343.89999985694885,"connectEnd":343.89999985694885,"connectStart":343.89999985694885,"domainLookupEnd":343.89999985694885,"domainLookupStart":343.89999985694885,"fetchStart":343.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":562,"responseEnd":788.7000000476837,"responseStart":780.7000000476837,"secureConnectionStart":343.89999985694885},{"duration":445.7000000476837,"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":344,"connectEnd":344,"connectStart":344,"domainLookupEnd":344,"domainLookupStart":344,"fetchStart":344,"redirectEnd":0,"redirectStart":0,"requestStart":606.5,"responseEnd":789.7000000476837,"responseStart":783.8999998569489,"secureConnectionStart":344},{"duration":137.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":807.3999998569489,"connectEnd":807.3999998569489,"connectStart":807.3999998569489,"domainLookupEnd":807.3999998569489,"domainLookupStart":807.3999998569489,"fetchStart":807.3999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":913,"responseEnd":944.7999999523163,"responseStart":943.8999998569489,"secureConnectionStart":807.3999998569489}],"fetchStart":0,"domainLookupStart":163,"domainLookupEnd":171,"connectStart":171,"connectEnd":190,"secureConnectionStart":179,"requestStart":191,"responseStart":328,"responseEnd":343,"domLoading":332,"domInteractive":1272,"domContentLoadedEventStart":1272,"domContentLoadedEventEnd":1313,"domComplete":1752,"loadEventStart":1752,"loadEventEnd":1753,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1258.8999998569489},{"name":"bigPipe.sidebar-id.end","time":1259.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1259.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":1260.2000000476837},{"name":"activityTabFullyLoaded","time":1321.8999998569489}],"measures":[],"correlationId":"54d5dfe9e43a51","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":65,"dbReadsTimeInMs":10,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}