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
d3b2228f
Commit
d3b2228f
authored
Apr 20, 2019
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: cosmetic fixes
parent
6cc19078
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
9 deletions
+6
-9
mysql-test/r/func_gconcat.result
mysql-test/r/func_gconcat.result
+0
-1
mysql-test/t/func_gconcat.test
mysql-test/t/func_gconcat.test
+0
-3
mysys/tree.c
mysys/tree.c
+1
-1
sql/item_sum.h
sql/item_sum.h
+4
-4
sql/sql_class.h
sql/sql_class.h
+1
-0
No files found.
mysql-test/r/func_gconcat.result
View file @
d3b2228f
drop table if exists t1, t2;
create table t1 (grp int, a bigint unsigned, c char(10) not null, d char(10) not null);
insert into t1 values (1,1,"a","a");
insert into t1 values (2,2,"b","a");
...
...
mysql-test/t/func_gconcat.test
View file @
d3b2228f
#
# simple test of group_concat function
#
--
disable_warnings
drop
table
if
exists
t1
,
t2
;
--
enable_warnings
create
table
t1
(
grp
int
,
a
bigint
unsigned
,
c
char
(
10
)
not
null
,
d
char
(
10
)
not
null
);
insert
into
t1
values
(
1
,
1
,
"a"
,
"a"
);
...
...
mysys/tree.c
View file @
d3b2228f
...
...
@@ -224,7 +224,7 @@ TREE_ELEMENT *tree_insert(TREE *tree, void *key, uint key_size,
{
uint
alloc_size
;
if
(
tree
->
flag
&
TREE_ONLY_DUPS
)
return
((
TREE_ELEMENT
*
)
1
)
;
return
TREE_ELEMENT_UNIQUE
;
alloc_size
=
sizeof
(
TREE_ELEMENT
)
+
key_size
+
tree
->
size_of_element
;
tree
->
allocated
+=
alloc_size
;
...
...
sql/item_sum.h
View file @
d3b2228f
...
...
@@ -1479,8 +1479,8 @@ class Item_func_group_concat : public Item_sum
enum
Sumfunctype
sum_func
()
const
{
return
GROUP_CONCAT_FUNC
;}
const
char
*
func_name
()
const
{
return
"group_concat"
;
}
virtual
Item_result
result_type
()
const
{
return
STRING_RESULT
;
}
virtual
Field
*
make_string_field
(
TABLE
*
table
);
Item_result
result_type
()
const
{
return
STRING_RESULT
;
}
Field
*
make_string_field
(
TABLE
*
table
);
enum_field_types
field_type
()
const
{
if
(
too_big_for_varchar
())
...
...
@@ -1522,8 +1522,8 @@ class Item_func_group_concat : public Item_sum
String
*
val_str
(
String
*
str
);
Item
*
copy_or_same
(
THD
*
thd
);
void
no_rows_in_result
()
{}
v
irtual
v
oid
print
(
String
*
str
,
enum_query_type
query_type
);
virtual
bool
change_context_processor
(
uchar
*
cntx
)
void
print
(
String
*
str
,
enum_query_type
query_type
);
bool
change_context_processor
(
uchar
*
cntx
)
{
context
=
(
Name_resolution_context
*
)
cntx
;
return
FALSE
;
}
};
...
...
sql/sql_class.h
View file @
d3b2228f
...
...
@@ -36,6 +36,7 @@
#include "violite.h"
/* vio_is_connected */
#include "thr_lock.h"
/* thr_lock_type, THR_LOCK_DATA, THR_LOCK_INFO */
#include "thr_timer.h"
#include <my_tree.h>
#include "sql_digest_stream.h" // sql_digest_state
...
...
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