From a8458a2345ea2497ada2f1bd01aeb9c34934dfc6 Mon Sep 17 00:00:00 2001 From: Oleksandr Byelkin Date: Wed, 8 Jul 2020 16:26:34 +0200 Subject: MDEV-21201 No records produced in information_schema query, depending on projection In case of NATURAL JOIN / USING 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. Which will be made later by Serg patch --- sql/table.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sql/table.h') diff --git a/sql/table.h b/sql/table.h index a5821a712c6..3d289bf241a 100644 --- a/sql/table.h +++ b/sql/table.h @@ -2183,6 +2183,7 @@ struct TABLE_LIST parsing 'this' is a NATURAL/USING join iff (natural_join != NULL). */ TABLE_LIST *natural_join; + 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 -- cgit v1.2.1