The following create statement fails on 10.2.7:
CREATE TABLE t1 ( id INT NOT NULL AUTO_INCREMENT, v INT AS (id) VIRTUAL, PRIMARY KEY (id) ) ENGINE=InnoDB;
Giving the error:
#1901 - Function or expression 'AUTO_INCREMENT' cannot be used in the GENERATED ALWAYS AS clause of `id`
The same create statement works fine on 10.1.22
relates to
MDEV-12936
upgrade to 10.2.6 failed upon tables with virtual columns
Closed
Taylor Honsowetz
made changes -
2017-07-13 17:28
Description
The following create statement fails on 10.2.7:
{{CREATE TABLE t1 ( i INT NOT NULL AUTO_INCREMENT, v INT AS (i) VIRTUAL, PRIMARY KEY (i) ) ENGINE=InnoDB;}}
Giving the error:
{{#1901 - Function or expression 'AUTO_INCREMENT' cannot be used in the GENERATED ALWAYS AS clause of `i`}}
The same create statement works fine on 10.1.22
The following create statement fails on 10.2.7:
CREATE TABLE t1 ( i INT NOT NULL AUTO_INCREMENT, v INT AS (i) VIRTUAL, PRIMARY KEY (i) ) ENGINE=InnoDB;
Giving the error:
#1901 - Function or expression 'AUTO_INCREMENT' cannot be used in the GENERATED ALWAYS AS clause of `i`
The same create statement works fine on 10.1.22
Taylor Honsowetz
made changes -
2017-07-13 17:28
Description
The following create statement fails on 10.2.7:
CREATE TABLE t1 ( i INT NOT NULL AUTO_INCREMENT, v INT AS (i) VIRTUAL, PRIMARY KEY (i) ) ENGINE=InnoDB;
Giving the error:
#1901 - Function or expression 'AUTO_INCREMENT' cannot be used in the GENERATED ALWAYS AS clause of `i`
The same create statement works fine on 10.1.22
The following create statement fails on 10.2.7:
CREATE TABLE t1 ( id INT NOT NULL AUTO_INCREMENT, v INT AS (id) VIRTUAL, PRIMARY KEY (id) ) ENGINE=InnoDB;
Giving the error:
#1901 - Function or expression 'AUTO_INCREMENT' cannot be used in the GENERATED ALWAYS AS clause of `id`
The same create statement works fine on 10.1.22
Sergei Golubchik
made changes -
2017-07-13 18:42
Fix Version/s
N/A
[ 14700
]
Assignee
Sergei Golubchik
[ serg
]
Resolution
Not a Bug
[ 6
]
Status
Open
[ 1
]
Closed
[ 6
]
Sergei Golubchik
made changes -
2017-07-13 18:42
Description
The following create statement fails on 10.2.7:
CREATE TABLE t1 ( id INT NOT NULL AUTO_INCREMENT, v INT AS (id) VIRTUAL, PRIMARY KEY (id) ) ENGINE=InnoDB;
Giving the error:
#1901 - Function or expression 'AUTO_INCREMENT' cannot be used in the GENERATED ALWAYS AS clause of `id`
The same create statement works fine on 10.1.22
The following create statement fails on 10.2.7:
{code:sql}
CREATE TABLE t1 ( id INT NOT NULL AUTO_INCREMENT, v INT AS (id) VIRTUAL, PRIMARY KEY (id) ) ENGINE=InnoDB;
{code}
Giving the error:
#1901 - Function or expression 'AUTO_INCREMENT' cannot be used in the GENERATED ALWAYS AS clause of `id`
The same create statement works fine on 10.1.22
Sergei Golubchik
made changes -
2017-07-13 19:13
Assignee
Sergei Golubchik
[ serg
]
Ian Gilfillan
[ greenman
]
Sergei Golubchik
made changes -
2017-07-13 19:13
Resolution
Not a Bug
[ 6
]
Status
Closed
[ 6
]
Stalled
[ 10000
]
Sergei Golubchik
made changes -
2017-07-13 19:13
Component/s
Documentation
[ 10903
]
Ian Gilfillan
made changes -
2017-07-14 16:17
Resolution
Fixed
[ 1
]
Status
Stalled
[ 10000
]
Closed
[ 6
]
Sergei Golubchik
made changes -
2021-12-06 21:45
Workflow
MariaDB v3
[ 81665
]
MariaDB v4
[ 152485
]
{"report":{"fcp":1078.7999999523163,"ttfb":285,"pageVisibility":"visible","entityId":62264,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"6bee1635-9121-4e28-b65d-1e9d91345619","navigationType":0,"readyForUser":1150,"redirectCount":0,"resourceLoadedEnd":850.6999999284744,"resourceLoadedStart":289.60000002384186,"resourceTiming":[{"duration":183.39999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":289.60000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":289.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":473,"responseStart":0,"secureConnectionStart":0},{"duration":271.10000002384186,"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":295.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":295.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":566.6000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":279.60000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":295.6999999284744,"connectEnd":295.6999999284744,"connectStart":295.6999999284744,"domainLookupEnd":295.6999999284744,"domainLookupStart":295.6999999284744,"fetchStart":295.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":295.6999999284744,"responseEnd":575.2999999523163,"responseStart":575.2999999523163,"secureConnectionStart":295.6999999284744},{"duration":351,"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":296.1999999284744,"connectEnd":296.1999999284744,"connectStart":296.1999999284744,"domainLookupEnd":296.1999999284744,"domainLookupStart":296.1999999284744,"fetchStart":296.1999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":296.1999999284744,"responseEnd":647.1999999284744,"responseStart":647.1999999284744,"secureConnectionStart":296.1999999284744},{"duration":354.10000002384186,"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":296.39999997615814,"connectEnd":296.39999997615814,"connectStart":296.39999997615814,"domainLookupEnd":296.39999997615814,"domainLookupStart":296.39999997615814,"fetchStart":296.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":296.39999997615814,"responseEnd":650.5,"responseStart":650.5,"secureConnectionStart":296.39999997615814},{"duration":354.60000002384186,"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":296.5,"connectEnd":296.5,"connectStart":296.5,"domainLookupEnd":296.5,"domainLookupStart":296.5,"fetchStart":296.5,"redirectEnd":0,"redirectStart":0,"requestStart":296.5,"responseEnd":651.1000000238419,"responseStart":651,"secureConnectionStart":296.5},{"duration":355,"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":296.60000002384186,"connectEnd":296.60000002384186,"connectStart":296.60000002384186,"domainLookupEnd":296.60000002384186,"domainLookupStart":296.60000002384186,"fetchStart":296.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":296.60000002384186,"responseEnd":651.6000000238419,"responseStart":651.6000000238419,"secureConnectionStart":296.60000002384186},{"duration":420.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":296.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":296.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":717.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":355.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":297,"connectEnd":297,"connectStart":297,"domainLookupEnd":297,"domainLookupStart":297,"fetchStart":297,"redirectEnd":0,"redirectStart":0,"requestStart":297,"responseEnd":652.1000000238419,"responseStart":652.1000000238419,"secureConnectionStart":297},{"duration":420.39999997615814,"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":297.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":297.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":717.5,"responseStart":0,"secureConnectionStart":0},{"duration":355.40000009536743,"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":297.1999999284744,"connectEnd":297.1999999284744,"connectStart":297.1999999284744,"domainLookupEnd":297.1999999284744,"domainLookupStart":297.1999999284744,"fetchStart":297.1999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":297.1999999284744,"responseEnd":652.6000000238419,"responseStart":652.6000000238419,"secureConnectionStart":297.1999999284744},{"duration":468.10000002384186,"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":310,"connectEnd":310,"connectStart":310,"domainLookupEnd":310,"domainLookupStart":310,"fetchStart":310,"redirectEnd":0,"redirectStart":0,"requestStart":310,"responseEnd":778.1000000238419,"responseStart":778.1000000238419,"secureConnectionStart":310},{"duration":522.8999999761581,"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":327.7999999523163,"connectEnd":327.7999999523163,"connectStart":327.7999999523163,"domainLookupEnd":327.7999999523163,"domainLookupStart":327.7999999523163,"fetchStart":327.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":327.7999999523163,"responseEnd":850.6999999284744,"responseStart":850.6999999284744,"secureConnectionStart":327.7999999523163},{"duration":56.39999997615814,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":728.2999999523163,"connectEnd":728.2999999523163,"connectStart":728.2999999523163,"domainLookupEnd":728.2999999523163,"domainLookupStart":728.2999999523163,"fetchStart":728.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":728.2999999523163,"responseEnd":784.6999999284744,"responseStart":784.6999999284744,"secureConnectionStart":728.2999999523163}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":91,"responseStart":285,"responseEnd":327,"domLoading":288,"domInteractive":1206,"domContentLoadedEventStart":1206,"domContentLoadedEventEnd":1259,"domComplete":1661,"loadEventStart":1661,"loadEventEnd":1662,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1180.5},{"name":"bigPipe.sidebar-id.end","time":1181.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":1181.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1184.5},{"name":"activityTabFullyLoaded","time":1276.3999999761581}],"measures":[],"correlationId":"ba6079dd26a93b","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":122,"dbReadsTimeInMs":24,"dbConnsTimeInMs":33,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}