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
b142c8ed
Commit
b142c8ed
authored
May 24, 2004
by
sergefp@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added replication tests
parent
700adb9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
71 additions
and
0 deletions
+71
-0
mysql-test/r/rpl_ps.result
mysql-test/r/rpl_ps.result
+28
-0
mysql-test/t/rpl_ps.test
mysql-test/t/rpl_ps.test
+43
-0
No files found.
mysql-test/r/rpl_ps.result
0 → 100644
View file @
b142c8ed
stop slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
drop table if exists t1;
create table t1(n char(30));
prepare stmt1 from 'insert into t1 values (?)';
set @var1= "from-master-1";
execute stmt1 using @var1;
set @var1= "from-master-2-'',";
execute stmt1 using @var1;
select * from t1;
n
from-master-1
from-master-2-'',
set @var2= 'insert into t1 values (concat("from-var-", ?))';
prepare stmt2 from @var2;
set @var1='from-master-3';
execute stmt2 using @var1;
select * from t1;
n
from-master-1
from-master-2-'',
from-var-from-master-3
drop table t1;
stop slave;
mysql-test/t/rpl_ps.test
0 → 100644
View file @
b142c8ed
#
# Test of replicating user variables
#
source
include
/
master
-
slave
.
inc
;
#save_master_pos;
#connection slave;
#sync_with_master;
#reset master;
#connection master;
--
disable_warnings
drop
table
if
exists
t1
;
--
enable_warnings
create
table
t1
(
n
char
(
30
));
prepare
stmt1
from
'insert into t1 values (?)'
;
set
@
var1
=
"from-master-1"
;
execute
stmt1
using
@
var1
;
set
@
var1
=
"from-master-2-'',"
;
execute
stmt1
using
@
var1
;
select
*
from
t1
;
set
@
var2
=
'insert into t1 values (concat("from-var-", ?))'
;
prepare
stmt2
from
@
var2
;
set
@
var1
=
'from-master-3'
;
execute
stmt2
using
@
var1
;
save_master_pos
;
connection
slave
;
sync_with_master
;
select
*
from
t1
;
connection
master
;
drop
table
t1
;
save_master_pos
;
connection
slave
;
sync_with_master
;
stop
slave
;
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