The following script shows how to reproduce the issue:
create table t (i int primary key auto_increment, j int);
|
|
-- These work
|
insert into t (j) values (1) returning *;
|
insert into t (j) values (1) returning t.i, t.j;
|
|
-- This doesn't work
|
insert into t (j) values (1) returning t.*;
|
The last statement produces the following error message:
SQL-Fehler [1051] [42S02]: (conn:5) Unknown table 'test.t'
|
I don't see a reason from the documentation why this syntax wouldn't be allowed, given that:
1. Unqualified asterisks are possible as per the first statement
2. Qualified column references are possible as per the second statement
3. The manual refers to select_expr being expected, without any further restrictions: https://mariadb.com/kb/en/insertreturning/
{"report":{"fcp":1186,"ttfb":253.09999990463257,"pageVisibility":"visible","entityId":89550,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"b683ed21-c396-45ab-9c8d-78a64e742585","navigationType":0,"readyForUser":1248.3000001907349,"redirectCount":0,"resourceLoadedEnd":1733.5999999046326,"resourceLoadedStart":265.90000009536743,"resourceTiming":[{"duration":31.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":265.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":265.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":297,"responseStart":0,"secureConnectionStart":0},{"duration":31.40000009536743,"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":266.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":266.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":297.7000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":91.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":266.40000009536743,"connectEnd":266.40000009536743,"connectStart":266.40000009536743,"domainLookupEnd":266.40000009536743,"domainLookupStart":266.40000009536743,"fetchStart":266.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":266.40000009536743,"responseEnd":357.5,"responseStart":357.5,"secureConnectionStart":266.40000009536743},{"duration":561.6000003814697,"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":266.59999990463257,"connectEnd":266.59999990463257,"connectStart":266.59999990463257,"domainLookupEnd":266.59999990463257,"domainLookupStart":266.59999990463257,"fetchStart":266.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":266.59999990463257,"responseEnd":828.2000002861023,"responseStart":828.2000002861023,"secureConnectionStart":266.59999990463257},{"duration":565.4000000953674,"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":266.90000009536743,"connectEnd":266.90000009536743,"connectStart":266.90000009536743,"domainLookupEnd":266.90000009536743,"domainLookupStart":266.90000009536743,"fetchStart":266.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":266.90000009536743,"responseEnd":832.3000001907349,"responseStart":832.3000001907349,"secureConnectionStart":266.90000009536743},{"duration":565.7000002861023,"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":267.09999990463257,"connectEnd":267.09999990463257,"connectStart":267.09999990463257,"domainLookupEnd":267.09999990463257,"domainLookupStart":267.09999990463257,"fetchStart":267.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":267.09999990463257,"responseEnd":832.8000001907349,"responseStart":832.8000001907349,"secureConnectionStart":267.09999990463257},{"duration":566.9000000953674,"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":267.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":267.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":834.2000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":565.9000000953674,"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":267.30000019073486,"connectEnd":267.30000019073486,"connectStart":267.30000019073486,"domainLookupEnd":267.30000019073486,"domainLookupStart":267.30000019073486,"fetchStart":267.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":267.30000019073486,"responseEnd":833.2000002861023,"responseStart":833.2000002861023,"secureConnectionStart":267.30000019073486},{"duration":566,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":267.59999990463257,"connectEnd":267.59999990463257,"connectStart":267.59999990463257,"domainLookupEnd":267.59999990463257,"domainLookupStart":267.59999990463257,"fetchStart":267.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":267.59999990463257,"responseEnd":833.5999999046326,"responseStart":833.5999999046326,"secureConnectionStart":267.59999990463257},{"duration":566.9000000953674,"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":267.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":267.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":834.7000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":566.8000001907349,"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":267.90000009536743,"connectEnd":267.90000009536743,"connectStart":267.90000009536743,"domainLookupEnd":267.90000009536743,"domainLookupStart":267.90000009536743,"fetchStart":267.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":267.90000009536743,"responseEnd":834.7000002861023,"responseStart":834.7000002861023,"secureConnectionStart":267.90000009536743},{"duration":1348.8999996185303,"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":268.7000002861023,"connectEnd":268.7000002861023,"connectStart":268.7000002861023,"domainLookupEnd":268.7000002861023,"domainLookupStart":268.7000002861023,"fetchStart":268.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":268.7000002861023,"responseEnd":1617.5999999046326,"responseStart":1617.5,"secureConnectionStart":268.7000002861023},{"duration":1349.4000000953674,"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":268.80000019073486,"connectEnd":268.80000019073486,"connectStart":268.80000019073486,"domainLookupEnd":268.80000019073486,"domainLookupStart":268.80000019073486,"fetchStart":268.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":268.80000019073486,"responseEnd":1618.2000002861023,"responseStart":1618.2000002861023,"secureConnectionStart":268.80000019073486},{"duration":1104.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":511.59999990463257,"connectEnd":511.59999990463257,"connectStart":511.59999990463257,"domainLookupEnd":511.59999990463257,"domainLookupStart":511.59999990463257,"fetchStart":511.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":511.59999990463257,"responseEnd":1616.0999999046326,"responseStart":1616.0999999046326,"secureConnectionStart":511.59999990463257},{"duration":564.5999999046326,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1162,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1162,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1726.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":105.7999997138977,"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":1627.8000001907349,"connectEnd":1627.8000001907349,"connectStart":1627.8000001907349,"domainLookupEnd":1627.8000001907349,"domainLookupStart":1627.8000001907349,"fetchStart":1627.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1627.8000001907349,"responseEnd":1733.5999999046326,"responseStart":1733.5999999046326,"secureConnectionStart":1627.8000001907349}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":93,"responseStart":253,"responseEnd":255,"domLoading":262,"domInteractive":1770,"domContentLoadedEventStart":1770,"domContentLoadedEventEnd":1876,"domComplete":2367,"loadEventStart":2367,"loadEventEnd":2369,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1713.3000001907349},{"name":"bigPipe.sidebar-id.end","time":1714.2000002861023},{"name":"bigPipe.activity-panel-pipe-id.start","time":1714.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1715.5},{"name":"activityTabFullyLoaded","time":1935}],"measures":[],"correlationId":"8be0c0a738acaf","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":103,"dbReadsTimeInMs":9,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
serg
patch:
https://github.com/MariaDB/server/commit/f51967872944d372c48fc795d1c3127c5f4d36f4