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
56e6b531
Commit
56e6b531
authored
Feb 28, 2008
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.0-opt
into magare.gmz:/home/kgeorge/mysql/autopush/B34747-5.0-opt
parents
7ca90d53
f28612ea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
1 deletion
+33
-1
mysql-test/r/func_gconcat.result
mysql-test/r/func_gconcat.result
+15
-0
mysql-test/t/func_gconcat.test
mysql-test/t/func_gconcat.test
+17
-0
sql/item_sum.cc
sql/item_sum.cc
+1
-1
No files found.
mysql-test/r/func_gconcat.result
View file @
56e6b531
...
...
@@ -931,4 +931,19 @@ SELECT GROUP_CONCAT(DISTINCT b, a ORDER BY b) FROM t1;
GROUP_CONCAT(DISTINCT b, a ORDER BY b)
11,22,32
DROP TABLE t1, t2, t3;
CREATE TABLE t1(a INT);
INSERT INTO t1 VALUES (),();
SELECT s1.d1 FROM
(
SELECT
t1.a as d1,
GROUP_CONCAT(DISTINCT t1.a) AS d2
FROM
t1 AS t1,
t1 AS t2
GROUP BY 1
) AS s1;
d1
NULL
DROP TABLE t1;
End of 5.0 tests
mysql-test/t/func_gconcat.test
View file @
56e6b531
...
...
@@ -640,4 +640,21 @@ SELECT GROUP_CONCAT(DISTINCT b, a ORDER BY b) FROM t1;
DROP
TABLE
t1
,
t2
,
t3
;
#
# Bug #34747: crash in debug assertion check after derived table
#
CREATE
TABLE
t1
(
a
INT
);
INSERT
INTO
t1
VALUES
(),();
SELECT
s1
.
d1
FROM
(
SELECT
t1
.
a
as
d1
,
GROUP_CONCAT
(
DISTINCT
t1
.
a
)
AS
d2
FROM
t1
AS
t1
,
t1
AS
t2
GROUP
BY
1
)
AS
s1
;
DROP
TABLE
t1
;
--
echo
End
of
5.0
tests
sql/item_sum.cc
View file @
56e6b531
...
...
@@ -3460,6 +3460,6 @@ void Item_func_group_concat::print(String *str)
Item_func_group_concat
::~
Item_func_group_concat
()
{
if
(
unique_filter
)
if
(
!
original
&&
unique_filter
)
delete
unique_filter
;
}
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