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
52318729
Commit
52318729
authored
Aug 29, 2003
by
wax@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/wax/mysql/mysql-4.1
into mysql.com:/home/wax/mysql/mysql-4.1mm
parents
7a56d62d
a39f98d6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
sql/item_sum.cc
sql/item_sum.cc
+4
-4
sql/item_sum.h
sql/item_sum.h
+1
-0
No files found.
sql/item_sum.cc
View file @
52318729
...
@@ -1460,7 +1460,7 @@ int group_concat_key_cmp_with_distinct(void* arg, byte* key1,
...
@@ -1460,7 +1460,7 @@ int group_concat_key_cmp_with_distinct(void* arg, byte* key1,
for
(
uint
i
=
0
;
i
<
item
->
arg_count_field
;
i
++
)
for
(
uint
i
=
0
;
i
<
item
->
arg_count_field
;
i
++
)
{
{
Item
*
field_item
=
item
->
args
[
i
];
Item
*
field_item
=
item
->
args
[
i
];
Field
*
field
=
field_item
->
tmp_table_field
();
Field
*
field
=
field_item
->
real_item
()
->
tmp_table_field
();
if
(
field
)
if
(
field
)
{
{
uint
offset
=
field
->
abs_offset
;
uint
offset
=
field
->
abs_offset
;
...
@@ -1491,7 +1491,7 @@ int group_concat_key_cmp_with_order(void* arg, byte* key1, byte* key2)
...
@@ -1491,7 +1491,7 @@ int group_concat_key_cmp_with_order(void* arg, byte* key1, byte* key2)
{
{
ORDER
*
order_item
=
item
->
order
[
i
];
ORDER
*
order_item
=
item
->
order
[
i
];
Item
*
item
=
*
order_item
->
item
;
Item
*
item
=
*
order_item
->
item
;
Field
*
field
=
item
->
tmp_table_field
();
Field
*
field
=
item
->
real_item
()
->
tmp_table_field
();
if
(
field
)
if
(
field
)
{
{
uint
offset
=
field
->
abs_offset
;
uint
offset
=
field
->
abs_offset
;
...
@@ -1542,7 +1542,7 @@ int dump_leaf_key(byte* key, uint32 count __attribute__((unused)),
...
@@ -1542,7 +1542,7 @@ int dump_leaf_key(byte* key, uint32 count __attribute__((unused)),
Item
*
show_item
=
group_concat_item
->
args
[
i
];
Item
*
show_item
=
group_concat_item
->
args
[
i
];
if
(
!
show_item
->
const_item
())
if
(
!
show_item
->
const_item
())
{
{
Field
*
f
=
show_item
->
tmp_table_field
();
Field
*
f
=
show_item
->
real_item
()
->
tmp_table_field
();
char
*
sv
=
f
->
ptr
;
char
*
sv
=
f
->
ptr
;
f
->
ptr
=
(
char
*
)
key
+
f
->
abs_offset
;
f
->
ptr
=
(
char
*
)
key
+
f
->
abs_offset
;
String
*
res
=
f
->
val_str
(
&
tmp
,
&
tmp2
);
String
*
res
=
f
->
val_str
(
&
tmp
,
&
tmp2
);
...
@@ -1709,7 +1709,7 @@ bool Item_func_group_concat::add()
...
@@ -1709,7 +1709,7 @@ bool Item_func_group_concat::add()
Item
*
show_item
=
args
[
i
];
Item
*
show_item
=
args
[
i
];
if
(
!
show_item
->
const_item
())
if
(
!
show_item
->
const_item
())
{
{
Field
*
f
=
show_item
->
tmp_table_field
();
Field
*
f
=
show_item
->
real_item
()
->
tmp_table_field
();
if
(
!
f
->
is_null
())
if
(
!
f
->
is_null
())
{
{
record_is_null
=
FALSE
;
record_is_null
=
FALSE
;
...
...
sql/item_sum.h
View file @
52318729
...
@@ -733,4 +733,5 @@ class Item_func_group_concat : public Item_sum
...
@@ -733,4 +733,5 @@ class Item_func_group_concat : public Item_sum
}
}
String
*
val_str
(
String
*
str
);
String
*
val_str
(
String
*
str
);
Item
*
copy_or_same
(
THD
*
thd
);
Item
*
copy_or_same
(
THD
*
thd
);
void
no_rows_in_result
()
{}
};
};
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