summaryrefslogtreecommitdiff
path: root/sql/table.h
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2020-07-08 16:26:34 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2020-07-08 16:26:34 +0200
commitf62b7b2a94d775c3fa52bf7c756eac29c016ad76 (patch)
tree10655531f8c2d3c22d9a1422b9f05ebe8055ef3c /sql/table.h
parentf3f23b5c4bdc669ad0af4a1c79bd70c40ed9c594 (diff)
downloadmariadb-git-bb-10.3-MDEV-21201.tar.gz
MDEV-21201 No records produced in information_schema query, depending on projectionbb-10.3-MDEV-21201
In case of USING check also join field list to mark fields as used. In case of NATURAL JOIN mark all field (one table can not be opened in any case so optimisation does not worth it). IMHO table should be checked for used fields and filled after prepare, when we will fave whole info about used fields but it is too big change for a bugfix.
Diffstat (limited to 'sql/table.h')
-rw-r--r--sql/table.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/table.h b/sql/table.h
index d289b6e0ab2..a0a535dbf31 100644
--- a/sql/table.h
+++ b/sql/table.h
@@ -2182,6 +2182,8 @@ struct TABLE_LIST
parsing 'this' is a NATURAL/USING join iff (natural_join != NULL).
*/
TABLE_LIST *natural_join;
+ List<String> *join_using;
+ bool part_of_natural_join;
/*
True if 'this' represents a nested join that is a NATURAL JOIN.
For one of the operands of 'this', the member 'natural_join' points