~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/key.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:
159
159
# (Failed for Greg Valure)
160
160
#
161
161
 
162
 
CREATE TABLE t1 (
 
162
CREATE TEMPORARY TABLE t1 (
163
163
  a tinytext NOT NULL,
164
164
  b int NOT NULL default '0',
165
165
  PRIMARY KEY (a(32),b)
200
200
# Test of key read with primary key (Bug #3497)
201
201
#
202
202
 
203
 
CREATE TABLE t1 (id int auto_increment, name char(50), primary key (id)) engine=myisam;
 
203
CREATE TEMPORARY TABLE t1 (id int auto_increment, name char(50), primary key (id)) engine=myisam;
204
204
insert into t1 (name) values ('a'), ('b'),('c'),('d'),('e'),('f'),('g');
205
205
explain select 1 from t1 where id =2;
206
206
explain select 1 from t1 where id =2 or id=3;
225
225
# UNIQUE prefix keys and multi-byte charsets
226
226
#
227
227
 
228
 
create table t1 (c varchar(30), t text, unique (c(2)), unique (t(3))) engine=myisam;
 
228
create temporary table t1 (c varchar(30), t text, unique (c(2)), unique (t(3))) engine=myisam;
229
229
show create table t1;
230
230
insert t1 values ('cccc', 'tttt'),
231
231
  (0xD0B1212223D0B1D0B1D0B1D0B1D0B1, 0xD0B1D0B1212223D0B1D0B1D0B1D0B1),
248
248
# BUG#6151 - myisam index corruption
249
249
#
250
250
DROP TABLE IF EXISTS t1;
251
 
CREATE TABLE t1 (
 
251
CREATE TEMPORARY TABLE t1 (
252
252
  c1 int,
253
253
  c2 varbinary(240),
254
254
  UNIQUE KEY (c1),
328
328
# Bug#12565 - ERROR 1034 when running simple UPDATE or DELETE 
329
329
#             on large MyISAM table
330
330
#
331
 
create table t1 (
 
331
create temporary table t1 (
332
332
  c1 int,
333
333
  c2 varchar(20) not null,
334
334
  primary key (c1),
434
434
# Bug #20604: Test for disabled keys with aggregate functions and FORCE INDEX.
435
435
#
436
436
 
437
 
CREATE TABLE t1( a int, KEY(a) ) ENGINE=MyISAM;
 
437
CREATE TEMPORARY TABLE t1( a int, KEY(a) ) ENGINE=MyISAM;
438
438
INSERT INTO t1 VALUES( 1 );
439
439
ALTER TABLE t1 DISABLE KEYS;
440
440
EXPLAIN SELECT MAX(a) FROM t1 FORCE INDEX(a);