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
9b58d7b1
Commit
9b58d7b1
authored
Feb 28, 2008
by
gkodinov/kgeorge@magare.gmz
Browse files
Options
Browse Files
Download
Plain Diff
Merge magare.gmz:/home/kgeorge/mysql/work/B34747-5.0-opt
into magare.gmz:/home/kgeorge/mysql/work/B34747-5.1-opt
parents
314b2377
0443189d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
79 additions
and
1 deletion
+79
-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
mysql-test/t/subselect.test
mysql-test/t/subselect.test
+46
-0
sql/item_sum.cc
sql/item_sum.cc
+1
-1
No files found.
mysql-test/r/func_gconcat.result
View file @
9b58d7b1
...
@@ -937,4 +937,19 @@ SELECT GROUP_CONCAT(DISTINCT b, a ORDER BY b) FROM t1;
...
@@ -937,4 +937,19 @@ SELECT GROUP_CONCAT(DISTINCT b, a ORDER BY b) FROM t1;
GROUP_CONCAT(DISTINCT b, a ORDER BY b)
GROUP_CONCAT(DISTINCT b, a ORDER BY b)
11,22,32
11,22,32
DROP TABLE t1, t2, t3;
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
End of 5.0 tests
mysql-test/t/func_gconcat.test
View file @
9b58d7b1
...
@@ -640,4 +640,21 @@ SELECT GROUP_CONCAT(DISTINCT b, a ORDER BY b) FROM t1;
...
@@ -640,4 +640,21 @@ SELECT GROUP_CONCAT(DISTINCT b, a ORDER BY b) FROM t1;
DROP
TABLE
t1
,
t2
,
t3
;
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
--
echo
End
of
5.0
tests
mysql-test/t/subselect.test
View file @
9b58d7b1
...
@@ -3015,6 +3015,52 @@ INSERT INTO t2 VALUES (103, 203);
...
@@ -3015,6 +3015,52 @@ INSERT INTO t2 VALUES (103, 203);
SELECT
((
a1
,
a2
)
IN
(
SELECT
*
FROM
t2
WHERE
b2
>
0
))
IS
NULL
FROM
t1
;
SELECT
((
a1
,
a2
)
IN
(
SELECT
*
FROM
t2
WHERE
b2
>
0
))
IS
NULL
FROM
t1
;
DROP
TABLE
t1
,
t2
;
DROP
TABLE
t1
,
t2
;
#
# Bug31048: Many nested subqueries may cause server crash.
#
create
table
t1
(
a
int
,
b
int
,
key
(
a
),
key
(
b
));
insert
into
t1
(
a
,
b
)
values
(
1
,
2
),(
2
,
1
),(
2
,
3
),(
3
,
4
),(
5
,
4
),(
5
,
5
),
(
6
,
7
),(
7
,
4
),(
5
,
3
);
let
$nesting
=
26
;
let
$should_work_nesting
=
5
;
let
$start
=
select
sum
(
a
),
a
from
t1
where
a
>
(
select
sum
(
a
)
from
t1
;
let
$end
=
)
group
by
a
;
let
$start_app
=
where
a
>
(
select
sum
(
a
)
from
t1
;
let
$end_pre
=
)
group
by
b
limit
1
;
--
disable_result_log
--
disable_query_log
# At least 4 level nesting should work without errors
while
(
$should_work_nesting
)
{
--
echo
$should_work_nesting
eval
$start
$end
;
eval
explain
$start
$end
;
let
$start
=
$start
$start_app
;
let
$end
=
$end_pre
$end
;
dec
$should_work_nesting
;
}
# Other may fail with the 'stack overrun error'
while
(
$nesting
)
{
--
echo
$nesting
--
error
0
,
1436
eval
$start
$end
;
--
error
0
,
1436
eval
explain
$start
$end
;
let
$start
=
$start
$start_app
;
let
$end
=
$end_pre
$end
;
dec
$nesting
;
}
--
enable_result_log
--
enable_query_log
drop
table
t1
;
#
#
# Bug #28076: inconsistent binary/varbinary comparison
# Bug #28076: inconsistent binary/varbinary comparison
#
#
...
...
sql/item_sum.cc
View file @
9b58d7b1
...
@@ -3494,6 +3494,6 @@ void Item_func_group_concat::print(String *str)
...
@@ -3494,6 +3494,6 @@ void Item_func_group_concat::print(String *str)
Item_func_group_concat
::~
Item_func_group_concat
()
Item_func_group_concat
::~
Item_func_group_concat
()
{
{
if
(
unique_filter
)
if
(
!
original
&&
unique_filter
)
delete
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