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
3f2f9c36
Commit
3f2f9c36
authored
Jan 26, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move innodb specific test from group_by.test to group_by_innodb.test
parent
0df3c203
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
53 deletions
+53
-53
mysql-test/r/group_by.result
mysql-test/r/group_by.result
+0
-26
mysql-test/r/group_by_innodb.result
mysql-test/r/group_by_innodb.result
+27
-1
mysql-test/t/group_by.test
mysql-test/t/group_by.test
+0
-25
mysql-test/t/group_by_innodb.test
mysql-test/t/group_by_innodb.test
+26
-1
No files found.
mysql-test/r/group_by.result
View file @
3f2f9c36
...
...
@@ -2473,29 +2473,3 @@ c 1c
v 2v,2v
NULL 1c,2v,2v
DROP TABLE t1,t2;
#
# Test of MDEV-4002
#
CREATE TABLE t1 (
pk INT NOT NULL PRIMARY KEY,
d1 DOUBLE,
d2 DOUBLE,
i INT NOT NULL DEFAULT '0',
KEY (i)
) ENGINE=InnoDB;
INSERT INTO t1 VALUES (1,1.0,1.1,1),(2,2.0,2.2,2);
PREPARE stmt FROM "
SELECT DISTINCT i, GROUP_CONCAT( d1, d2 ORDER BY d1, d2 )
FROM t1 a1 NATURAL JOIN t1 a2 GROUP BY i WITH ROLLUP
";
EXECUTE stmt;
i GROUP_CONCAT( d1, d2 ORDER BY d1, d2 )
1 11.1
2 22.2
NULL 11.1,22.2
EXECUTE stmt;
i GROUP_CONCAT( d1, d2 ORDER BY d1, d2 )
1 11.1
2 22.2
NULL 11.1,22.2
DROP TABLE t1;
mysql-test/r/group_by_innodb.result
View file @
3f2f9c36
...
...
@@ -29,5 +29,31 @@ SELECT COUNT(*), pk field1 FROM t1
WHERE a = 'r' OR pk = 183 GROUP BY field1, field1;
COUNT(*) field1
drop table t1;
End of 5.5 tests
set optimizer_switch=@save_ext_key_optimizer_switch;
#
# MDEV-4002 Server crash or valgrind errors in Item_func_group_concat::setup and Item_func_group_concat::add
#
CREATE TABLE t1 (
pk INT NOT NULL PRIMARY KEY,
d1 DOUBLE,
d2 DOUBLE,
i INT NOT NULL DEFAULT '0',
KEY (i)
) ENGINE=InnoDB;
INSERT INTO t1 VALUES (1,1.0,1.1,1),(2,2.0,2.2,2);
PREPARE stmt FROM "
SELECT DISTINCT i, GROUP_CONCAT( d1, d2 ORDER BY d1, d2 )
FROM t1 a1 NATURAL JOIN t1 a2 GROUP BY i WITH ROLLUP
";
EXECUTE stmt;
i GROUP_CONCAT( d1, d2 ORDER BY d1, d2 )
1 11.1
2 22.2
NULL 11.1,22.2
EXECUTE stmt;
i GROUP_CONCAT( d1, d2 ORDER BY d1, d2 )
1 11.1
2 22.2
NULL 11.1,22.2
DROP TABLE t1;
End of 5.5 tests
mysql-test/t/group_by.test
View file @
3f2f9c36
--
source
include
/
have_innodb
.
inc
# Initialise
--
disable_warnings
drop
table
if
exists
t1
,
t2
,
t3
;
...
...
@@ -1645,26 +1643,3 @@ FROM t1 JOIN t2 ON c = b GROUP BY b WITH ROLLUP;
DROP
TABLE
t1
,
t2
;
--
echo
#
--
echo
# Test of MDEV-4002
--
echo
#
CREATE
TABLE
t1
(
pk
INT
NOT
NULL
PRIMARY
KEY
,
d1
DOUBLE
,
d2
DOUBLE
,
i
INT
NOT
NULL
DEFAULT
'0'
,
KEY
(
i
)
)
ENGINE
=
InnoDB
;
INSERT
INTO
t1
VALUES
(
1
,
1.0
,
1.1
,
1
),(
2
,
2.0
,
2.2
,
2
);
PREPARE
stmt
FROM
"
SELECT DISTINCT i, GROUP_CONCAT( d1, d2 ORDER BY d1, d2 )
FROM t1 a1 NATURAL JOIN t1 a2 GROUP BY i WITH ROLLUP
"
;
EXECUTE
stmt
;
EXECUTE
stmt
;
DROP
TABLE
t1
;
mysql-test/t/group_by_innodb.test
View file @
3f2f9c36
...
...
@@ -39,6 +39,31 @@ WHERE a = 'r' OR pk = 183 GROUP BY field1, field1;
drop
table
t1
;
set
optimizer_switch
=@
save_ext_key_optimizer_switch
;
--
echo
#
--
echo
# MDEV-4002 Server crash or valgrind errors in Item_func_group_concat::setup and Item_func_group_concat::add
--
echo
#
CREATE
TABLE
t1
(
pk
INT
NOT
NULL
PRIMARY
KEY
,
d1
DOUBLE
,
d2
DOUBLE
,
i
INT
NOT
NULL
DEFAULT
'0'
,
KEY
(
i
)
)
ENGINE
=
InnoDB
;
INSERT
INTO
t1
VALUES
(
1
,
1.0
,
1.1
,
1
),(
2
,
2.0
,
2.2
,
2
);
PREPARE
stmt
FROM
"
SELECT DISTINCT i, GROUP_CONCAT( d1, d2 ORDER BY d1, d2 )
FROM t1 a1 NATURAL JOIN t1 a2 GROUP BY i WITH ROLLUP
"
;
EXECUTE
stmt
;
EXECUTE
stmt
;
DROP
TABLE
t1
;
--
echo
End
of
5.5
tests
set
optimizer_switch
=@
save_ext_key_optimizer_switch
;
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