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
56f42962
Commit
56f42962
authored
Mar 10, 2010
by
Luis Soares
Browse files
Options
Browse Files
Download
Plain Diff
Automerge: bzr bundle (post-push fix) in bug report --> mysql-5.1-bugteam-pp-fix
parents
096cb4c6
2c23e00a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
65 deletions
+66
-65
mysql-test/suite/binlog/r/binlog_innodb_row.result
mysql-test/suite/binlog/r/binlog_innodb_row.result
+29
-0
mysql-test/suite/binlog/r/binlog_row_innodb_truncate.result
mysql-test/suite/binlog/r/binlog_row_innodb_truncate.result
+0
-28
mysql-test/suite/binlog/t/binlog_innodb_row.test
mysql-test/suite/binlog/t/binlog_innodb_row.test
+37
-0
mysql-test/suite/binlog/t/binlog_row_innodb_truncate.test
mysql-test/suite/binlog/t/binlog_row_innodb_truncate.test
+0
-37
No files found.
mysql-test/suite/binlog/r/binlog_innodb_row.result
View file @
56f42962
...
...
@@ -29,3 +29,32 @@ master-bin.000001 # Table_map # # table_id: # (test.t1)
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
master-bin.000001 # Xid # # COMMIT /* XID */
drop table t1;
RESET MASTER;
CREATE TABLE t1 ( c1 int , primary key (c1)) ENGINE=InnoDB;
INSERT INTO t1 VALUES (1), (2), (3);
CREATE TEMPORARY TABLE IF NOT EXISTS t2 LIKE t1;
TRUNCATE TABLE t2;
DROP TABLE t1;
###############################################
### assertion: No event for 'TRUNCATE TABLE t2'
###############################################
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 # Query # # use `test`; CREATE TABLE t1 ( c1 int , primary key (c1)) ENGINE=InnoDB
master-bin.000001 # Query # # BEGIN
master-bin.000001 # Table_map # # table_id: # (test.t1)
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
master-bin.000001 # Xid # # COMMIT /* XID */
master-bin.000001 # Query # # use `test`; DROP TABLE t1
###############################################
RESET MASTER;
CREATE TEMPORARY TABLE t1 (c1 int) Engine=InnoDB;
INSERT INTO t1 VALUES (1), (2), (3);
TRUNCATE t1;
DROP TEMPORARY TABLE t1;
###############################################
### assertion: No event for 'TRUNCATE TABLE t1'
###############################################
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
###############################################
mysql-test/suite/binlog/r/binlog_row_innodb_truncate.result
deleted
100644 → 0
View file @
096cb4c6
CREATE TABLE t1 ( c1 int , primary key (c1)) ENGINE=InnoDB;
INSERT INTO t1 VALUES (1), (2), (3);
CREATE TEMPORARY TABLE IF NOT EXISTS t2 LIKE t1;
TRUNCATE TABLE t2;
DROP TABLE t1;
###############################################
### assertion: No event for 'TRUNCATE TABLE t2'
###############################################
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 # Query # # use `test`; CREATE TABLE t1 ( c1 int , primary key (c1)) ENGINE=InnoDB
master-bin.000001 # Query # # BEGIN
master-bin.000001 # Table_map # # table_id: # (test.t1)
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
master-bin.000001 # Xid # # COMMIT /* XID */
master-bin.000001 # Query # # use `test`; DROP TABLE t1
###############################################
RESET MASTER;
CREATE TEMPORARY TABLE t1 (c1 int) Engine=InnoDB;
INSERT INTO t1 VALUES (1), (2), (3);
TRUNCATE t1;
DROP TEMPORARY TABLE t1;
###############################################
### assertion: No event for 'TRUNCATE TABLE t1'
###############################################
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
###############################################
mysql-test/suite/binlog/t/binlog_innodb_row.test
View file @
56f42962
...
...
@@ -40,3 +40,40 @@ commit;
source
include
/
show_binlog_events
.
inc
;
drop
table
t1
;
#
# BUG#51251
#
# The test case checks if truncating a temporary table created with
# engine InnoDB will not cause the truncate statement to be binlogged.
# Before patch for BUG#51251, the TRUNCATE statements below would be
# binlogged, which would cause the slave to fail with "table does not
# exist".
RESET
MASTER
;
CREATE
TABLE
t1
(
c1
int
,
primary
key
(
c1
))
ENGINE
=
InnoDB
;
INSERT
INTO
t1
VALUES
(
1
),
(
2
),
(
3
);
CREATE
TEMPORARY
TABLE
IF
NOT
EXISTS
t2
LIKE
t1
;
TRUNCATE
TABLE
t2
;
DROP
TABLE
t1
;
--
echo
###############################################
--
echo
### assertion: No event for 'TRUNCATE TABLE t2'
--
echo
###############################################
--
source
include
/
show_binlog_events
.
inc
--
echo
###############################################
RESET
MASTER
;
CREATE
TEMPORARY
TABLE
t1
(
c1
int
)
Engine
=
InnoDB
;
INSERT
INTO
t1
VALUES
(
1
),
(
2
),
(
3
);
TRUNCATE
t1
;
DROP
TEMPORARY
TABLE
t1
;
--
echo
###############################################
--
echo
### assertion: No event for 'TRUNCATE TABLE t1'
--
echo
###############################################
--
source
include
/
show_binlog_events
.
inc
--
echo
###############################################
mysql-test/suite/binlog/t/binlog_row_innodb_truncate.test
deleted
100644 → 0
View file @
096cb4c6
--
source
include
/
have_binlog_format_row
.
inc
--
source
include
/
have_innodb
.
inc
#
# BUG#51251
#
# The test case checks if truncating a temporary table created with
# engine InnoDB will not cause the truncate statement to be binlogged.
# Before patch for BUG#51251, the TRUNCATE statements below would be
# binlogged, which would cause the slave to fail with "table does not
# exist".
CREATE
TABLE
t1
(
c1
int
,
primary
key
(
c1
))
ENGINE
=
InnoDB
;
INSERT
INTO
t1
VALUES
(
1
),
(
2
),
(
3
);
CREATE
TEMPORARY
TABLE
IF
NOT
EXISTS
t2
LIKE
t1
;
TRUNCATE
TABLE
t2
;
DROP
TABLE
t1
;
--
echo
###############################################
--
echo
### assertion: No event for 'TRUNCATE TABLE t2'
--
echo
###############################################
--
source
include
/
show_binlog_events
.
inc
--
echo
###############################################
RESET
MASTER
;
CREATE
TEMPORARY
TABLE
t1
(
c1
int
)
Engine
=
InnoDB
;
INSERT
INTO
t1
VALUES
(
1
),
(
2
),
(
3
);
TRUNCATE
t1
;
DROP
TEMPORARY
TABLE
t1
;
--
echo
###############################################
--
echo
### assertion: No event for 'TRUNCATE TABLE t1'
--
echo
###############################################
--
source
include
/
show_binlog_events
.
inc
--
echo
###############################################
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