summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-11-28 16:11:05 +0200
committermonty@hundin.mysql.fi <>2001-11-28 16:11:05 +0200
commit76ed6c26fcd3f85c720d4aa4b77d39accb409be9 (patch)
treedd1ee5dcda0fecccd46e084224858ae5668594c7 /mysql-test
parent69f6802632a9f0027041b53b1fcff78c51503f33 (diff)
downloadmariadb-git-76ed6c26fcd3f85c720d4aa4b77d39accb409be9.tar.gz
Fix of testcases after merge.
Small improvement to write caching.
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/rpl000013.result2
-rw-r--r--mysql-test/r/rpl000016.result17
2 files changed, 10 insertions, 9 deletions
diff --git a/mysql-test/r/rpl000013.result b/mysql-test/r/rpl000013.result
index 2c4a7a470cf..5e4b4159e3a 100644
--- a/mysql-test/r/rpl000013.result
+++ b/mysql-test/r/rpl000013.result
@@ -10,7 +10,7 @@ insert into t1 values(1),(2),(3);
insert into t2 select * from t1;
create temporary table t1 (n int);
insert into t1 values (4),(5);
-insert into t2 select * from t1;
+insert into t2 select * from t1 as t10;
insert into t2 values(6);
select * from t2;
n
diff --git a/mysql-test/r/rpl000016.result b/mysql-test/r/rpl000016.result
index e15d22ea3ee..405e0302161 100644
--- a/mysql-test/r/rpl000016.result
+++ b/mysql-test/r/rpl000016.result
@@ -2,11 +2,11 @@ slave start;
Could not initialize master info structure, check permisions on master.info
slave start;
Could not initialize master info structure, check permisions on master.info
-change master to master_host='127.0.0.1',master_port=$MASTER_MYPORT,
+change master to master_host='127.0.0.1',master_port=9306,
master_user='root';
Could not initialize master info
reset slave;
-change master to master_host='127.0.0.1',master_port=$MASTER_MYPORT,
+change master to master_host='127.0.0.1',master_port=9306,
master_user='root';
reset master;
slave start;
@@ -15,14 +15,14 @@ create table t1 (s text);
insert into t1 values('Could not break slave'),('Tried hard');
show slave status;
Master_Host Master_User Master_Port Connect_retry Log_File Pos Slave_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Last_log_seq
-127.0.0.1 root $MASTER_MYPORT 60 master-bin.001 234 Yes 0 0 3
+127.0.0.1 root 9306 60 master-bin.001 234 Yes 0 0 3
select * from t1;
s
Could not break slave
Tried hard
flush logs;
drop table if exists t2;
-create table t2(m int not null primary key);
+create table t2(m int not null auto_increment primary key);
insert into t2 values (34),(67),(123);
flush logs;
show master logs;
@@ -31,7 +31,8 @@ master-bin.001
master-bin.002
master-bin.003
insert into t2 values(1234);
-insert into t2 values(1234);
+set insert_id=1234;
+insert into t2 values(NULL);
slave stop;
set sql_slave_skip_counter=1;
slave start;
@@ -42,7 +43,7 @@ master-bin.003
insert into t2 values (65);
show slave status;
Master_Host Master_User Master_Port Connect_retry Log_File Pos Slave_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Last_log_seq
-127.0.0.1 root $MASTER_MYPORT 60 master-bin.003 127 Yes 0 0 2
+127.0.0.1 root 9306 60 master-bin.003 155 Yes 0 0 3
select * from t2;
m
34
@@ -60,12 +61,12 @@ master-bin.005
master-bin.006
show master status;
File Position Binlog_do_db Binlog_ignore_db
-master-bin.006 382
+master-bin.006 445
slave stop;
slave start;
show slave status;
Master_Host Master_User Master_Port Connect_retry Log_File Pos Slave_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Last_log_seq
-127.0.0.1 root $MASTER_MYPORT 60 master-bin.006 382 Yes 0 0 6
+127.0.0.1 root 9306 60 master-bin.006 445 Yes 0 0 7
lock tables t3 read;
select count(*) from t3 where n >= 4;
count(*)