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
d6fd94f7
Commit
d6fd94f7
authored
Feb 04, 2008
by
mkindahl@dl145h.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More fixes to remove test failures in pushbuild.
parent
ec9d14f8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
mysql-test/suite/rpl/r/rpl_row_trig001.result
mysql-test/suite/rpl/r/rpl_row_trig001.result
+2
-1
mysql-test/suite/rpl/t/rpl_row_trig001.test
mysql-test/suite/rpl/t/rpl_row_trig001.test
+12
-1
No files found.
mysql-test/suite/rpl/r/rpl_row_trig001.result
View file @
d6fd94f7
...
@@ -8,7 +8,7 @@ CREATE TABLE test.t1 (n MEDIUMINT NOT NULL, d DATETIME, PRIMARY KEY(n));
...
@@ -8,7 +8,7 @@ CREATE TABLE test.t1 (n MEDIUMINT NOT NULL, d DATETIME, PRIMARY KEY(n));
CREATE TABLE test.t2 (n MEDIUMINT NOT NULL AUTO_INCREMENT, f FLOAT, d DATETIME, PRIMARY KEY(n));
CREATE TABLE test.t2 (n MEDIUMINT NOT NULL AUTO_INCREMENT, f FLOAT, d DATETIME, PRIMARY KEY(n));
CREATE TABLE test.t3 (n MEDIUMINT NOT NULL AUTO_INCREMENT, d DATETIME, PRIMARY KEY(n));
CREATE TABLE test.t3 (n MEDIUMINT NOT NULL AUTO_INCREMENT, d DATETIME, PRIMARY KEY(n));
INSERT INTO test.t1 VALUES (1,NOW());
INSERT INTO test.t1 VALUES (1,NOW());
CREATE TRIGGER test.t2_ai AFTER INSERT ON test.t2 FOR EACH ROW UPDATE test.t1 SET d=NOW() where n = 1
;
//
CREATE TRIGGER test.t2_ai AFTER INSERT ON test.t2 FOR EACH ROW UPDATE test.t1 SET d=NOW() where n = 1//
CREATE PROCEDURE test.p3()
CREATE PROCEDURE test.p3()
BEGIN
BEGIN
INSERT INTO test.t3 (d) VALUES (NOW());
INSERT INTO test.t3 (d) VALUES (NOW());
...
@@ -18,6 +18,7 @@ CREATE PROCEDURE test.p2()
...
@@ -18,6 +18,7 @@ CREATE PROCEDURE test.p2()
BEGIN
BEGIN
INSERT INTO test.t2 (f,d) VALUES (RAND(),NOW());
INSERT INTO test.t2 (f,d) VALUES (RAND(),NOW());
END//
END//
INSERT INTO test.t1 VALUES (1+1, NOW());
<End test section 2 (Tiggers & SP)>
<End test section 2 (Tiggers & SP)>
-----------------------------------
-----------------------------------
...
...
mysql-test/suite/rpl/t/rpl_row_trig001.test
View file @
d6fd94f7
...
@@ -39,7 +39,7 @@ CREATE TABLE test.t3 (n MEDIUMINT NOT NULL AUTO_INCREMENT, d DATETIME, PRIMARY K
...
@@ -39,7 +39,7 @@ CREATE TABLE test.t3 (n MEDIUMINT NOT NULL AUTO_INCREMENT, d DATETIME, PRIMARY K
INSERT
INTO
test
.
t1
VALUES
(
1
,
NOW
());
INSERT
INTO
test
.
t1
VALUES
(
1
,
NOW
());
delimiter
//;
delimiter
//;
CREATE
TRIGGER
test
.
t2_ai
AFTER
INSERT
ON
test
.
t2
FOR
EACH
ROW
UPDATE
test
.
t1
SET
d
=
NOW
()
where
n
=
1
;
//
CREATE
TRIGGER
test
.
t2_ai
AFTER
INSERT
ON
test
.
t2
FOR
EACH
ROW
UPDATE
test
.
t1
SET
d
=
NOW
()
where
n
=
1
//
CREATE
PROCEDURE
test
.
p3
()
CREATE
PROCEDURE
test
.
p3
()
BEGIN
BEGIN
INSERT
INTO
test
.
t3
(
d
)
VALUES
(
NOW
());
INSERT
INTO
test
.
t3
(
d
)
VALUES
(
NOW
());
...
@@ -51,6 +51,10 @@ BEGIN
...
@@ -51,6 +51,10 @@ BEGIN
END
//
END
//
delimiter
;
//
delimiter
;
//
# Make sure that all definition have propagated to the slave
sync_slave_with_master
;
connection
master
;
--
disable_query_log
--
disable_query_log
--
disable_result_log
--
disable_result_log
SET
@
wait_count
=
1
;
SET
@
wait_count
=
1
;
...
@@ -67,6 +71,13 @@ while ($1)
...
@@ -67,6 +71,13 @@ while ($1)
--
enable_result_log
--
enable_result_log
--
enable_query_log
--
enable_query_log
# Just a precaution to make sure all changes have made it over to the
# slave
connection
master
;
let
$count
=
`select count(*) from t1`
;
eval
INSERT
INTO
test
.
t1
VALUES
(
$count
+
1
,
NOW
());
sync_slave_with_master
;
#show binlog events;
#show binlog events;
#select * from test.t2;
#select * from test.t2;
#select * from test.t3;
#select * from test.t3;
...
...
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