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
25519637
Commit
25519637
authored
Dec 03, 2010
by
Mattias Jonsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
post-push fix for test to work on row-based-replication
parent
a998586d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
10 deletions
+3
-10
mysql-test/r/partition_binlog.result
mysql-test/r/partition_binlog.result
+0
-7
mysql-test/t/partition_binlog.test
mysql-test/t/partition_binlog.test
+3
-3
No files found.
mysql-test/r/partition_binlog.result
View file @
25519637
...
...
@@ -41,13 +41,6 @@ ALTER TABLE t1 TRUNCATE PARTITION p0;
ALTER TABLE t1 DROP PARTITION p0;
show binlog events in 'master-bin.000001' from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 # Query # # use `test`; CREATE TABLE t1(id INT)
PARTITION BY RANGE (id)
(PARTITION p0 VALUES LESS THAN (100),
PARTITION pmax VALUES LESS THAN (MAXVALUE))
master-bin.000001 # Query # # BEGIN
master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (1), (10), (100), (1000)
master-bin.000001 # Query # # COMMIT
master-bin.000001 # Query # # use `test`; ALTER TABLE t1 ANALYZE PARTITION p0
master-bin.000001 # Query # # use `test`; ALTER TABLE t1 OPTIMIZE PARTITION p0
master-bin.000001 # Query # # use `test`; ALTER TABLE t1 REPAIR PARTITION p0
...
...
mysql-test/t/partition_binlog.test
View file @
25519637
...
...
@@ -9,9 +9,6 @@ DROP TABLE IF EXISTS t1;
--
echo
# but the statement is written to binlog
--
echo
#
--
let
$binlog_file
=
query_get_value
(
SHOW
MASTER
STATUS
,
File
,
1
)
--
let
$binlog_start
=
query_get_value
(
SHOW
MASTER
STATUS
,
Position
,
1
)
CREATE
TABLE
t1
(
id
INT
)
PARTITION
BY
RANGE
(
id
)
(
PARTITION
p0
VALUES
LESS
THAN
(
100
),
...
...
@@ -19,6 +16,9 @@ PARTITION BY RANGE (id)
INSERT
INTO
t1
VALUES
(
1
),
(
10
),
(
100
),
(
1000
);
--
let
$binlog_file
=
query_get_value
(
SHOW
MASTER
STATUS
,
File
,
1
)
--
let
$binlog_start
=
query_get_value
(
SHOW
MASTER
STATUS
,
Position
,
1
)
--
error
ER_WRONG_PARTITION_NAME
ALTER
TABLE
t1
TRUNCATE
PARTITION
p1
;
--
error
ER_DROP_PARTITION_NON_EXISTENT
...
...
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