mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge
BitKeeper/etc/logging_ok: Auto converge configure.in: Auto merged mysql-test/misc/select.res: ***MISSING WEAVE*** BitKeeper/etc/ignore: Added BitKeeper/etc/config BitKeeper/tmp/CONTENTS BitKeeper/tmp/patch BitKeeper/tmp/pid to the ignore list mysql-test/mysql-test-run: merge
This commit is contained in:
@ -3,4 +3,4 @@ drop table if exists x;
|
||||
create table x (n int);
|
||||
insert into x values(9),(3),(12),(10);
|
||||
alter table x order by n;
|
||||
@r/3.23/alt000001.result select * from x;
|
||||
@r/alt000001.result select * from x;
|
@ -8,4 +8,4 @@ insert into emails values ('sasha@mysql.com'),('monty@mysql.com'),
|
||||
create table domain(id int not null auto_increment primary key,
|
||||
domain varchar(50), unique(domain));
|
||||
insert into domain (domain) select distinct substring(email, locate('@', email)+1) from emails;
|
||||
@r/3.23/ins000001.result select * from domain;
|
||||
@r/ins000001.result select * from domain;
|
@ -1,15 +1,15 @@
|
||||
source t/include/master-slave.inc;
|
||||
source include/master-slave.inc;
|
||||
connection master;
|
||||
use test;
|
||||
drop table if exists words;
|
||||
create table words (word char(20) not null);
|
||||
load data infile '../../std_data/words' into table words;
|
||||
load data infile '../../std_data/words.dat' into table words;
|
||||
drop table if exists foo;
|
||||
create table foo(n int);
|
||||
insert into foo values(1),(2);
|
||||
connection slave;
|
||||
sleep 2;
|
||||
use test;
|
||||
@r/3.23/rpl000001.a.result select * from foo;
|
||||
@r/3.23/rpl000001.b.result select sum(length(word)) from words;
|
||||
@r/rpl000001.a.result select * from foo;
|
||||
@r/rpl000001.b.result select sum(length(word)) from words;
|
||||
|
@ -1,4 +1,4 @@
|
||||
source t/include/master-slave.inc;
|
||||
source include/master-slave.inc;
|
||||
connection master;
|
||||
use test;
|
||||
drop table if exists x;
|
||||
@ -8,4 +8,4 @@ insert into x values (NULL),(NULL),(NULL);
|
||||
connection slave;
|
||||
use test;
|
||||
sleep 0.5;
|
||||
@r/3.23/rpl000002.result select * from x;
|
||||
@r/rpl000002.result select * from x;
|
@ -1,4 +1,4 @@
|
||||
source t/include/master-slave.inc;
|
||||
source include/master-slave.inc;
|
||||
connection master;
|
||||
drop table if exists x;
|
||||
create table x(n int primary key);
|
||||
@ -6,4 +6,4 @@ create table x(n int primary key);
|
||||
insert into x values (3);
|
||||
connection slave;
|
||||
sleep 0.5;
|
||||
@r/3.23/rpl000003.result select * from x;
|
||||
@r/rpl000003.result select * from x;
|
@ -1,18 +1,18 @@
|
||||
source t/include/master-slave.inc;
|
||||
source include/master-slave.inc;
|
||||
connection master;
|
||||
use test;
|
||||
set SQL_LOG_BIN=0;
|
||||
drop table if exists words;
|
||||
create table words (word char(20) not null, index(word));
|
||||
load data infile '../../std_data/words' into table words;
|
||||
load data infile '../../std_data/words.dat' into table words;
|
||||
drop table if exists words1;
|
||||
create table words1 (word char(20) not null);
|
||||
load data infile '../../std_data/words' into table words1;
|
||||
load data infile '../../std_data/words.dat' into table words1;
|
||||
connection slave;
|
||||
use test;
|
||||
drop table if exists words;
|
||||
load table words from master;
|
||||
drop table if exists words1;
|
||||
load table words1 from master;
|
||||
@r/3.23/rpl000004.a.result check table words;
|
||||
@r/3.23/rpl000004.b.result select count(*) from words1;
|
||||
@r/rpl000004.a.result check table words;
|
||||
@r/rpl000004.b.result select count(*) from words1;
|
@ -1,4 +1,4 @@
|
||||
source t/include/master-slave.inc;
|
||||
source include/master-slave.inc;
|
||||
connection master;
|
||||
drop table if exists test;
|
||||
CREATE TABLE test (name varchar(64), age smallint(3));
|
||||
@ -6,7 +6,7 @@ INSERT INTO test SET name='Andy', age=31;
|
||||
INSERT test SET name='Jacob', age=2;
|
||||
INSERT into test SET name='Caleb', age=1;
|
||||
ALTER TABLE test ADD id int(8) ZEROFILL AUTO_INCREMENT PRIMARY KEY;
|
||||
@r/3.23/rpl000005.result select * from test;
|
||||
@r/rpl000005.result select * from test;
|
||||
connection slave;
|
||||
sleep 0.5;
|
||||
@r/3.23/rpl000005.result select * from test;
|
||||
@r/rpl000005.result select * from test;
|
@ -1,12 +1,12 @@
|
||||
source t/include/master-slave.inc;
|
||||
source include/master-slave.inc;
|
||||
connection master;
|
||||
set SQL_LOG_BIN=0;
|
||||
set timestamp=200006;
|
||||
drop table if exists foo;
|
||||
create table foo(t timestamp not null,a char(1));
|
||||
insert into foo ( a) values ('F');
|
||||
@r/3.23/rpl000006.result select unix_timestamp(t) from foo;
|
||||
@r/rpl000006.result select unix_timestamp(t) from foo;
|
||||
connection slave;
|
||||
drop table if exists foo;
|
||||
load table foo from master;
|
||||
@r/3.23/rpl000006.result select unix_timestamp(t) from foo;
|
||||
@r/rpl000006.result select unix_timestamp(t) from foo;
|
@ -1,6 +1,6 @@
|
||||
#this one assumes we are ignoring updates on table foo, but doing
|
||||
#the ones on bar
|
||||
source t/include/master-slave.inc;
|
||||
source include/master-slave.inc;
|
||||
connection slave;
|
||||
use test;
|
||||
drop table if exists foo;
|
||||
@ -16,4 +16,4 @@ create table bar (m int);
|
||||
insert into bar values(15);
|
||||
connection slave;
|
||||
sleep 1;
|
||||
@r/3.23/rpl000007.result select foo.n,bar.m from foo,bar;
|
||||
@r/rpl000007.result select foo.n,bar.m from foo,bar;
|
@ -1,6 +1,6 @@
|
||||
#this one assumes we are ignoring updates on table foo, but doing
|
||||
#the ones on all other tables
|
||||
source t/include/master-slave.inc;
|
||||
source include/master-slave.inc;
|
||||
connection slave;
|
||||
use test;
|
||||
drop table if exists foo;
|
||||
@ -19,4 +19,4 @@ create table choo (k int);
|
||||
insert into choo values(55);
|
||||
connection slave;
|
||||
sleep 1;
|
||||
@r/3.23/rpl000008.result select foo.n,bar.m,choo.k from foo,bar,choo;
|
||||
@r/rpl000008.result select foo.n,bar.m,choo.k from foo,bar,choo;
|
@ -1,6 +1,6 @@
|
||||
#this one assumes we are ignoring updates on tables in database foo, but doing
|
||||
#the ones in database bar
|
||||
source t/include/master-slave.inc;
|
||||
source include/master-slave.inc;
|
||||
connection master;
|
||||
drop database if exists foo;
|
||||
create database foo;
|
||||
@ -20,4 +20,4 @@ create table bar.bar (m int);
|
||||
insert into bar.bar values(15);
|
||||
connection slave;
|
||||
sleep 1;
|
||||
@r/3.23/rpl000009.result select foo.foo.n,bar.bar.m from foo.foo,bar.bar;
|
||||
@r/rpl000009.result select foo.foo.n,bar.bar.m from foo.foo,bar.bar;
|
@ -1,6 +1,6 @@
|
||||
#this tests the offset off by 22 mystery bug
|
||||
#must run slave with --disconnect-slave-event-count=1 --master-connect-retry=1
|
||||
source t/include/master-slave.inc;
|
||||
source include/master-slave.inc;
|
||||
connection slave;
|
||||
drop table if exists foo;
|
||||
connection master;
|
||||
@ -10,4 +10,4 @@ insert into foo values(NULL);
|
||||
insert into foo values(2);
|
||||
connection slave;
|
||||
sleep 5;
|
||||
@r/3.23/rpl000010.result select n from foo;
|
||||
@r/rpl000010.result select n from foo;
|
@ -1,4 +1,4 @@
|
||||
source t/include/master-slave.inc;
|
||||
source include/master-slave.inc;
|
||||
connection master;
|
||||
use test;
|
||||
drop table if exists foo;
|
||||
@ -14,5 +14,5 @@ insert into foo values(2);
|
||||
connection slave;
|
||||
#let slave catch up
|
||||
sleep 1;
|
||||
@r/3.23/rpl000011.result select * from foo;
|
||||
@r/rpl000011.result select * from foo;
|
||||
|
@ -1,4 +1,4 @@
|
||||
source t/include/master-slave.inc;
|
||||
source include/master-slave.inc;
|
||||
connection master;
|
||||
drop table if exists x;
|
||||
create table x(n int);
|
||||
@ -15,5 +15,5 @@ insert into x values(6);
|
||||
disconnect master1;
|
||||
connection slave;
|
||||
sleep 1;
|
||||
@r/3.23/rpl000012.result select * from x;
|
||||
@r/3.23/rpl000012.status.result show status like 'Slave_open_temp_tables';
|
||||
@r/rpl000012.result select * from x;
|
||||
@r/rpl000012.status.result show status like 'Slave_open_temp_tables';
|
@ -1,4 +1,4 @@
|
||||
source t/include/master-slave.inc;
|
||||
source include/master-slave.inc;
|
||||
connection master;
|
||||
drop table if exists x;
|
||||
create table x(n int);
|
||||
@ -21,5 +21,5 @@ while ($1)
|
||||
sleep 0.2;
|
||||
dec $1;
|
||||
}
|
||||
@r/3.23/rpl000013.result select * from x;
|
||||
@r/3.23/rpl000013.status.result show status like 'Slave_open_temp_tables';
|
||||
@r/rpl000013.result select * from x;
|
||||
@r/rpl000013.status.result show status like 'Slave_open_temp_tables';
|
@ -14,4 +14,4 @@
|
||||
DROP TABLE IF EXISTS t;
|
||||
CREATE TABLE t (s CHAR(20) PRIMARY KEY, id INT);
|
||||
INSERT INTO t VALUES ('cat', 1), ('mouse', 3), ('dog', 2), ('snake', 77);
|
||||
@r/3.23/sel000001.result SELECT s, id FROM t WHERE s = 'mouse';
|
||||
@r/sel000001.result SELECT s, id FROM t WHERE s = 'mouse';
|
@ -13,4 +13,4 @@
|
||||
DROP TABLE IF EXISTS t;
|
||||
CREATE TABLE t (n INT);
|
||||
INSERT INTO t VALUES (1), (2), (3);
|
||||
@r/3.23/sel000002.result SELECT * FROM t;
|
||||
@r/sel000002.result SELECT * FROM t;
|
@ -14,4 +14,4 @@
|
||||
DROP TABLE IF EXISTS t;
|
||||
CREATE TABLE t (name CHAR(20) NOT NULL PRIMARY KEY, score SMALLINT NOT NULL, KEY(score));
|
||||
INSERT INTO t VALUES ('Sasha', 20), ('Matt', 20), ('Monty', 10), ('David', 10), ('Tim', 10), ('Jeremy', 10);
|
||||
@r/3.23/sel000003.result SELECT COUNT(*) as n, score FROM t GROUP BY score;
|
||||
@r/sel000003.result SELECT COUNT(*) as n, score FROM t GROUP BY score;
|
@ -16,6 +16,6 @@ val int(10) not null);
|
||||
insert into elt_ck1 values (1),(2),(4);
|
||||
insert into elt_ck2 values (1,1),(2,1),(3,1),(4,2);
|
||||
|
||||
@r/3.23/sel000004.result select one.id, elt(two.val,'one','two') from elt_ck1 one, elt_ck2 two
|
||||
@r/sel000004.result select one.id, elt(two.val,'one','two') from elt_ck1 one, elt_ck2 two
|
||||
where two.id=one.id order by one.id;
|
||||
|
@ -16,6 +16,6 @@ val int(10) not null);
|
||||
insert into elt_ck1 values (1),(2),(4);
|
||||
insert into elt_ck2 values (1,1),(2,1),(3,1),(4,2);
|
||||
|
||||
@r/3.23/sel000005.result select one.id, elt(two.val,'one','two') from elt_ck1 one, elt_ck2 two
|
||||
@r/sel000005.result select one.id, elt(two.val,'one','two') from elt_ck1 one, elt_ck2 two
|
||||
where two.id=one.id ;
|
||||
|
@ -21,7 +21,7 @@ CREATE TABLE test2 (
|
||||
KEY NAME (NAME)
|
||||
);
|
||||
|
||||
@r/3.23/sel000100.result SELECT DISTINCT
|
||||
@r/sel000100.result SELECT DISTINCT
|
||||
test2.id AS key_link_id,
|
||||
test2.name AS link
|
||||
FROM test1
|
@ -4,4 +4,4 @@ create table test (
|
||||
test_set set( 'val1', 'val2', 'val3' ) not null default '',
|
||||
name char(20) default 'O''Brien'
|
||||
) comment = 'it\'s a table' ;
|
||||
@r/3.23/shw000001.result show create table test ;
|
||||
@r/shw000001.result show create table test ;
|
Reference in New Issue
Block a user