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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
021f8d21
Commit
021f8d21
authored
Mar 15, 2005
by
konstantin@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup
parent
37905eea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
mysql-test/t/count_distinct2.test
mysql-test/t/count_distinct2.test
+1
-1
sql/item_sum.cc
sql/item_sum.cc
+4
-4
No files found.
mysql-test/t/count_distinct2.test
View file @
021f8d21
...
...
@@ -64,7 +64,7 @@ select count(distinct n) from t1;
show
status
like
'Created_tmp_disk_tables'
;
drop
table
t1
;
#
test conversion from heap to MyISAM
#
Test use of MyISAM tmp tables
create
table
t1
(
s
text
);
let
$
1
=
5000
;
disable_query_log
;
...
...
sql/item_sum.cc
View file @
021f8d21
...
...
@@ -2228,14 +2228,14 @@ bool Item_sum_count_distinct::setup(THD *thd)
return
FALSE
;
if
(
!
(
tmp_table_param
=
new
TMP_TABLE_PARAM
))
return
1
;
return
TRUE
;
/* Create a table with an unique key over all parameters */
for
(
uint
i
=
0
;
i
<
arg_count
;
i
++
)
{
Item
*
item
=
args
[
i
];
if
(
list
.
push_back
(
item
))
return
1
;
// End of memory
return
TRUE
;
// End of memory
if
(
item
->
const_item
())
{
(
void
)
item
->
val_int
();
...
...
@@ -2244,14 +2244,14 @@ bool Item_sum_count_distinct::setup(THD *thd)
}
}
if
(
always_null
)
return
0
;
return
FALSE
;
count_field_types
(
tmp_table_param
,
list
,
0
);
DBUG_ASSERT
(
table
==
0
);
if
(
!
(
table
=
create_tmp_table
(
thd
,
tmp_table_param
,
list
,
(
ORDER
*
)
0
,
1
,
0
,
select_lex
->
options
|
thd
->
options
,
HA_POS_ERROR
,
(
char
*
)
""
)))
return
1
;
return
TRUE
;
table
->
file
->
extra
(
HA_EXTRA_NO_ROWS
);
// Don't update rows
table
->
no_rows
=
1
;
...
...
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