Skip to content

Commit d3b2228

Browse files
committed
cleanup: cosmetic fixes
1 parent 6cc1907 commit d3b2228

File tree

5 files changed

+6
-9
lines changed

5 files changed

+6
-9
lines changed

mysql-test/r/func_gconcat.result

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
drop table if exists t1, t2;
21
create table t1 (grp int, a bigint unsigned, c char(10) not null, d char(10) not null);
32
insert into t1 values (1,1,"a","a");
43
insert into t1 values (2,2,"b","a");

mysql-test/t/func_gconcat.test

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#
22
# simple test of group_concat function
33
#
4-
--disable_warnings
5-
drop table if exists t1, t2;
6-
--enable_warnings
74

85
create table t1 (grp int, a bigint unsigned, c char(10) not null, d char(10) not null);
96
insert into t1 values (1,1,"a","a");

mysys/tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ TREE_ELEMENT *tree_insert(TREE *tree, void *key, uint key_size,
224224
{
225225
uint alloc_size;
226226
if (tree->flag & TREE_ONLY_DUPS)
227-
return((TREE_ELEMENT *) 1);
227+
return TREE_ELEMENT_UNIQUE;
228228
alloc_size=sizeof(TREE_ELEMENT)+key_size+tree->size_of_element;
229229
tree->allocated+=alloc_size;
230230

sql/item_sum.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,8 +1479,8 @@ class Item_func_group_concat : public Item_sum
14791479

14801480
enum Sumfunctype sum_func () const {return GROUP_CONCAT_FUNC;}
14811481
const char *func_name() const { return "group_concat"; }
1482-
virtual Item_result result_type () const { return STRING_RESULT; }
1483-
virtual Field *make_string_field(TABLE *table);
1482+
Item_result result_type () const { return STRING_RESULT; }
1483+
Field *make_string_field(TABLE *table);
14841484
enum_field_types field_type() const
14851485
{
14861486
if (too_big_for_varchar())
@@ -1522,8 +1522,8 @@ class Item_func_group_concat : public Item_sum
15221522
String* val_str(String* str);
15231523
Item *copy_or_same(THD* thd);
15241524
void no_rows_in_result() {}
1525-
virtual void print(String *str, enum_query_type query_type);
1526-
virtual bool change_context_processor(uchar *cntx)
1525+
void print(String *str, enum_query_type query_type);
1526+
bool change_context_processor(uchar *cntx)
15271527
{ context= (Name_resolution_context *)cntx; return FALSE; }
15281528
};
15291529

sql/sql_class.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include "violite.h" /* vio_is_connected */
3737
#include "thr_lock.h" /* thr_lock_type, THR_LOCK_DATA, THR_LOCK_INFO */
3838
#include "thr_timer.h"
39+
#include <my_tree.h>
3940

4041
#include "sql_digest_stream.h" // sql_digest_state
4142

0 commit comments

Comments
 (0)