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
52a1e4d6
Commit
52a1e4d6
authored
Jul 01, 2017
by
Monty
Committed by
Sergei Golubchik
Aug 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed sequence.gtid
parent
9e1cc831
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
mysql-test/suite/sql_sequence/gtid.result
mysql-test/suite/sql_sequence/gtid.result
+3
-0
mysql-test/suite/sql_sequence/gtid.test
mysql-test/suite/sql_sequence/gtid.test
+4
-0
No files found.
mysql-test/suite/sql_sequence/gtid.result
View file @
52a1e4d6
...
@@ -7,6 +7,7 @@ grant all on test.* to normal_2@'%' identified by 'pass';
...
@@ -7,6 +7,7 @@ grant all on test.* to normal_2@'%' identified by 'pass';
grant all on s_db.* to normal_3@'%' identified by 'pass';
grant all on s_db.* to normal_3@'%' identified by 'pass';
grant all on test.* to normal_4@'%' identified by 'pass';
grant all on test.* to normal_4@'%' identified by 'pass';
grant select on test.* to normal_5@'%' identified by 'pass';
grant select on test.* to normal_5@'%' identified by 'pass';
flush status;
connection slave;
connection slave;
connect m_normal_1, 127.0.0.1, normal_1, pass, s_db, $MASTER_MYPORT;
connect m_normal_1, 127.0.0.1, normal_1, pass, s_db, $MASTER_MYPORT;
connect m_normal_2, 127.0.0.1, normal_2, pass, test, $MASTER_MYPORT;
connect m_normal_2, 127.0.0.1, normal_2, pass, test, $MASTER_MYPORT;
...
@@ -231,6 +232,8 @@ read_only OFF
...
@@ -231,6 +232,8 @@ read_only OFF
select next value for s_db.s1;
select next value for s_db.s1;
next value for s_db.s1
next value for s_db.s1
1
1
connection master;
connection slave;
connection s_normal_3;
connection s_normal_3;
show global variables like 'read_only';
show global variables like 'read_only';
Variable_name Value
Variable_name Value
...
...
mysql-test/suite/sql_sequence/gtid.test
View file @
52a1e4d6
...
@@ -13,6 +13,7 @@ grant all on test.* to normal_2@'%' identified by 'pass';
...
@@ -13,6 +13,7 @@ grant all on test.* to normal_2@'%' identified by 'pass';
grant
all
on
s_db
.*
to
normal_3
@
'%'
identified
by
'pass'
;
grant
all
on
s_db
.*
to
normal_3
@
'%'
identified
by
'pass'
;
grant
all
on
test
.*
to
normal_4
@
'%'
identified
by
'pass'
;
grant
all
on
test
.*
to
normal_4
@
'%'
identified
by
'pass'
;
grant
select
on
test
.*
to
normal_5
@
'%'
identified
by
'pass'
;
grant
select
on
test
.*
to
normal_5
@
'%'
identified
by
'pass'
;
flush
status
;
--
sync_slave_with_master
--
sync_slave_with_master
...
@@ -225,6 +226,9 @@ create sequence s_db.s1;
...
@@ -225,6 +226,9 @@ create sequence s_db.s1;
show
global
variables
like
'read_only'
;
show
global
variables
like
'read_only'
;
select
next
value
for
s_db
.
s1
;
select
next
value
for
s_db
.
s1
;
connection
master
;
--
sync_slave_with_master
connection
s_normal_3
;
connection
s_normal_3
;
show
global
variables
like
'read_only'
;
show
global
variables
like
'read_only'
;
--
error
ER_OPTION_PREVENTS_STATEMENT
--
error
ER_OPTION_PREVENTS_STATEMENT
...
...
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