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
f2c3ed8e
Commit
f2c3ed8e
authored
Jan 20, 2006
by
anozdrin@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test case for BUG#16621: INSERTs in Stored Procedures causes data corruption
in the Binary Log.
parent
145fd62b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
+49
-0
mysql-test/r/rpl_sp.result
mysql-test/r/rpl_sp.result
+13
-0
mysql-test/t/rpl_sp.test
mysql-test/t/rpl_sp.test
+36
-0
No files found.
mysql-test/r/rpl_sp.result
View file @
f2c3ed8e
...
...
@@ -401,5 +401,18 @@ drop function f1;
select * from t1;
a
1
DROP PROCEDURE IF EXISTS p1;
DROP TABLE IF EXISTS t1;
CREATE TABLE t1(col VARCHAR(10));
CREATE PROCEDURE p1(arg VARCHAR(10))
INSERT INTO t1 VALUES(arg);
CALL p1('test');
SELECT * FROM t1;
col
test
SELECT * FROM t1;
col
test
DROP PROCEDURE p1;
drop table t1;
reset master;
mysql-test/t/rpl_sp.test
View file @
f2c3ed8e
...
...
@@ -401,6 +401,42 @@ sync_slave_with_master;
connection
slave
;
select
*
from
t1
;
#
# Bug#16621 "INSERTs in Stored Procedures causes data corruption in the Binary
# Log for 5.0.18"
#
# Prepare environment.
connection
master
;
--
disable_warnings
DROP
PROCEDURE
IF
EXISTS
p1
;
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
# Test case.
CREATE
TABLE
t1
(
col
VARCHAR
(
10
));
CREATE
PROCEDURE
p1
(
arg
VARCHAR
(
10
))
INSERT
INTO
t1
VALUES
(
arg
);
CALL
p1
(
'test'
);
SELECT
*
FROM
t1
;
sync_slave_with_master
;
connection
slave
;
SELECT
*
FROM
t1
;
# Cleanup.
connection
master
;
DROP
PROCEDURE
p1
;
# cleanup
connection
master
;
drop
table
t1
;
...
...
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