Sure - I know that comment. But I'd state this is bug, not permitting auto-increment columns in VIRTUAL columns.
On https://mariadb.com/kb/en/generated-columns/
is stated: "VIRTUAL: This type's value is not stored at all. Instead, the value is generated dynamically when the table is queried. This type is the default."
so, a virtual column is the same, as adding the sql portion to the query part. If this is true, there is NO reason at all, to forbid auto-increment columns in virtual columns.
MDEV-11117 shows only problems with constraints (and maybe persistent columns)
Marc
added a comment - - edited Sure - I know that comment. But I'd state this is bug, not permitting auto-increment columns in VIRTUAL columns.
On
https://mariadb.com/kb/en/generated-columns/
is stated: "VIRTUAL: This type's value is not stored at all. Instead, the value is generated dynamically when the table is queried. This type is the default."
so, a virtual column is the same, as adding the sql portion to the query part. If this is true, there is NO reason at all, to forbid auto-increment columns in virtual columns.
MDEV-11117 shows only problems with constraints (and maybe persistent columns)
People
Sergei Golubchik
Marc
Votes:
0Vote for this issue
Watchers:
3Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":881.7000002861023,"ttfb":238.10000038146973,"pageVisibility":"visible","entityId":116858,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"c181e07a-ef29-489f-ad1e-0b907958bb11","navigationType":0,"readyForUser":965.5,"redirectCount":0,"resourceLoadedEnd":893.8000001907349,"resourceLoadedStart":244.40000009536743,"resourceTiming":[{"duration":19.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":244.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":244.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":263.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":19.699999809265137,"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":244.60000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":244.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":264.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":74.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":244.80000019073486,"connectEnd":244.80000019073486,"connectStart":244.80000019073486,"domainLookupEnd":244.80000019073486,"domainLookupStart":244.80000019073486,"fetchStart":244.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":244.80000019073486,"responseEnd":319.30000019073486,"responseStart":319.30000019073486,"secureConnectionStart":244.80000019073486},{"duration":133.5,"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":245,"connectEnd":245,"connectStart":245,"domainLookupEnd":245,"domainLookupStart":245,"fetchStart":245,"redirectEnd":0,"redirectStart":0,"requestStart":245,"responseEnd":378.5,"responseStart":378.5,"secureConnectionStart":245},{"duration":136.69999980926514,"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":245.30000019073486,"connectEnd":245.30000019073486,"connectStart":245.30000019073486,"domainLookupEnd":245.30000019073486,"domainLookupStart":245.30000019073486,"fetchStart":245.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":245.30000019073486,"responseEnd":382,"responseStart":382,"secureConnectionStart":245.30000019073486},{"duration":137.59999990463257,"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":245.40000009536743,"connectEnd":245.40000009536743,"connectStart":245.40000009536743,"domainLookupEnd":245.40000009536743,"domainLookupStart":245.40000009536743,"fetchStart":245.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":245.40000009536743,"responseEnd":383,"responseStart":383,"secureConnectionStart":245.40000009536743},{"duration":138.39999961853027,"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":245.60000038146973,"connectEnd":245.60000038146973,"connectStart":245.60000038146973,"domainLookupEnd":245.60000038146973,"domainLookupStart":245.60000038146973,"fetchStart":245.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":245.60000038146973,"responseEnd":384,"responseStart":384,"secureConnectionStart":245.60000038146973},{"duration":219.40000009536743,"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":245.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":245.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":465.2000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":139,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":245.90000009536743,"connectEnd":245.90000009536743,"connectStart":245.90000009536743,"domainLookupEnd":245.90000009536743,"domainLookupStart":245.90000009536743,"fetchStart":245.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":245.90000009536743,"responseEnd":384.90000009536743,"responseStart":384.90000009536743,"secureConnectionStart":245.90000009536743},{"duration":219.2999997138977,"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":246.10000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":246.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":465.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":139.59999990463257,"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":246.40000009536743,"connectEnd":246.40000009536743,"connectStart":246.40000009536743,"domainLookupEnd":246.40000009536743,"domainLookupStart":246.40000009536743,"fetchStart":246.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":246.40000009536743,"responseEnd":386,"responseStart":386,"secureConnectionStart":246.40000009536743},{"duration":397.90000009536743,"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":247.2000002861023,"connectEnd":247.2000002861023,"connectStart":247.2000002861023,"domainLookupEnd":247.2000002861023,"domainLookupStart":247.2000002861023,"fetchStart":247.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":247.2000002861023,"responseEnd":645.1000003814697,"responseStart":645.1000003814697,"secureConnectionStart":247.2000002861023},{"duration":634.8999996185303,"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":251.60000038146973,"connectEnd":251.60000038146973,"connectStart":251.60000038146973,"domainLookupEnd":251.60000038146973,"domainLookupStart":251.60000038146973,"fetchStart":251.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":251.60000038146973,"responseEnd":886.5,"responseStart":886.5,"secureConnectionStart":251.60000038146973},{"duration":167.69999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":477.80000019073486,"connectEnd":477.80000019073486,"connectStart":477.80000019073486,"domainLookupEnd":477.80000019073486,"domainLookupStart":477.80000019073486,"fetchStart":477.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":477.80000019073486,"responseEnd":645.5,"responseStart":645.5,"secureConnectionStart":477.80000019073486},{"duration":129.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":764.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":764.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":893.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":300.19999980926514,"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":765.2000002861023,"connectEnd":765.2000002861023,"connectStart":765.2000002861023,"domainLookupEnd":765.2000002861023,"domainLookupStart":765.2000002861023,"fetchStart":765.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":765.2000002861023,"responseEnd":1065.4000000953674,"responseStart":1065.4000000953674,"secureConnectionStart":765.2000002861023},{"duration":310,"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":765.6000003814697,"connectEnd":765.6000003814697,"connectStart":765.6000003814697,"domainLookupEnd":765.6000003814697,"domainLookupStart":765.6000003814697,"fetchStart":765.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":765.6000003814697,"responseEnd":1075.6000003814697,"responseStart":1075.6000003814697,"secureConnectionStart":765.6000003814697}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":88,"responseStart":238,"responseEnd":243,"domLoading":242,"domInteractive":1018,"domContentLoadedEventStart":1018,"domContentLoadedEventEnd":1062,"domComplete":1312,"loadEventStart":1312,"loadEventEnd":1312,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1004.8000001907349},{"name":"bigPipe.sidebar-id.end","time":1005.6000003814697},{"name":"bigPipe.activity-panel-pipe-id.start","time":1005.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1007.2000002861023},{"name":"activityTabFullyLoaded","time":1084.4000000953674}],"measures":[],"correlationId":"296bfde5847d13","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":92,"dbReadsTimeInMs":10,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
mokraemer, please check https://mariadb.com/kb/en/auto_increment/#check-constraints-default-values-and-virtual-columns