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
8a3f87ab
Commit
8a3f87ab
authored
23 years ago
by
sasha@mysql.sashanet.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bug in count(distinct)
parent
072cca77
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
sql/item_sum.cc
sql/item_sum.cc
+6
-3
No files found.
sql/item_sum.cc
View file @
8a3f87ab
...
...
@@ -986,9 +986,12 @@ bool Item_sum_count_distinct::add()
{
// if the tree got too big, convert to MyISAM, otherwise
// insert into the tree
if
((
tree
.
elements_in_tree
>
max_elements_in_tree
&&
tree_to_myisam
())
||
!
tree_insert
(
&
tree
,
table
->
record
[
0
]
+
rec_offset
,
0
))
if
(
tree
.
elements_in_tree
>
max_elements_in_tree
)
{
if
(
tree_to_myisam
())
return
1
;
}
else
if
(
!
tree_insert
(
&
tree
,
table
->
record
[
0
]
+
rec_offset
,
0
))
return
1
;
}
else
if
((
error
=
table
->
file
->
write_row
(
table
->
record
[
0
])))
...
...
This diff is collapsed.
Click to expand it.
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