2007-07-26 12:24:54 +02:00
-- source include/have_ndb.inc
--disable_warnings
DROP TABLE IF EXISTS t1;
--enable_warnings
CREATE TABLE `test` (
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`t` VARCHAR( 10 ) NOT NULL
) ENGINE = ndbcluster;
2007-08-14 07:07:17 +02:00
# Add user1@localhost with a specific password
# and connect as that user
2007-07-26 12:24:54 +02:00
GRANT USAGE ON *.* TO user1@localhost IDENTIFIED BY 'pass';
connect (user1,localhost,user1,pass,*NO-ONE*);
2007-08-14 07:07:17 +02:00
# Run the query 100 times
2007-07-26 12:24:54 +02:00
disable_query_log;
disable_result_log;
let $i= 100;
while ($i)
{
select count(*) from information_schema.tables union all select count(*) from information_schema.tables union all select count(*) from information_schema.tables;
dec $i;
}
enable_query_log;
enable_result_log;
2007-08-14 07:07:17 +02:00
disconnect user1;
# Switch back to the default connection and cleanup
connection default;
2007-07-26 12:24:54 +02:00
DROP TABLE `test`.`test`;
2007-08-14 07:07:17 +02:00
drop user user1@localhost;
2007-07-27 09:12:53 +02:00