diff options
author | Igor Babaev <igor@askmonty.org> | 2016-02-17 14:30:25 -0800 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2016-02-17 14:30:25 -0800 |
commit | f340aaeb52916d028a41ed771dfbbdd9dc4c3f88 (patch) | |
tree | b21ddfef1213a345019fa1835844ae44be420bc5 /sql/sql_cte.h | |
parent | 22f52f1f09b62534eea139a678c954507bb3e89e (diff) | |
download | mariadb-git-f340aaeb52916d028a41ed771dfbbdd9dc4c3f88.tar.gz |
Addressed the issues raised in the review for the main patchbb-10.2-mdev8789
of mdev-8789.
Fixed a bug in TABLE_LIST::print.
Fixed another bug for the case when the definition of a
WITH table contained column list while the join in the main
query used two instances of this table.
Diffstat (limited to 'sql/sql_cte.h')
-rw-r--r-- | sql/sql_cte.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sql/sql_cte.h b/sql/sql_cte.h index 1d572376f46..0cbc9247af9 100644 --- a/sql/sql_cte.h +++ b/sql/sql_cte.h @@ -58,8 +58,6 @@ public: List <LEX_STRING> column_list; /* The query that specifies the table introduced by this with element */ st_select_lex_unit *spec; - /* Set to true after column list has been processed in semantic analysis */ - bool column_list_is_processed; /* Set to true is recursion is used (directly or indirectly) for the definition of this element @@ -71,7 +69,7 @@ public: st_select_lex_unit *unit) : next_elem(NULL), dependency_map(0), references(0), query_name(name), column_list(list), spec(unit), - column_list_is_processed(false), is_recursive(false) {} + is_recursive(false) {} void check_dependencies_in_unit(st_select_lex_unit *unit); @@ -85,12 +83,12 @@ public: st_select_lex_unit *clone_parsed_spec(THD *thd, TABLE_LIST *with_table); - bool process_column_list(THD *thd); - bool is_referenced() { return references != 0; } void inc_references() { references++; } + bool rename_columns_of_derived_unit(THD *thd, st_select_lex_unit *unit); + bool prepare_unreferenced(THD *thd); void print(String *str, enum_query_type query_type); |