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
f282ce6f
Commit
f282ce6f
authored
Dec 14, 2007
by
mhansson/martin@linux-st28.site
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#32798: DISTINCT in GROUP_CONCAT clause fails when ordering by
a column with null values Post-merge fix
parent
8e8ba8e8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
sql/item_sum.cc
sql/item_sum.cc
+1
-1
No files found.
sql/item_sum.cc
View file @
f282ce6f
...
@@ -2931,7 +2931,7 @@ int group_concat_key_cmp_with_order(void* arg, const void* key1,
...
@@ -2931,7 +2931,7 @@ int group_concat_key_cmp_with_order(void* arg, const void* key1,
int
res
;
int
res
;
uint
offset
=
(
field
->
offset
(
field
->
table
->
record
[
0
])
-
uint
offset
=
(
field
->
offset
(
field
->
table
->
record
[
0
])
-
table
->
s
->
null_bytes
);
table
->
s
->
null_bytes
);
if
((
res
=
field
->
cmp
(
key1
+
offset
,
key2
+
offset
)))
if
((
res
=
field
->
cmp
(
(
uchar
*
)
key1
+
offset
,
(
uchar
*
)
key2
+
offset
)))
return
(
*
order_item
)
->
asc
?
res
:
-
res
;
return
(
*
order_item
)
->
asc
?
res
:
-
res
;
}
}
}
}
...
...
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