Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
fe5a7354
Commit
fe5a7354
authored
Jul 16, 2003
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed memory leak
parent
35ab257c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
sql/item_sum.cc
sql/item_sum.cc
+5
-0
sql/item_sum.h
sql/item_sum.h
+2
-2
No files found.
sql/item_sum.cc
View file @
fe5a7354
...
...
@@ -1232,6 +1232,8 @@ bool Item_sum_count_distinct::setup(THD *thd)
}
}
if
(
use_tree
)
delete_tree
(
tree
);
init_tree
(
tree
,
min
(
thd
->
variables
.
max_heap_table_size
,
thd
->
variables
.
sortbuff_size
/
16
),
0
,
key_length
,
compare_key
,
0
,
NULL
,
cmp_arg
);
...
...
@@ -1850,6 +1852,9 @@ bool Item_func_group_concat::setup(THD *thd)
}
rec_offset
=
table
->
reclength
-
key_length
;
if
(
tree_mode
)
delete_tree
(
tree
);
/*
choise function of sort
*/
...
...
sql/item_sum.h
View file @
fe5a7354
...
...
@@ -691,7 +691,7 @@ class Item_func_group_concat : public Item_sum
warning_available
(
item
.
warning_available
),
key_length
(
item
.
key_length
),
rec_offset
(
item
.
rec_offset
),
tree_mode
(
0
),
tree_mode
(
item
.
tree_mode
),
distinct
(
item
.
distinct
),
warning_for_row
(
item
.
warning_for_row
),
separator
(
item
.
separator
),
...
...
@@ -707,7 +707,7 @@ class Item_func_group_concat : public Item_sum
count_cut_values
(
item
.
count_cut_values
),
original
(
&
item
)
{
quick_group
=
0
;
quick_group
=
item
.
quick_group
;
};
~
Item_func_group_concat
();
enum
Sumfunctype
sum_func
()
const
{
return
GROUP_CONCAT_FUNC
;}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment