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
253bb96e
Commit
253bb96e
authored
Oct 16, 2007
by
skozlov/ksm@mysql.com/virtop.localdomain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for non-deterministic behavior of SELECTs and VIEWs
parent
73834a4a
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
86 additions
and
86 deletions
+86
-86
mysql-test/suite/rpl/include/rpl_mixed_check_select.inc
mysql-test/suite/rpl/include/rpl_mixed_check_select.inc
+4
-4
mysql-test/suite/rpl/include/rpl_mixed_check_view.inc
mysql-test/suite/rpl/include/rpl_mixed_check_view.inc
+2
-2
mysql-test/suite/rpl/include/rpl_mixed_dml.inc
mysql-test/suite/rpl/include/rpl_mixed_dml.inc
+4
-4
mysql-test/suite/rpl/r/rpl_innodb_mixed_dml.result
mysql-test/suite/rpl/r/rpl_innodb_mixed_dml.result
+76
-76
No files found.
mysql-test/suite/rpl/include/rpl_mixed_check_select.inc
View file @
253bb96e
...
...
@@ -7,15 +7,15 @@
--
echo
==========
MASTER
==========
SELECT
COUNT
(
*
)
FROM
t1
;
SELECT
*
FROM
t1
;
SELECT
*
FROM
t1
ORDER
BY
a
;
SELECT
COUNT
(
*
)
FROM
t2
;
SELECT
*
FROM
t2
;
SELECT
*
FROM
t2
ORDER
BY
a
;
sync_slave_with_master
;
--
echo
==========
SLAVE
===========
USE
test_rpl
;
SELECT
COUNT
(
*
)
FROM
t1
;
SELECT
*
FROM
t1
;
SELECT
*
FROM
t1
ORDER
BY
a
;
SELECT
COUNT
(
*
)
FROM
t2
;
SELECT
*
FROM
t2
;
SELECT
*
FROM
t2
ORDER
BY
a
;
connection
master
;
mysql-test/suite/rpl/include/rpl_mixed_check_view.inc
View file @
253bb96e
...
...
@@ -7,11 +7,11 @@
--
echo
==========
MASTER
==========
SHOW
CREATE
VIEW
v1
;
SELECT
*
FROM
v1
;
SELECT
*
FROM
v1
ORDER
BY
a
;
sync_slave_with_master
;
--
echo
==========
SLAVE
===========
USE
test_rpl
;
SHOW
CREATE
VIEW
v1
;
SELECT
*
FROM
v1
;
SELECT
*
FROM
v1
ORDER
BY
a
;
connection
master
;
mysql-test/suite/rpl/include/rpl_mixed_dml.inc
View file @
253bb96e
...
...
@@ -54,7 +54,7 @@ DELETE FROM t2 WHERE a = 2;
--
exec
cp
./
suite
/
rpl
/
data
/
rpl_mixed
.
dat
$MYSQLTEST_VARDIR
/
tmp
/
LOAD
DATA
INFILE
'../tmp/rpl_mixed.dat'
INTO
TABLE
t1
FIELDS
TERMINATED
BY
'|'
;
--
exec
rm
$MYSQLTEST_VARDIR
/
tmp
/
rpl_mixed
.
dat
SELECT
*
FROM
t1
;
SELECT
*
FROM
t1
ORDER
BY
a
;
--
source
suite
/
rpl
/
include
/
rpl_mixed_check_select
.
inc
--
source
suite
/
rpl
/
include
/
rpl_mixed_clear_tables
.
inc
...
...
@@ -75,7 +75,7 @@ DELETE FROM t1 WHERE a = 2;
--
echo
--
echo
********************
SELECT
********************
INSERT
INTO
t1
VALUES
(
1
,
't1, text 1'
);
SELECT
*
FROM
t1
WHERE
b
<>
UUID
();
SELECT
*
FROM
t1
WHERE
b
<>
UUID
()
ORDER
BY
a
;
--
source
suite
/
rpl
/
include
/
rpl_mixed_clear_tables
.
inc
# JOIN
...
...
@@ -85,8 +85,8 @@ INSERT INTO t1 VALUES(1, 'CCC');
INSERT
INTO
t1
VALUES
(
2
,
'DDD'
);
INSERT
INTO
t2
VALUES
(
1
,
'DDD'
);
INSERT
INTO
t2
VALUES
(
2
,
'CCC'
);
SELECT
*
FROM
t1
LEFT
JOIN
t2
ON
t1
.
a
=
t2
.
a
;
SELECT
*
FROM
t1
INNER
JOIN
t2
ON
t1
.
b
=
t2
.
b
;
SELECT
*
FROM
t1
LEFT
JOIN
t2
ON
t1
.
a
=
t2
.
a
ORDER
BY
t1
.
a
,
t2
.
a
;
SELECT
*
FROM
t1
INNER
JOIN
t2
ON
t1
.
b
=
t2
.
b
ORDER
BY
t1
.
a
,
t2
.
a
;
--
source
suite
/
rpl
/
include
/
rpl_mixed_clear_tables
.
inc
# UNION
...
...
mysql-test/suite/rpl/r/rpl_innodb_mixed_dml.result
View file @
253bb96e
This diff is collapsed.
Click to expand it.
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