diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2023-04-21 10:55:14 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2023-04-26 11:38:37 +0200 |
commit | 521cc7ad137333586620a3102d94072b4abe75f1 (patch) | |
tree | 356971cb48efa51db50711f642bcdc8794df4235 /sql/sql_lex.h | |
parent | 898320b5f8afd20ba07efa8ea193e18661f2a0a4 (diff) | |
download | mariadb-git-bb-10.6-MDEV-31073.tar.gz |
MDEV-31073 Server crash, assertion `table != 0 && view->field_translation != 0' failure with ROWNUM and viewbb-10.6-MDEV-31073
Now the same rule applied to vews and derived tables so we should
allow merge of views (and derived) in queries with rownum (because
it do not change results, only makes query plans better)
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r-- | sql/sql_lex.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h index 778c6105d6b..39c67ffa544 100644 --- a/sql/sql_lex.h +++ b/sql/sql_lex.h @@ -1384,6 +1384,7 @@ public: return (st_select_lex_unit*) slave; } st_select_lex* outer_select(); + bool is_query_topmost_select() { return !master || master->master == NULL; }; st_select_lex* next_select() { return (st_select_lex*) next; } st_select_lex* next_select_in_list() { |