Commit 3479f428 authored by unknown's avatar unknown

fixed bug in mysqltest

updated mysql-test-run with features from 4.0
added a test case for broken load data from master for MyISAM tables
with checksum


client/mysqltest.c:
  fixed parser bug
mysql-test/mysql-test-run.sh:
  backported changes from 4.0 ( needed to be able to run client in gdb)
mysql-test/t/rpl000006.test:
  updated test case for a bug
parent 45ea63fe
......@@ -1359,6 +1359,10 @@ int read_line(char* buf, int size)
*p = 0;
return 0;
}
else if (c == '\'')
state = R_Q1;
else if (c == '"')
state = R_Q2;
else
state = R_NORMAL;
break;
......
This diff is collapsed.
......@@ -15,3 +15,21 @@ drop table foo;
save_master_pos;
connection slave;
sync_with_master;
connection master;
set SQL_LOG_BIN=1;
CREATE TABLE t1 (
a int not null
) TYPE=MyISAM MAX_ROWS=4000 CHECKSUM=1;
INSERT INTO t1 VALUES (1);
save_master_pos;
connection slave;
sync_with_master;
drop table t1;
load table t1 from master;
check table t1;
connection master;
drop table t1;
save_master_pos;
connection slave;
sync_with_master;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment