Additionally, starting from 10.2, the following statement erroneously returns the error:
EXECUTE IMMEDIATE 'INSERT INTO t1 (b) VALUES(?)' USING DEFAULT;
ERROR 1906 (HY000): The value specified for generated column 'b' in table 't1' has been ignored
but if I use DEFAULT directly (instead of a binding it):
INSERTINTO t1 (b) VALUES(DEFAULT);
it works without errors.
The variant which binds DEFAULT as a parameter should also work without errors.
Alexander Barkov
added a comment - - edited Additionally, starting from 10.2, the following statement erroneously returns the error:
EXECUTE IMMEDIATE 'INSERT INTO t1 (b) VALUES(?)' USING DEFAULT ;
ERROR 1906 (HY000): The value specified for generated column 'b' in table 't1' has been ignored
but if I use DEFAULT directly (instead of a binding it):
INSERT INTO t1 (b) VALUES ( DEFAULT );
it works without errors.
The variant which binds DEFAULT as a parameter should also work without errors.
People
Alexander Barkov
Alexander Barkov
Votes:
0Vote for this issue
Watchers:
2Start 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.4000005722046,"ttfb":264.30000019073486,"pageVisibility":"visible","entityId":87016,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"922fb98c-36f1-41e1-9f56-8f4d4697a7b3","navigationType":0,"readyForUser":959.9000005722046,"redirectCount":0,"resourceLoadedEnd":639.4000005722046,"resourceLoadedStart":272.4000005722046,"resourceTiming":[{"duration":9.299999237060547,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":272.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":272.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":281.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":12.199999809265137,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":272.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":272.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":284.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":163.10000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":272.69999980926514,"connectEnd":284.80000019073486,"connectStart":284.80000019073486,"domainLookupEnd":284.80000019073486,"domainLookupStart":284.80000019073486,"fetchStart":272.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":285.5,"responseEnd":435.80000019073486,"responseStart":300.1000003814697,"secureConnectionStart":284.80000019073486},{"duration":308.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":273,"connectEnd":273,"connectStart":273,"domainLookupEnd":273,"domainLookupStart":273,"fetchStart":273,"redirectEnd":0,"redirectStart":0,"requestStart":286,"responseEnd":581.8000001907349,"responseStart":311.30000019073486,"secureConnectionStart":273},{"duration":34.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":273.1000003814697,"connectEnd":273.1000003814697,"connectStart":273.1000003814697,"domainLookupEnd":273.1000003814697,"domainLookupStart":273.1000003814697,"fetchStart":273.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":286.19999980926514,"responseEnd":307.4000005722046,"responseStart":305.5,"secureConnectionStart":273.1000003814697},{"duration":42.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":273.30000019073486,"connectEnd":273.30000019073486,"connectStart":273.30000019073486,"domainLookupEnd":273.30000019073486,"domainLookupStart":273.30000019073486,"fetchStart":273.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":286.80000019073486,"responseEnd":316.1000003814697,"responseStart":308.9000005722046,"secureConnectionStart":273.30000019073486},{"duration":41.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":273.5,"connectEnd":273.5,"connectStart":273.5,"domainLookupEnd":273.5,"domainLookupStart":273.5,"fetchStart":273.5,"redirectEnd":0,"redirectStart":0,"requestStart":288.1000003814697,"responseEnd":315.19999980926514,"responseStart":307.6000003814697,"secureConnectionStart":273.5},{"duration":13.300000190734863,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":273.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":273.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":287,"responseStart":0,"secureConnectionStart":0},{"duration":43.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":273.9000005722046,"connectEnd":273.9000005722046,"connectStart":273.9000005722046,"domainLookupEnd":273.9000005722046,"domainLookupStart":273.9000005722046,"fetchStart":273.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":290,"responseEnd":317.1000003814697,"responseStart":310.30000019073486,"secureConnectionStart":273.9000005722046},{"duration":14.399999618530273,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":274.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":274.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":288.5,"responseStart":0,"secureConnectionStart":0},{"duration":47.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":274.30000019073486,"connectEnd":274.30000019073486,"connectStart":274.30000019073486,"domainLookupEnd":274.30000019073486,"domainLookupStart":274.30000019073486,"fetchStart":274.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":291.5,"responseEnd":322,"responseStart":318,"secureConnectionStart":274.30000019073486},{"duration":360.70000076293945,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":278.69999980926514,"connectEnd":278.69999980926514,"connectStart":278.69999980926514,"domainLookupEnd":278.69999980926514,"domainLookupStart":278.69999980926514,"fetchStart":278.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":314.69999980926514,"responseEnd":639.4000005722046,"responseStart":634.3000001907349,"secureConnectionStart":278.69999980926514},{"duration":358.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":280.19999980926514,"connectEnd":280.19999980926514,"connectStart":280.19999980926514,"domainLookupEnd":280.19999980926514,"domainLookupStart":280.19999980926514,"fetchStart":280.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":328.80000019073486,"responseEnd":638.5,"responseStart":628.8000001907349,"secureConnectionStart":280.19999980926514},{"duration":85.30000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":581,"connectEnd":581,"connectStart":581,"domainLookupEnd":581,"domainLookupStart":581,"fetchStart":581,"redirectEnd":0,"redirectStart":0,"requestStart":620.5,"responseEnd":666.3000001907349,"responseStart":665.3000001907349,"secureConnectionStart":581},{"duration":212,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":799.1000003814697,"connectEnd":799.1000003814697,"connectStart":799.1000003814697,"domainLookupEnd":799.1000003814697,"domainLookupStart":799.1000003814697,"fetchStart":799.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":956.8000001907349,"responseEnd":1011.1000003814697,"responseStart":1010.5,"secureConnectionStart":799.1000003814697}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":72,"responseStart":264,"responseEnd":280,"domLoading":268,"domInteractive":1012,"domContentLoadedEventStart":1012,"domContentLoadedEventEnd":1053,"domComplete":1341,"loadEventStart":1341,"loadEventEnd":1341,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":996.1000003814697},{"name":"bigPipe.sidebar-id.end","time":996.9000005722046},{"name":"bigPipe.activity-panel-pipe-id.start","time":997},{"name":"bigPipe.activity-panel-pipe-id.end","time":998.1000003814697},{"name":"activityTabFullyLoaded","time":1071.1000003814697}],"measures":[],"correlationId":"c4f4a948ed7b9","effectiveType":"4g","downlink":9.4,"rtt":0,"serverDuration":110,"dbReadsTimeInMs":21,"dbConnsTimeInMs":28,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Additionally, starting from 10.2, the following statement erroneously returns the error:
ERROR 1906 (HY000): The value specified for generated column 'b' in table 't1' has been ignored
but if I use DEFAULT directly (instead of a binding it):
it works without errors.
The variant which binds DEFAULT as a parameter should also work without errors.