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

« back to all changes in this revision

Viewing changes to mysql-test/t/multi_statement.test

  • 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
# PS doesn't support multi-statements
 
2
--disable_ps_protocol
 
3
 
 
4
--disable_warnings
 
5
DROP TABLE IF EXISTS t1;
 
6
--enable_warnings
 
7
 
 
8
select 1;
 
9
delimiter ||||;
 
10
select 2;
 
11
select 3;
 
12
select 4||||
 
13
delimiter 'abcd'||||
 
14
select 5;
 
15
select 6;
 
16
select 50, 'abc';'abcd'
 
17
select "abcd'";'abcd'select "'abcd";'abcd'
 
18
select 5'abcd'
 
19
delimiter ;'abcd'
 
20
select 'finish';
 
21
 
 
22
# Bug #8475: Make sure every statement that is a slow query in
 
23
# a multi-statement query gets logged as a slow query.
 
24
flush status;
 
25
delimiter ||||;
 
26
create table t1 (i int);
 
27
insert into t1 values (1);
 
28
select * from t1 where i = 1;
 
29
insert into t1 values (2),(3),(4);
 
30
select * from t1 where i = 2;
 
31
select * from t1 where i = 3||||
 
32
show status like 'Slow_queries'||||
 
33
drop table t1||||
 
34
 
 
35
delimiter ;||||
 
36
 
 
37
# End of 4.1 tests