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
e771dca7
Commit
e771dca7
authored
Sep 15, 2011
by
Mattias Jonsson
Browse files
Options
Browse Files
Download
Plain Diff
null merge of bug#11766879 (to be fixed by bug#12696518)
parents
39175b92
1cfcab04
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
+49
-0
mysql-test/r/partition_innodb_plugin.result
mysql-test/r/partition_innodb_plugin.result
+23
-0
mysql-test/t/partition_innodb_plugin.test
mysql-test/t/partition_innodb_plugin.test
+26
-0
No files found.
mysql-test/r/partition_innodb_plugin.result
View file @
e771dca7
#
# Bug#11766879/Bug#60106: DIFF BETWEEN # OF INDEXES IN MYSQL VS INNODB,
# PARTITONING, ON INDEX CREATE
#
call mtr.add_suppression("contains 2 indexes inside InnoDB, which is different from the number of indexes 1 defined in the MySQL");
CREATE TABLE t1 (
id bigint NOT NULL AUTO_INCREMENT,
time date,
id2 bigint not null,
PRIMARY KEY (id,time)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
/*!50100 PARTITION BY RANGE(TO_DAYS(time))
(PARTITION p10 VALUES LESS THAN (734708) ENGINE = InnoDB,
PARTITION p20 VALUES LESS THAN MAXVALUE ENGINE = InnoDB) */;
INSERT INTO t1 (time,id2) VALUES ('2011-07-24',1);
INSERT INTO t1 (time,id2) VALUES ('2011-07-25',1);
INSERT INTO t1 (time,id2) VALUES ('2011-07-25',1);
CREATE UNIQUE INDEX uk_time_id2 on t1(time,id2);
ERROR 23000: Duplicate entry '2011-07-25-1' for key 'uk_time_id2'
SELECT COUNT(*) FROM t1;
COUNT(*)
3
DROP TABLE t1;
call mtr.add_suppression("nnoDB: Error: table `test`.`t1` .* Partition.* InnoDB internal");
#
# Bug#55091: Server crashes on ADD PARTITION after a failed attempt
...
...
mysql-test/t/partition_innodb_plugin.test
View file @
e771dca7
...
...
@@ -3,6 +3,32 @@
let
$MYSQLD_DATADIR
=
`SELECT @@datadir`
;
--
echo
#
--
echo
# Bug#11766879/Bug#60106: DIFF BETWEEN # OF INDEXES IN MYSQL VS INNODB,
--
echo
# PARTITONING, ON INDEX CREATE
--
echo
#
call
mtr
.
add_suppression
(
"contains 2 indexes inside InnoDB, which is different from the number of indexes 1 defined in the MySQL"
);
CREATE
TABLE
t1
(
id
bigint
NOT
NULL
AUTO_INCREMENT
,
time
date
,
id2
bigint
not
null
,
PRIMARY
KEY
(
id
,
time
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
/*!50100 PARTITION BY RANGE(TO_DAYS(time))
(PARTITION p10 VALUES LESS THAN (734708) ENGINE = InnoDB,
PARTITION p20 VALUES LESS THAN MAXVALUE ENGINE = InnoDB) */
;
INSERT
INTO
t1
(
time
,
id2
)
VALUES
(
'2011-07-24'
,
1
);
INSERT
INTO
t1
(
time
,
id2
)
VALUES
(
'2011-07-25'
,
1
);
INSERT
INTO
t1
(
time
,
id2
)
VALUES
(
'2011-07-25'
,
1
);
--
error
ER_DUP_ENTRY
CREATE
UNIQUE
INDEX
uk_time_id2
on
t1
(
time
,
id2
);
SELECT
COUNT
(
*
)
FROM
t1
;
DROP
TABLE
t1
;
call
mtr
.
add_suppression
(
"nnoDB: Error: table `test`.`t1` .* Partition.* InnoDB internal"
);
--
echo
#
--
echo
# Bug#55091: Server crashes on ADD PARTITION after a failed attempt
...
...
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