mirror of
https://github.com/MariaDB/server.git
synced 2026-05-02 13:15:32 +02:00
Merge branch '10.2-release' into 10.3-release
This commit is contained in:
commit
1135244a64
1 changed files with 5 additions and 1 deletions
|
|
@ -3887,11 +3887,15 @@ int copy_to_tree(void* key, element_count count __attribute__((unused)),
|
|||
bool Item_func_group_concat::repack_tree(THD *thd)
|
||||
{
|
||||
struct st_repack_tree st;
|
||||
int size= tree->size_of_element;
|
||||
if (!tree->offset_to_key)
|
||||
size-= sizeof(void*);
|
||||
|
||||
init_tree(&st.tree, (size_t) MY_MIN(thd->variables.max_heap_table_size,
|
||||
thd->variables.sortbuff_size/16), 0,
|
||||
tree->size_of_element, group_concat_key_cmp_with_order, NULL,
|
||||
size, group_concat_key_cmp_with_order, NULL,
|
||||
(void*) this, MYF(MY_THREAD_SPECIFIC));
|
||||
DBUG_ASSERT(tree->size_of_element == st.tree.size_of_element);
|
||||
st.table= table;
|
||||
st.len= 0;
|
||||
st.maxlen= (size_t)thd->variables.group_concat_max_len;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue