This is no longer accept since the 10.4.12
CREATE TABLE `expenditure2` (
|
`ts` int(10) unsigned NOT NULL COMMENT 'midnight',
|
`dateUTC` date AS (cast(from_unixtime(`ts`) as date)) PERSISTENT
|
) ENGINE=InnoDB;
|
But if you already have a table with similar schema, is still working.
I check in the doc / release note and the only possibly related entry I was able to find are:
https://mariadb.com/kb/en/mariadb-10231-changelog/
https://github.com/MariaDB/server/commit/8eec2d61fc
MDEV-21249 MariaDB 10.3.10 When referring to bigint to generate timestamp data in the virtual generated column, the value of the generated column does not change when the time zone changes
As a side note also the `
` no longer work so
create table newTable like tableWithVirtColum;
Gives
Error in query (1901): Function or expression 'from_unixtime()' cannot be used in the GENERATED ALWAYS AS clause of `dateCET`
- is caused by
-
MDEV-21249
MariaDB 10.3.10 When referring to bigint to generate timestamp data in the virtual generated column, the value of the generated column does not change when the time zone changes
-
-
Closed
{"report":{"fcp":728.8000001907349,"ttfb":191.30000019073486,"pageVisibility":"visible","entityId":82765,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"500567ba-7b3a-4960-a045-e291d43a2baf","navigationType":0,"readyForUser":828.9000005722046,"redirectCount":0,"resourceLoadedEnd":748.9000005722046,"resourceLoadedStart":197.10000038146973,"resourceTiming":[{"duration":26.300000190734863,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":197.10000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":197.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":223.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":27.100000381469727,"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":197.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":197.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":224.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":88.40000057220459,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":197.5,"connectEnd":197.5,"connectStart":197.5,"domainLookupEnd":197.5,"domainLookupStart":197.5,"fetchStart":197.5,"redirectEnd":0,"redirectStart":0,"requestStart":197.5,"responseEnd":285.9000005722046,"responseStart":285.9000005722046,"secureConnectionStart":197.5},{"duration":203.39999961853027,"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":197.60000038146973,"connectEnd":197.60000038146973,"connectStart":197.60000038146973,"domainLookupEnd":197.60000038146973,"domainLookupStart":197.60000038146973,"fetchStart":197.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":197.60000038146973,"responseEnd":401,"responseStart":401,"secureConnectionStart":197.60000038146973},{"duration":207.79999923706055,"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":197.70000076293945,"connectEnd":197.70000076293945,"connectStart":197.70000076293945,"domainLookupEnd":197.70000076293945,"domainLookupStart":197.70000076293945,"fetchStart":197.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":197.70000076293945,"responseEnd":405.5,"responseStart":405.5,"secureConnectionStart":197.70000076293945},{"duration":208.69999980926514,"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":197.70000076293945,"connectEnd":197.70000076293945,"connectStart":197.70000076293945,"domainLookupEnd":197.70000076293945,"domainLookupStart":197.70000076293945,"fetchStart":197.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":197.70000076293945,"responseEnd":406.4000005722046,"responseStart":406.4000005722046,"secureConnectionStart":197.70000076293945},{"duration":209.10000038146973,"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":197.80000019073486,"connectEnd":197.80000019073486,"connectStart":197.80000019073486,"domainLookupEnd":197.80000019073486,"domainLookupStart":197.80000019073486,"fetchStart":197.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":197.80000019073486,"responseEnd":406.9000005722046,"responseStart":406.9000005722046,"secureConnectionStart":197.80000019073486},{"duration":209.9000005722046,"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":198,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":198,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":407.9000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":209.9000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":198,"connectEnd":198,"connectStart":198,"domainLookupEnd":198,"domainLookupStart":198,"fetchStart":198,"redirectEnd":0,"redirectStart":0,"requestStart":198,"responseEnd":407.9000005722046,"responseStart":407.9000005722046,"secureConnectionStart":198},{"duration":210.60000038146973,"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":198.10000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":198.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":408.70000076293945,"responseStart":0,"secureConnectionStart":0},{"duration":210.39999961853027,"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":198.4000005722046,"connectEnd":198.4000005722046,"connectStart":198.4000005722046,"domainLookupEnd":198.4000005722046,"domainLookupStart":198.4000005722046,"fetchStart":198.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":198.4000005722046,"responseEnd":408.80000019073486,"responseStart":408.80000019073486,"secureConnectionStart":198.4000005722046},{"duration":524,"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":204.10000038146973,"connectEnd":204.10000038146973,"connectStart":204.10000038146973,"domainLookupEnd":204.10000038146973,"domainLookupStart":204.10000038146973,"fetchStart":204.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":204.10000038146973,"responseEnd":728.1000003814697,"responseStart":728.1000003814697,"secureConnectionStart":204.10000038146973},{"duration":544.8000001907349,"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":204.10000038146973,"connectEnd":204.10000038146973,"connectStart":204.10000038146973,"domainLookupEnd":204.10000038146973,"domainLookupStart":204.10000038146973,"fetchStart":204.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":204.10000038146973,"responseEnd":748.9000005722046,"responseStart":748.9000005722046,"secureConnectionStart":204.10000038146973},{"duration":282.3999996185303,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":446.4000005722046,"connectEnd":446.4000005722046,"connectStart":446.4000005722046,"domainLookupEnd":446.4000005722046,"domainLookupStart":446.4000005722046,"fetchStart":446.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":446.4000005722046,"responseEnd":728.8000001907349,"responseStart":728.8000001907349,"secureConnectionStart":446.4000005722046},{"duration":40.89999961853027,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":718.2000007629395,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":718.2000007629395,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":759.1000003814697,"responseStart":0,"secureConnectionStart":0}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":53,"responseStart":192,"responseEnd":199,"domLoading":195,"domInteractive":957,"domContentLoadedEventStart":957,"domContentLoadedEventEnd":1017,"domComplete":1157,"loadEventStart":1157,"loadEventEnd":1158,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":928.1000003814697},{"name":"bigPipe.sidebar-id.end","time":929.1000003814697},{"name":"bigPipe.activity-panel-pipe-id.start","time":929.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":931.5},{"name":"activityTabFullyLoaded","time":1034.6000003814697}],"measures":[],"correlationId":"f0cba504b2e6d5","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":83,"dbReadsTimeInMs":14,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
RoyBellingan sorry for getting distracted on this. I'm around so start up a zulip topic, ping me and show a ref to your current code and I'll give it a closer look.