~stewart/drizzle/embedded-innodb-create-select-transaction-arrgh

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/r/rpl_session_var.result

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
stop slave;
 
2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
3
reset master;
 
4
reset slave;
 
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
6
start slave;
 
7
drop table if exists t1;
 
8
Warnings:
 
9
Note    1051    Unknown table 't1'
 
10
create table t1(a varchar(100),b int);
 
11
set @@session.sql_mode=pipes_as_concat;
 
12
insert into t1 values('My'||'SQL', 1);
 
13
set @@session.sql_mode=default;
 
14
insert into t1 values('1'||'2', 2);
 
15
select * from t1 where b<3 order by a;
 
16
a       b
 
17
1       2
 
18
MySQL   1
 
19
select * from t1 where b<3 order by a;
 
20
a       b
 
21
1       2
 
22
MySQL   1
 
23
set @@session.sql_mode=ignore_space;
 
24
insert into t1 values(password          ('MySQL'), 3);
 
25
set @@session.sql_mode=ansi_quotes;
 
26
create table "t2" ("a" int);
 
27
drop table t1, t2;
 
28
set @@session.sql_mode=default;
 
29
create table t1(a int auto_increment primary key);
 
30
create table t2(b int, a int);
 
31
set @@session.sql_auto_is_null=1;
 
32
insert into t1 values(null);
 
33
insert into t2 select 1,a from t1 where a is null;
 
34
set @@session.sql_auto_is_null=0;
 
35
insert into t1 values(null);
 
36
insert into t2 select 2,a from t1 where a is null;
 
37
select * from t2 order by b;
 
38
b       a
 
39
1       1
 
40
select * from t2 order by b;
 
41
b       a
 
42
1       1
 
43
drop table t1,t2;
 
44
CREATE TABLE t1 (
 
45
`id` int(11) NOT NULL auto_increment,
 
46
`data` varchar(100),
 
47
PRIMARY KEY  (`id`)
 
48
) ENGINE=MyISAM;
 
49
INSERT INTO t1(data) VALUES(SESSION_USER());
 
50
SELECT length(data) < 100 FROM t1;
 
51
length(data) < 100
 
52
1
 
53
drop table t1;