diff options
| author | Rucha Deodhar <rucha.deodhar@mariadb.com> | 2020-08-06 17:23:49 +0530 |
|---|---|---|
| committer | Rucha Deodhar <rucha.deodhar@mariadb.com> | 2020-10-23 12:57:02 +0530 |
| commit | 6d881a271a977fe60c9c731ab19c6dd001cb69e2 (patch) | |
| tree | 212eed9218a664850b21a6f7049f904cf7c50c73 /sql/message.mc | |
| parent | bbd70fcc43cc889e4593594ee5ca436fe1433aac (diff) | |
| download | mariadb-git-bb-10.5-MDEV-23178.tar.gz | |
MDEV-23178: Qualified asterisk not supported in INSERT .. RETURNINGbb-10.5-MDEV-23178
Anaylsis: When we have INSERT/REPLACE...RETURNING and have qualified asterisk,
table_name is not NULL and context->table_list is either NULL or has
incorrect reference because context->table_list has tables from the FROM clause.
context->table_list has incorrect reference (has table from the FROM clause
instead of table we are inserting into) for INSERT/REPLACE...SELECT...RETURNING
because we have a FROM clause from the SELECT statement.
For INSERT/REPLACE...RETURNING it is NULL because there is no FROM clause.
Fix: If table_name is not null, check if we have INSERT/REPLACE...RETURNING.
If so, the reference should be the table we are inserting into and not
the table in the FROM clause.
Diffstat (limited to 'sql/message.mc')
0 files changed, 0 insertions, 0 deletions
