summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2021-06-02 23:10:21 +0200
committerSergei Golubchik <serg@mariadb.org>2021-06-02 23:10:42 +0200
commit5c896472b6cb315fc54091a342ec37a7c4b5421d (patch)
tree9767f0165dba8c85b43f393f08e32ef9e647153f /sql/item.h
parent2e7891080667c59ac80f788eef4d59d447595772 (diff)
downloadmariadb-git-5c896472b6cb315fc54091a342ec37a7c4b5421d.tar.gz
MDEV-25672 table alias from previous statement interferes later commands
only perform the "correct table name" check for *new* generated columns, but not for already existing ones - they're guaranteed to be valid
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item.h b/sql/item.h
index 76be66d2a7c..cc1914a7ad4 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -2841,7 +2841,7 @@ public:
bool check_table_name_processor(void *arg)
{
Check_table_name_prm &p= *(Check_table_name_prm *) arg;
- if (p.table_name.length && table_name)
+ if (!field && p.table_name.length && table_name)
{
DBUG_ASSERT(p.db.length);
if ((db_name &&