~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/slave/tests/t/basic.test

Does not work (compile issue in plugin).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
--disable_warnings
2
 
DROP TABLE IF EXISTS t1;
3
 
--enable_warnings
4
 
 
5
 
--echo Populating master server
6
 
 
7
 
CREATE TABLE t1 (a int not null auto_increment, primary key(a));
8
 
INSERT INTO t1 VALUES (),(),();
9
 
SELECT * FROM t1;
10
 
# We wait a bit for the slave
11
 
# Might need a proper include file / test later
12
 
--sleep 3 
13
 
--echo Connecting to slave...
14
 
connect (slave_con,127.0.0.1,root,,test, $BOT0_S1);
15
 
echo Using connection slave_con...;
16
 
connection slave_con;
17
 
--sleep 3
18
 
--echo Checking slave contents...
19
 
--source include/wait_for_slave_plugin_to_sync.inc
20
 
 
21
 
SHOW CREATE TABLE t1;
22
 
SELECT * FROM t1;
23
 
 
24
 
--echo Switching to default connection
25
 
connection default;
26
 
disconnect slave_con;
27
 
 
28
 
# cleanup
29
 
DROP TABLE t1;