mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Update test results to new mysqltest
Remove extra space for "send" commands mysql-test/extra/rpl_tests/rpl_truncate_helper.test: Get $SERVER_VERSION from the mysqld mysql-test/r/flush_table.result: Remove extra space for "send" commands mysql-test/r/handler_innodb.result: Remove extra space for "send" commands mysql-test/r/lock_multi.result: Remove extra space for "send" commands mysql-test/r/log_tables.result: Remove extra space for "send" commands
This commit is contained in:
@ -36,6 +36,7 @@ SELECT * FROM t1;
|
|||||||
--echo **** On Master ****
|
--echo **** On Master ****
|
||||||
connection master;
|
connection master;
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
let $SERVER_VERSION=`select version()`;
|
||||||
--replace_result $SERVER_VERSION SERVER_VERSION
|
--replace_result $SERVER_VERSION SERVER_VERSION
|
||||||
--replace_regex /\/\* xid=[0-9]+ \*\//\/* xid= *\// /table_id: [0-9]+/table_id: #/
|
--replace_regex /\/\* xid=[0-9]+ \*\//\/* xid= *\// /table_id: [0-9]+/table_id: #/
|
||||||
SHOW BINLOG EVENTS;
|
SHOW BINLOG EVENTS;
|
||||||
|
@ -9,7 +9,7 @@ test.t1 check status OK
|
|||||||
unlock tables;
|
unlock tables;
|
||||||
lock table t1 read;
|
lock table t1 read;
|
||||||
lock table t1 read;
|
lock table t1 read;
|
||||||
flush table t1;
|
flush table t1;
|
||||||
select * from t1;
|
select * from t1;
|
||||||
a
|
a
|
||||||
1
|
1
|
||||||
@ -19,7 +19,7 @@ a
|
|||||||
1
|
1
|
||||||
unlock tables;
|
unlock tables;
|
||||||
lock table t1 write;
|
lock table t1 write;
|
||||||
lock table t1 read;
|
lock table t1 read;
|
||||||
flush table t1;
|
flush table t1;
|
||||||
select * from t1;
|
select * from t1;
|
||||||
a
|
a
|
||||||
@ -27,7 +27,7 @@ a
|
|||||||
unlock tables;
|
unlock tables;
|
||||||
unlock tables;
|
unlock tables;
|
||||||
lock table t1 read;
|
lock table t1 read;
|
||||||
lock table t1 write;
|
lock table t1 write;
|
||||||
flush table t1;
|
flush table t1;
|
||||||
select * from t1;
|
select * from t1;
|
||||||
a
|
a
|
||||||
|
@ -476,7 +476,7 @@ handler t1 read first;
|
|||||||
c1
|
c1
|
||||||
1
|
1
|
||||||
send the below to another connection, do not wait for the result
|
send the below to another connection, do not wait for the result
|
||||||
optimize table t1;
|
optimize table t1;
|
||||||
proceed with the normal connection
|
proceed with the normal connection
|
||||||
handler t1 read next;
|
handler t1 read next;
|
||||||
c1
|
c1
|
||||||
@ -502,7 +502,7 @@ flush tables with read lock;
|
|||||||
drop table t1;
|
drop table t1;
|
||||||
ERROR HY000: Can't execute the query because you have a conflicting read lock
|
ERROR HY000: Can't execute the query because you have a conflicting read lock
|
||||||
send the below to another connection, do not wait for the result
|
send the below to another connection, do not wait for the result
|
||||||
drop table t1;
|
drop table t1;
|
||||||
proceed with the normal connection
|
proceed with the normal connection
|
||||||
select * from t1;
|
select * from t1;
|
||||||
c1
|
c1
|
||||||
|
@ -2,8 +2,8 @@ drop table if exists t1,t2;
|
|||||||
create table t1(n int);
|
create table t1(n int);
|
||||||
insert into t1 values (1);
|
insert into t1 values (1);
|
||||||
lock tables t1 write;
|
lock tables t1 write;
|
||||||
update low_priority t1 set n = 4;
|
update low_priority t1 set n = 4;
|
||||||
select n from t1;
|
select n from t1;
|
||||||
unlock tables;
|
unlock tables;
|
||||||
n
|
n
|
||||||
4
|
4
|
||||||
@ -11,8 +11,8 @@ drop table t1;
|
|||||||
create table t1(n int);
|
create table t1(n int);
|
||||||
insert into t1 values (1);
|
insert into t1 values (1);
|
||||||
lock tables t1 read;
|
lock tables t1 read;
|
||||||
update low_priority t1 set n = 4;
|
update low_priority t1 set n = 4;
|
||||||
select n from t1;
|
select n from t1;
|
||||||
unlock tables;
|
unlock tables;
|
||||||
n
|
n
|
||||||
1
|
1
|
||||||
@ -23,7 +23,7 @@ insert into t1 values(1,1);
|
|||||||
insert into t1 values(2,2);
|
insert into t1 values(2,2);
|
||||||
insert into t2 values(1,2);
|
insert into t2 values(1,2);
|
||||||
lock table t1 read;
|
lock table t1 read;
|
||||||
update t1,t2 set c=a where b=d;
|
update t1,t2 set c=a where b=d;
|
||||||
select c from t2;
|
select c from t2;
|
||||||
c
|
c
|
||||||
2
|
2
|
||||||
@ -32,7 +32,7 @@ drop table t2;
|
|||||||
create table t1 (a int);
|
create table t1 (a int);
|
||||||
create table t2 (a int);
|
create table t2 (a int);
|
||||||
lock table t1 write, t2 write;
|
lock table t1 write, t2 write;
|
||||||
insert t1 select * from t2;
|
insert t1 select * from t2;
|
||||||
drop table t2;
|
drop table t2;
|
||||||
ERROR 42S02: Table 'test.t2' doesn't exist
|
ERROR 42S02: Table 'test.t2' doesn't exist
|
||||||
drop table t1;
|
drop table t1;
|
||||||
@ -54,7 +54,7 @@ use mysql;
|
|||||||
LOCK TABLES columns_priv WRITE, db WRITE, host WRITE, user WRITE;
|
LOCK TABLES columns_priv WRITE, db WRITE, host WRITE, user WRITE;
|
||||||
FLUSH TABLES;
|
FLUSH TABLES;
|
||||||
use mysql;
|
use mysql;
|
||||||
SELECT user.Select_priv FROM user, db WHERE user.user = db.user LIMIT 1;
|
SELECT user.Select_priv FROM user, db WHERE user.user = db.user LIMIT 1;
|
||||||
OPTIMIZE TABLES columns_priv, db, host, user;
|
OPTIMIZE TABLES columns_priv, db, host, user;
|
||||||
Table Op Msg_type Msg_text
|
Table Op Msg_type Msg_text
|
||||||
mysql.columns_priv optimize status OK
|
mysql.columns_priv optimize status OK
|
||||||
@ -68,14 +68,14 @@ use test;
|
|||||||
use test;
|
use test;
|
||||||
CREATE TABLE t1 (c1 int);
|
CREATE TABLE t1 (c1 int);
|
||||||
LOCK TABLE t1 WRITE;
|
LOCK TABLE t1 WRITE;
|
||||||
FLUSH TABLES WITH READ LOCK;
|
FLUSH TABLES WITH READ LOCK;
|
||||||
CREATE TABLE t2 (c1 int);
|
CREATE TABLE t2 (c1 int);
|
||||||
UNLOCK TABLES;
|
UNLOCK TABLES;
|
||||||
UNLOCK TABLES;
|
UNLOCK TABLES;
|
||||||
DROP TABLE t1, t2;
|
DROP TABLE t1, t2;
|
||||||
CREATE TABLE t1 (c1 int);
|
CREATE TABLE t1 (c1 int);
|
||||||
LOCK TABLE t1 WRITE;
|
LOCK TABLE t1 WRITE;
|
||||||
FLUSH TABLES WITH READ LOCK;
|
FLUSH TABLES WITH READ LOCK;
|
||||||
CREATE TABLE t2 AS SELECT * FROM t1;
|
CREATE TABLE t2 AS SELECT * FROM t1;
|
||||||
ERROR HY000: Table 't2' was not locked with LOCK TABLES
|
ERROR HY000: Table 't2' was not locked with LOCK TABLES
|
||||||
UNLOCK TABLES;
|
UNLOCK TABLES;
|
||||||
@ -83,7 +83,7 @@ UNLOCK TABLES;
|
|||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
CREATE DATABASE mysqltest_1;
|
CREATE DATABASE mysqltest_1;
|
||||||
FLUSH TABLES WITH READ LOCK;
|
FLUSH TABLES WITH READ LOCK;
|
||||||
DROP DATABASE mysqltest_1;
|
DROP DATABASE mysqltest_1;
|
||||||
DROP DATABASE mysqltest_1;
|
DROP DATABASE mysqltest_1;
|
||||||
ERROR HY000: Can't execute the query because you have a conflicting read lock
|
ERROR HY000: Can't execute the query because you have a conflicting read lock
|
||||||
UNLOCK TABLES;
|
UNLOCK TABLES;
|
||||||
@ -91,7 +91,7 @@ DROP DATABASE mysqltest_1;
|
|||||||
ERROR HY000: Can't drop database 'mysqltest_1'; database doesn't exist
|
ERROR HY000: Can't drop database 'mysqltest_1'; database doesn't exist
|
||||||
create table t1 (f1 int(12) unsigned not null auto_increment, primary key(f1)) engine=innodb;
|
create table t1 (f1 int(12) unsigned not null auto_increment, primary key(f1)) engine=innodb;
|
||||||
lock tables t1 write;
|
lock tables t1 write;
|
||||||
alter table t1 auto_increment=0; alter table t1 auto_increment=0; alter table t1 auto_increment=0; alter table t1 auto_increment=0; alter table t1 auto_increment=0; //
|
alter table t1 auto_increment=0; alter table t1 auto_increment=0; alter table t1 auto_increment=0; alter table t1 auto_increment=0; alter table t1 auto_increment=0; //
|
||||||
alter table t1 auto_increment=0; alter table t1 auto_increment=0; alter table t1 auto_increment=0; alter table t1 auto_increment=0; alter table t1 auto_increment=0; //
|
alter table t1 auto_increment=0; alter table t1 auto_increment=0; alter table t1 auto_increment=0; alter table t1 auto_increment=0; alter table t1 auto_increment=0; //
|
||||||
unlock tables;
|
unlock tables;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
@ -39,14 +39,14 @@ ERROR HY000: You can't use usual read lock with log tables. Try READ LOCAL inste
|
|||||||
lock tables mysql.slow_log READ LOCAL, mysql.general_log READ LOCAL;
|
lock tables mysql.slow_log READ LOCAL, mysql.general_log READ LOCAL;
|
||||||
unlock tables;
|
unlock tables;
|
||||||
lock tables mysql.general_log READ LOCAL;
|
lock tables mysql.general_log READ LOCAL;
|
||||||
flush logs;
|
flush logs;
|
||||||
unlock tables;
|
unlock tables;
|
||||||
select "Mark that we woke up from flush logs in the test"
|
select "Mark that we woke up from flush logs in the test"
|
||||||
as "test passed";
|
as "test passed";
|
||||||
test passed
|
test passed
|
||||||
Mark that we woke up from flush logs in the test
|
Mark that we woke up from flush logs in the test
|
||||||
lock tables mysql.general_log READ LOCAL;
|
lock tables mysql.general_log READ LOCAL;
|
||||||
truncate mysql.general_log;
|
truncate mysql.general_log;
|
||||||
unlock tables;
|
unlock tables;
|
||||||
select "Mark that we woke up from TRUNCATE in the test"
|
select "Mark that we woke up from TRUNCATE in the test"
|
||||||
as "test passed";
|
as "test passed";
|
||||||
|
Reference in New Issue
Block a user