Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.5.4
-
None
-
Docker
Description
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/
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Fix Version/s | 10.5 [ 23123 ] | |
Assignee | Rucha Deodhar [ rucha174 ] | |
Priority | Minor [ 4 ] | Major [ 3 ] |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Status | Confirmed [ 10101 ] | In Progress [ 3 ] |
Assignee | Rucha Deodhar [ rucha174 ] | Sergei Golubchik [ serg ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Assignee | Sergei Golubchik [ serg ] | Rucha Deodhar [ rucha174 ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Assignee | Rucha Deodhar [ rucha174 ] | Sergei Golubchik [ serg ] |
Status | Stalled [ 10000 ] | In Review [ 10002 ] |
Assignee | Sergei Golubchik [ serg ] | Rucha Deodhar [ rucha174 ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Status | Stalled [ 10000 ] | In Progress [ 3 ] |
Assignee | Rucha Deodhar [ rucha174 ] | Sergei Golubchik [ serg ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Assignee | Sergei Golubchik [ serg ] | Rucha Deodhar [ rucha174 ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Assignee | Rucha Deodhar [ rucha174 ] | Sergei Golubchik [ serg ] |
Status | Stalled [ 10000 ] | In Review [ 10002 ] |
Assignee | Sergei Golubchik [ serg ] | Rucha Deodhar [ rucha174 ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Assignee | Rucha Deodhar [ rucha174 ] | Sergei Golubchik [ serg ] |
Status | Stalled [ 10000 ] | In Review [ 10002 ] |
Assignee | Sergei Golubchik [ serg ] | Rucha Deodhar [ rucha174 ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Fix Version/s | 10.5.12 [ 26025 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 111259 ] | MariaDB v4 [ 158093 ] |
Thanks for the report. I also see no reason why it shouldn't work.
It works in PostgreSQL.