DROP TABLE IF EXISTS t1;
|
CREATE TABLE t1 (a DATETIME, b TIMESTAMP AS (TIMESTAMP(a)));
|
SHOW CREATE TABLE t1;
|
returns:
+-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
| Table | Create Table |
|
+-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
| t1 | CREATE TABLE `t1` (
|
`a` datetime DEFAULT NULL,
|
`b` timestamp AS (timestamp(a)) VIRTUAL NULL ON UPDATE CURRENT_TIMESTAMP
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
|
+-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
Now if I copy the SHOW ouput and paste it into the client, it returns syntax error:
MariaDB [test]> CREATE TABLE `t1` (`a` datetime DEFAULT NULL, `b` timestamp AS (timestamp(a)) VIRTUAL NULL ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'NULL ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1' at line 1
|
MariaDB [test]>
|
{"report":{"fcp":1026.1999998092651,"ttfb":228.4000005722046,"pageVisibility":"visible","entityId":52133,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"9422ed24-1fa4-4fc5-b50e-4c8d3efbf544","navigationType":0,"readyForUser":1098.4000005722046,"redirectCount":0,"resourceLoadedEnd":732.8000001907349,"resourceLoadedStart":236.19999980926514,"resourceTiming":[{"duration":109.70000076293945,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":236.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":236.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":345.9000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":109.59999942779541,"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":236.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":236.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":346,"responseStart":0,"secureConnectionStart":0},{"duration":348.1000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":236.5,"connectEnd":236.5,"connectStart":236.5,"domainLookupEnd":236.5,"domainLookupStart":236.5,"fetchStart":236.5,"redirectEnd":0,"redirectStart":0,"requestStart":346.80000019073486,"responseEnd":584.6000003814697,"responseStart":362.4000005722046,"secureConnectionStart":236.5},{"duration":474.69999980926514,"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":236.5,"connectEnd":236.5,"connectStart":236.5,"domainLookupEnd":236.5,"domainLookupStart":236.5,"fetchStart":236.5,"redirectEnd":0,"redirectStart":0,"requestStart":347,"responseEnd":711.1999998092651,"responseStart":363.19999980926514,"secureConnectionStart":236.5},{"duration":130,"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":236.60000038146973,"connectEnd":236.60000038146973,"connectStart":236.60000038146973,"domainLookupEnd":236.60000038146973,"domainLookupStart":236.60000038146973,"fetchStart":236.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":347.69999980926514,"responseEnd":366.6000003814697,"responseStart":364.80000019073486,"secureConnectionStart":236.60000038146973},{"duration":132.89999961853027,"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":236.80000019073486,"connectEnd":236.80000019073486,"connectStart":236.80000019073486,"domainLookupEnd":236.80000019073486,"domainLookupStart":236.80000019073486,"fetchStart":236.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":348.4000005722046,"responseEnd":369.69999980926514,"responseStart":366.80000019073486,"secureConnectionStart":236.80000019073486},{"duration":111.79999923706055,"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":236.9000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":236.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":348.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":133.19999980926514,"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":236.9000005722046,"connectEnd":236.9000005722046,"connectStart":236.9000005722046,"domainLookupEnd":236.9000005722046,"domainLookupStart":236.9000005722046,"fetchStart":236.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":349.9000005722046,"responseEnd":370.1000003814697,"responseStart":368,"secureConnectionStart":236.9000005722046},{"duration":113.30000019073486,"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":237.10000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":237.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":350.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":136.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":237.10000038146973,"connectEnd":237.10000038146973,"connectStart":237.10000038146973,"domainLookupEnd":237.10000038146973,"domainLookupStart":237.10000038146973,"fetchStart":237.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":351.1000003814697,"responseEnd":373.80000019073486,"responseStart":371.69999980926514,"secureConnectionStart":237.10000038146973},{"duration":138.5,"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":237.19999980926514,"connectEnd":237.19999980926514,"connectStart":237.19999980926514,"domainLookupEnd":237.19999980926514,"domainLookupStart":237.19999980926514,"fetchStart":237.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":352.6000003814697,"responseEnd":375.69999980926514,"responseStart":374.69999980926514,"secureConnectionStart":237.19999980926514},{"duration":485,"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":247.80000019073486,"connectEnd":247.80000019073486,"connectStart":247.80000019073486,"domainLookupEnd":247.80000019073486,"domainLookupStart":247.80000019073486,"fetchStart":247.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":411.30000019073486,"responseEnd":732.8000001907349,"responseStart":728.6000003814697,"secureConnectionStart":247.80000019073486},{"duration":483.5,"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":248.30000019073486,"connectEnd":248.30000019073486,"connectStart":248.30000019073486,"domainLookupEnd":248.30000019073486,"domainLookupStart":248.30000019073486,"fetchStart":248.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":493.4000005722046,"responseEnd":731.8000001907349,"responseStart":725.5,"secureConnectionStart":248.30000019073486},{"duration":142.79999923706055,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":712.4000005722046,"connectEnd":712.4000005722046,"connectStart":712.4000005722046,"domainLookupEnd":712.4000005722046,"domainLookupStart":712.4000005722046,"fetchStart":712.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":823.6000003814697,"responseEnd":855.1999998092651,"responseStart":854.4000005722046,"secureConnectionStart":712.4000005722046},{"duration":192,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":945.8000001907349,"connectEnd":945.8000001907349,"connectStart":945.8000001907349,"domainLookupEnd":945.8000001907349,"domainLookupStart":945.8000001907349,"fetchStart":945.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1107.6000003814697,"responseEnd":1137.8000001907349,"responseStart":1136.6999998092651,"secureConnectionStart":945.8000001907349}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":88,"responseStart":228,"responseEnd":248,"domLoading":232,"domInteractive":1157,"domContentLoadedEventStart":1157,"domContentLoadedEventEnd":1204,"domComplete":1560,"loadEventStart":1560,"loadEventEnd":1560,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1131.3000001907349},{"name":"bigPipe.sidebar-id.end","time":1132.1000003814697},{"name":"bigPipe.activity-panel-pipe-id.start","time":1132.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1133},{"name":"activityTabFullyLoaded","time":1215.5}],"measures":[],"correlationId":"2afb1063885d73","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":86,"dbReadsTimeInMs":11,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
OK to push.