~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/show_check.test

  • Committer: Brian Aker
  • Date: 2009-07-12 00:49:18 UTC
  • mfrom: (1063.9.51 brian-tmp-fix)
  • Revision ID: brian@gaz-20090712004918-chprmyj387ex6l8a
Merge Stewart

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
show open tables;
117
117
drop table t1;
118
118
 
119
 
create table t1 (a int not null, b VARCHAR(10), INDEX (b) ) AVG_ROW_LENGTH=10 CHECKSUM=1 COMMENT="test" ENGINE=MYISAM MIN_ROWS=10 MAX_ROWS=100 PACK_KEYS=1 DELAY_KEY_WRITE=1 ROW_FORMAT=fixed;
 
119
create temporary table t1 (a int not null, b VARCHAR(10), INDEX (b) ) AVG_ROW_LENGTH=10 CHECKSUM=1 COMMENT="test" ENGINE=MYISAM MIN_ROWS=10 MAX_ROWS=100 PACK_KEYS=1 DELAY_KEY_WRITE=1 ROW_FORMAT=fixed;
120
120
show create table t1;
121
121
alter table t1 MAX_ROWS=200 ROW_FORMAT=dynamic PACK_KEYS=0;
122
122
show create table t1;
132
132
#
133
133
# Do a create table that tries to cover all types and options
134
134
#
135
 
create table t1 (
 
135
create temporary table t1 (
136
136
type_int int,
137
137
type_bigint bigint,
138
138
type_decimal decimal(5,2),
270
270
CREATE TABLE t1 (i int, KEY USING BTREE (i)) ENGINE=MEMORY;
271
271
SHOW CREATE TABLE t1;
272
272
DROP TABLE t1;
273
 
CREATE TABLE t1 (i int, KEY (i)) ENGINE=MyISAM;
 
273
CREATE TEMPORARY TABLE t1 (i int, KEY (i)) ENGINE=MyISAM;
274
274
SHOW CREATE TABLE t1;
275
275
DROP TABLE t1;
276
 
CREATE TABLE t1 (i int, KEY USING BTREE (i)) ENGINE=MyISAM;
 
276
CREATE TEMPORARY TABLE t1 (i int, KEY USING BTREE (i)) ENGINE=MyISAM;
277
277
SHOW CREATE TABLE t1;
278
278
DROP TABLE t1;
279
279
# Test that when an index is created with the default key algorithm and
280
280
# altered to another storage engine, it gets the default key algorithm
281
281
# for that storage engine, but when it is specified, the specified type is
282
282
# preserved.
283
 
CREATE TABLE t1 (i int, KEY (i)) ENGINE=MyISAM;
 
283
CREATE TEMPORARY TABLE t1 (i int, KEY (i)) ENGINE=MyISAM;
284
284
SHOW CREATE TABLE t1;
285
285
ALTER TABLE t1 ENGINE=MEMORY;
286
286
SHOW CREATE TABLE t1;
287
287
DROP TABLE t1;
288
 
CREATE TABLE t1 (i int, KEY USING BTREE (i)) ENGINE=MyISAM;
 
288
CREATE TEMPORARY TABLE t1 (i int, KEY USING BTREE (i)) ENGINE=MyISAM;
289
289
SHOW CREATE TABLE t1;
290
290
ALTER TABLE t1 ENGINE=MEMORY;
291
291
SHOW CREATE TABLE t1;