-
Task
-
-
Major
-
Resolution:
Duplicate
-
-
-
SHOW CREATE VIEW don't reflect the formating information from the original create statement,
even they are available in the .frm file.
For really huge view create bodys it is heavily readable.
to reproduce.
CREATE TABLE `t1` (
|
`id` INT NULL
|
)
|
;
|
|
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `view_t1` AS SELECT *
|
FROM
|
t1;
|
SHOW CREATE VIEW `view_t1`;
give the following output
CREATE ALGORITHM=UNDEFINED DEFINER=`richard`@`localhost` SQL SECURITY DEFINER VIEW `view_t1` AS select `t1`.`id` AS `id` from `t1
|
But the formating information with \n are available in the .frm file
Output of more view_t1.frm
(source= section)
TYPE=VIEW
|
query=select `try`.`t1`.`id` AS `id` from `try`.`t1`
|
md5=c60d386caaf21a6ba36d48fb4561c351
|
updatable=1
|
algorithm=0
|
definer_user=richard
|
definer_host=localhost
|
suid=1
|
with_check_option=0
|
timestamp=2017-09-14 15:12:16
|
create-version=2
|
source=SELECT *
|
\nFROM
|
\nt1
|
client_cs_name=utf8mb4
|
connection_cl_name=utf8mb4_general_ci
|
view_body_utf8=select `try`.`t1`.`id` AS `id` from `try`.`t1`
|
mariadb-version=100207
|
Sergei Golubchik
made changes -
Field |
Original Value |
New Value |
Affects Version/s
|
10.2
[ 14601
]
|
|
Affects Version/s
|
10.0
[ 16000
]
|
|
Affects Version/s
|
10.1
[ 16100
]
|
|
Environment
|
Tested on ubuntu 16.04 and MariaDB 10.2.7
|
|
Issue Type
|
Bug
[ 1
]
|
Task
[ 3
]
|
Sergei Golubchik
made changes -
Priority
|
Minor
[ 4
]
|
Major
[ 3
]
|
Julien Fritsch
made changes -
Assignee
|
|
Max Mether
[ maxmether
]
|
Julien Fritsch
made changes -
Assignee
|
Max Mether
[ maxmether
]
|
|
Vicențiu Ciorbaru
made changes -
Assignee
|
|
Vicențiu Ciorbaru
[ cvicentiu
]
|
Sergei Golubchik
made changes -
Workflow
|
MariaDB v3
[ 82581
]
|
MariaDB v4
[ 130713
]
|
Sergei Golubchik
made changes -
Fix Version/s
|
|
N/A
[ 14700
]
|
Resolution
|
|
Duplicate
[ 3
]
|
Status
|
Open
[ 1
]
|
Closed
[ 6
]
|
{"report":{"fcp":849.3999999761581,"ttfb":260.7000000476837,"pageVisibility":"visible","entityId":63147,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"43504f43-74a5-4cec-908d-544e3ac94e3c","navigationType":0,"readyForUser":927,"redirectCount":0,"resourceLoadedEnd":1173,"resourceLoadedStart":266,"resourceTiming":[{"duration":59.89999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":266,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":266,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":325.89999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":60.09999990463257,"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":266.3000000715256,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":266.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":326.39999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":118,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":266.5,"connectEnd":266.5,"connectStart":266.5,"domainLookupEnd":266.5,"domainLookupStart":266.5,"fetchStart":266.5,"redirectEnd":0,"redirectStart":0,"requestStart":266.5,"responseEnd":384.5,"responseStart":384.5,"secureConnectionStart":266.5},{"duration":204.10000002384186,"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":266.7000000476837,"connectEnd":266.7000000476837,"connectStart":266.7000000476837,"domainLookupEnd":266.7000000476837,"domainLookupStart":266.7000000476837,"fetchStart":266.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":266.7000000476837,"responseEnd":470.8000000715256,"responseStart":470.8000000715256,"secureConnectionStart":266.7000000476837},{"duration":207.39999997615814,"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":267,"connectEnd":267,"connectStart":267,"domainLookupEnd":267,"domainLookupStart":267,"fetchStart":267,"redirectEnd":0,"redirectStart":0,"requestStart":267,"responseEnd":474.39999997615814,"responseStart":474.39999997615814,"secureConnectionStart":267},{"duration":207.69999992847443,"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":267.2000000476837,"connectEnd":267.2000000476837,"connectStart":267.2000000476837,"domainLookupEnd":267.2000000476837,"domainLookupStart":267.2000000476837,"fetchStart":267.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":267.2000000476837,"responseEnd":474.89999997615814,"responseStart":474.89999997615814,"secureConnectionStart":267.2000000476837},{"duration":208,"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":267.39999997615814,"connectEnd":267.39999997615814,"connectStart":267.39999997615814,"domainLookupEnd":267.39999997615814,"domainLookupStart":267.39999997615814,"fetchStart":267.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":267.39999997615814,"responseEnd":475.39999997615814,"responseStart":475.39999997615814,"secureConnectionStart":267.39999997615814},{"duration":256.5,"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":267.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":267.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":524,"responseStart":0,"secureConnectionStart":0},{"duration":208.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":267.7000000476837,"connectEnd":267.7000000476837,"connectStart":267.7000000476837,"domainLookupEnd":267.7000000476837,"domainLookupStart":267.7000000476837,"fetchStart":267.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":267.7000000476837,"responseEnd":476.2000000476837,"responseStart":476.2000000476837,"secureConnectionStart":267.7000000476837},{"duration":256.2999999523163,"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":267.8000000715256,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":267.8000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":524.1000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":209.10000002384186,"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":267.89999997615814,"connectEnd":267.89999997615814,"connectStart":267.89999997615814,"domainLookupEnd":267.89999997615814,"domainLookupStart":267.89999997615814,"fetchStart":267.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":267.89999997615814,"responseEnd":477,"responseStart":477,"secureConnectionStart":267.89999997615814},{"duration":391.89999997615814,"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":269.10000002384186,"connectEnd":269.10000002384186,"connectStart":269.10000002384186,"domainLookupEnd":269.10000002384186,"domainLookupStart":269.10000002384186,"fetchStart":269.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":269.10000002384186,"responseEnd":661,"responseStart":661,"secureConnectionStart":269.10000002384186},{"duration":873.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":273.5,"connectEnd":273.5,"connectStart":273.5,"domainLookupEnd":273.5,"domainLookupStart":273.5,"fetchStart":273.5,"redirectEnd":0,"redirectStart":0,"requestStart":273.5,"responseEnd":1147.2000000476837,"responseStart":1147.2000000476837,"secureConnectionStart":273.5},{"duration":126.19999992847443,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":535.2000000476837,"connectEnd":535.2000000476837,"connectStart":535.2000000476837,"domainLookupEnd":535.2000000476837,"domainLookupStart":535.2000000476837,"fetchStart":535.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":535.2000000476837,"responseEnd":661.3999999761581,"responseStart":661.3999999761581,"secureConnectionStart":535.2000000476837},{"duration":359.89999997615814,"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":804.8000000715256,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":804.8000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1164.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":359.10000002384186,"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":805.7000000476837,"connectEnd":805.7000000476837,"connectStart":805.7000000476837,"domainLookupEnd":805.7000000476837,"domainLookupStart":805.7000000476837,"fetchStart":805.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":805.7000000476837,"responseEnd":1164.8000000715256,"responseStart":1164.8000000715256,"secureConnectionStart":805.7000000476837},{"duration":378.60000002384186,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":842.8999999761581,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":842.8999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1221.5,"responseStart":0,"secureConnectionStart":0},{"duration":366.89999997615814,"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":806.1000000238419,"connectEnd":806.1000000238419,"connectStart":806.1000000238419,"domainLookupEnd":806.1000000238419,"domainLookupStart":806.1000000238419,"fetchStart":806.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":806.1000000238419,"responseEnd":1173,"responseStart":1173,"secureConnectionStart":806.1000000238419}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":62,"responseStart":261,"responseEnd":268,"domLoading":264,"domInteractive":1175,"domContentLoadedEventStart":1175,"domContentLoadedEventEnd":1218,"domComplete":1520,"loadEventStart":1520,"loadEventEnd":1521,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1149},{"name":"bigPipe.sidebar-id.end","time":1149.8999999761581},{"name":"bigPipe.activity-panel-pipe-id.start","time":1150.1000000238419},{"name":"bigPipe.activity-panel-pipe-id.end","time":1153.1000000238419},{"name":"activityTabFullyLoaded","time":1233.8000000715256}],"measures":[],"correlationId":"93262989043949","effectiveType":"4g","downlink":9.4,"rtt":0,"serverDuration":131,"dbReadsTimeInMs":22,"dbConnsTimeInMs":32,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}