diff options
author | Michael Widenius <monty@mariadb.org> | 2023-02-20 12:28:44 +0200 |
---|---|---|
committer | Michael Widenius <monty@mariadb.org> | 2023-02-21 09:18:35 +0200 |
commit | e91b56c059b5fce9487ebc3b302774db1ab13a3b (patch) | |
tree | 8b5b9bbb63ee15a720056b68388e4fac9775d0f6 /sql/sql_expression_cache.cc | |
parent | 24c4877e3948e1de799fe037ba6318f6a8c42d85 (diff) | |
download | mariadb-git-bb-11.0.tar.gz |
squash! 4cb69791aaa59e786859405c3c3826a6a15c4a09bb-11.0
- Ensure that TEMP_TABLE_PARAM.func_count includes all items that may
need a copy function.
- Fixed that Aria allocates enough space for key copies.
- Fixed that Aria does not check empty_bits if not allocated.
The first issue could cause crashes, the other issues should not
affect anything.
Diffstat (limited to 'sql/sql_expression_cache.cc')
-rw-r--r-- | sql/sql_expression_cache.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_expression_cache.cc b/sql/sql_expression_cache.cc index bc44ecd79fa..69d85f3343d 100644 --- a/sql/sql_expression_cache.cc +++ b/sql/sql_expression_cache.cc @@ -114,7 +114,7 @@ void Expression_cache_tmptable::init() cache_table_param.init(); /* dependent items and result */ - cache_table_param.field_count= items.elements; + cache_table_param.field_count= cache_table_param.func_count= items.elements; /* postpone table creation to index description */ cache_table_param.skip_create_table= 1; |