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
9b728dde
Commit
9b728dde
authored
Nov 09, 2007
by
mats@kindahl-laptop.dnsalias.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing some tests to make the replication team tree green.
parent
7b833f9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
22 deletions
+32
-22
mysql-test/suite/rpl/r/rpl_found_rows.result
mysql-test/suite/rpl/r/rpl_found_rows.result
+17
-12
mysql-test/suite/rpl/t/rpl_found_rows.test
mysql-test/suite/rpl/t/rpl_found_rows.test
+15
-10
No files found.
mysql-test/suite/rpl/r/rpl_found_rows.result
View file @
9b728dde
...
...
@@ -28,12 +28,12 @@ a
1
SELECT FOUND_ROWS() INTO @a;
INSERT INTO logtbl VALUES(1,2,@a);
SELECT * FROM logtbl WHERE sect = 1;
SELECT * FROM logtbl WHERE sect = 1
ORDER BY sect,test
;
sect test count
1 1 183
1 2 3
**** On Slave ****
SELECT * FROM logtbl WHERE sect = 1;
SELECT * FROM logtbl WHERE sect = 1
ORDER BY sect,test
;
sect test count
1 1 183
1 2 3
...
...
@@ -61,13 +61,13 @@ a
7
SELECT FOUND_ROWS() INTO @found_rows;
CALL just_log(2,3,@found_rows);
SELECT * FROM logtbl WHERE sect = 2;
SELECT * FROM logtbl WHERE sect = 2
ORDER BY sect,test
;
sect test count
2 1 3
2 2 183
2 3 183
**** On Slave ****
SELECT * FROM logtbl WHERE sect = 2;
SELECT * FROM logtbl WHERE sect = 2
ORDER BY sect,test
;
sect test count
2 1 3
2 2 183
...
...
@@ -87,12 +87,12 @@ SELECT FOUND_ROWS() INTO @found_rows;
SELECT log_rows(3,1,@found_rows), log_rows(3,2,@found_rows);
log_rows(3,1,@found_rows) log_rows(3,2,@found_rows)
183 183
SELECT * FROM logtbl WHERE sect = 3;
SELECT * FROM logtbl WHERE sect = 3
ORDER BY sect,test
;
sect test count
3 1 183
3 2 183
**** On Slave ****
SELECT * FROM logtbl WHERE sect = 3;
SELECT * FROM logtbl WHERE sect = 3
ORDER BY sect,test
;
sect test count
3 1 183
3 2 183
...
...
@@ -115,6 +115,7 @@ CREATE PROCEDURE just_log(sect INT, test INT) BEGIN
INSERT INTO logtbl VALUES (sect,test,FOUND_ROWS());
END $$
**** On Master 1 ****
SET BINLOG_FORMAT=MIXED;
SELECT SQL_CALC_FOUND_ROWS * FROM t1 WHERE a > 5 ORDER BY a LIMIT 1;
a
7
...
...
@@ -134,14 +135,14 @@ SELECT SQL_CALC_FOUND_ROWS * FROM t1 WHERE a > 5 ORDER BY a LIMIT 1;
a
7
CALL just_log(1,4);
SELECT * FROM logtbl WHERE sect = 1;
SELECT * FROM logtbl WHERE sect = 1
ORDER BY sect,test
;
sect test count
1 1 183
1 2 183
1 3 3
1 4 183
**** On Slave ****
SELECT * FROM logtbl WHERE sect = 1;
SELECT * FROM logtbl WHERE sect = 1
ORDER BY sect,test
;
sect test count
1 1 183
1 2 183
...
...
@@ -201,28 +202,32 @@ SELECT SQL_CALC_FOUND_ROWS * FROM t1 WHERE a > 5 ORDER BY a LIMIT 1;
a
7
INSERT INTO t2 VALUES (2,5), (2,6);
SELECT * FROM logtbl WHERE sect = 2;
SELECT * FROM logtbl WHERE sect = 2
ORDER BY sect,test
;
sect test count
2 1 3
2 2 3
2 3 3
2 4 3
2 5 183
2 6 183
2 5 183
2 6 183
2 6 0
2 6 183
2 7 0
SELECT * FROM logtbl WHERE sect = 2;
SELECT * FROM logtbl WHERE sect = 2
ORDER BY sect,test
;
sect test count
2 1 3
2 2 3
2 3 3
2 4 3
2 5 183
2 6 183
2 5 183
2 6 183
2 6 0
2 6 183
2 7 0
DROP TABLE t1, logtbl;
DROP PROCEDURE just_log;
DROP PROCEDURE log_me;
DROP PROCEDURE log_me_inner;
DROP FUNCTION log_rows;
mysql-test/suite/rpl/t/rpl_found_rows.test
View file @
9b728dde
...
...
@@ -44,10 +44,10 @@ SELECT SQL_CALC_FOUND_ROWS * FROM t1 WHERE a < 5 ORDER BY a LIMIT 1;
SELECT
FOUND_ROWS
()
INTO
@
a
;
INSERT
INTO
logtbl
VALUES
(
1
,
2
,
@
a
);
SELECT
*
FROM
logtbl
WHERE
sect
=
1
;
SELECT
*
FROM
logtbl
WHERE
sect
=
1
ORDER
BY
sect
,
test
;
--
echo
****
On
Slave
****
sync_slave_with_master
;
SELECT
*
FROM
logtbl
WHERE
sect
=
1
;
SELECT
*
FROM
logtbl
WHERE
sect
=
1
ORDER
BY
sect
,
test
;
--
echo
====
1.2
.
Stored
procedure
====
...
...
@@ -81,10 +81,10 @@ SELECT SQL_CALC_FOUND_ROWS * FROM t1 WHERE a > 5 ORDER BY a LIMIT 1;
SELECT
FOUND_ROWS
()
INTO
@
found_rows
;
CALL
just_log
(
2
,
3
,
@
found_rows
);
SELECT
*
FROM
logtbl
WHERE
sect
=
2
;
SELECT
*
FROM
logtbl
WHERE
sect
=
2
ORDER
BY
sect
,
test
;
--
echo
****
On
Slave
****
sync_slave_with_master
;
SELECT
*
FROM
logtbl
WHERE
sect
=
2
;
SELECT
*
FROM
logtbl
WHERE
sect
=
2
ORDER
BY
sect
,
test
;
--
echo
====
1.3
.
Stored
functions
====
--
echo
****
On
Master
****
...
...
@@ -102,10 +102,10 @@ SELECT SQL_CALC_FOUND_ROWS * FROM t1 WHERE a > 5 ORDER BY a LIMIT 1;
SELECT
FOUND_ROWS
()
INTO
@
found_rows
;
SELECT
log_rows
(
3
,
1
,
@
found_rows
),
log_rows
(
3
,
2
,
@
found_rows
);
SELECT
*
FROM
logtbl
WHERE
sect
=
3
;
SELECT
*
FROM
logtbl
WHERE
sect
=
3
ORDER
BY
sect
,
test
;
--
echo
****
On
Slave
****
sync_slave_with_master
;
SELECT
*
FROM
logtbl
WHERE
sect
=
3
;
SELECT
*
FROM
logtbl
WHERE
sect
=
3
ORDER
BY
sect
,
test
;
--
echo
====
1.9
.
Cleanup
====
--
echo
****
On
Master
****
...
...
@@ -139,6 +139,7 @@ sync_slave_with_master;
--
echo
****
On
Master
1
****
connection
master1
;
SET
BINLOG_FORMAT
=
MIXED
;
SELECT
SQL_CALC_FOUND_ROWS
*
FROM
t1
WHERE
a
>
5
ORDER
BY
a
LIMIT
1
;
CALL
just_log
(
1
,
1
);
...
...
@@ -161,10 +162,10 @@ CALL just_log(1,4);
sync_slave_with_master
;
connection
master
;
SELECT
*
FROM
logtbl
WHERE
sect
=
1
;
SELECT
*
FROM
logtbl
WHERE
sect
=
1
ORDER
BY
sect
,
test
;
--
echo
****
On
Slave
****
sync_slave_with_master
;
SELECT
*
FROM
logtbl
WHERE
sect
=
1
;
SELECT
*
FROM
logtbl
WHERE
sect
=
1
ORDER
BY
sect
,
test
;
--
echo
====
2.1
.
Checking
a
stored
function
====
--
echo
****
On
Master
****
...
...
@@ -241,11 +242,15 @@ END $$
SELECT
SQL_CALC_FOUND_ROWS
*
FROM
t1
WHERE
a
>
5
ORDER
BY
a
LIMIT
1
;
INSERT
INTO
t2
VALUES
(
2
,
5
),
(
2
,
6
);
SELECT
*
FROM
logtbl
WHERE
sect
=
2
;
SELECT
*
FROM
logtbl
WHERE
sect
=
2
ORDER
BY
sect
,
test
;
sync_slave_with_master
;
SELECT
*
FROM
logtbl
WHERE
sect
=
2
;
SELECT
*
FROM
logtbl
WHERE
sect
=
2
ORDER
BY
sect
,
test
;
connection
master
;
DROP
TABLE
t1
,
logtbl
;
DROP
PROCEDURE
just_log
;
DROP
PROCEDURE
log_me
;
DROP
PROCEDURE
log_me_inner
;
DROP
FUNCTION
log_rows
;
sync_slave_with_master
;
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