~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/handler_write.test

  • Committer: Stewart Smith
  • Date: 2008-11-21 16:06:07 UTC
  • mto: This revision was merged to the branch mainline in revision 593.
  • Revision ID: stewart@flamingspork.com-20081121160607-n6gdlt013spuo54r
remove mysql_frm_type
and fix engines to return correct value from delete_table when table doesn't exist.
(it should be ENOENT).

Also fix up some tests that manipulated frm files by hand. These tests are no longer valid and will need to be rewritten in the not too distant future.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
FLUSH STATUS;
2
 
SHOW STATUS LIKE 'Handler_write';
3
 
CREATE TABLE t1 (a int);
4
 
SHOW STATUS LIKE 'Handler_write';
5
 
INSERT INTO t1 VALUES (1);
6
 
SHOW STATUS LIKE 'Handler_write';
7
 
INSERT INTO t1 VALUES (1);
8
 
SHOW STATUS LIKE 'Handler_write';
9
 
INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
10
 
SHOW STATUS LIKE 'Handler_write';
11
 
CREATE TABLE t2 LIKE t1;
12
 
SHOW STATUS LIKE 'Handler_write';
13
 
INSERT INTO t2 SELECT * FROM t1;
14
 
SHOW STATUS LIKE 'Handler_write';
15
 
begin;
16
 
insert into t1 values (42);
17
 
rollback;
18
 
SHOW STATUS LIKE 'Handler_write';
19
 
DROP TABLE t1, t2;
20
 
SHOW STATUS LIKE 'Handler_write';
21
 
FLUSH STATUS;