~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/suite/ndb/t/ndb_bug26793.test

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
-- source include/have_ndb.inc
 
2
 
 
3
--disable_warnings
 
4
DROP TABLE IF EXISTS t1;
 
5
--enable_warnings
 
6
 
 
7
CREATE TABLE `test` (
 
8
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
 
9
`t` VARCHAR( 10 ) NOT NULL
 
10
) ENGINE = ndbcluster;
 
11
 
 
12
# Add user1@localhost with a specific password
 
13
# and connect as that user
 
14
GRANT USAGE ON *.* TO user1@localhost IDENTIFIED BY 'pass';
 
15
connect (user1,localhost,user1,pass,*NO-ONE*);
 
16
 
 
17
# Run the query 100 times
 
18
disable_query_log;
 
19
disable_result_log;
 
20
let $i= 100;
 
21
while ($i)
 
22
{
 
23
select count(*) from information_schema.tables union all select count(*) from information_schema.tables union all select count(*) from information_schema.tables;
 
24
dec $i;
 
25
}
 
26
enable_query_log;
 
27
enable_result_log;
 
28
 
 
29
disconnect user1;
 
30
 
 
31
# Switch back to the default connection and cleanup
 
32
connection default;
 
33
DROP TABLE `test`.`test`;
 
34
drop user user1@localhost;
 
35