~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/key.test

  • Committer: Brian Aker
  • Date: 2008-09-21 12:42:22 UTC
  • Revision ID: brian@tangent.org-20080921124222-zhjb3i0aqoz9723u
Cleanup tiny and small int.

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
drop table t1;
156
156
 
157
157
#
158
 
# Test with blob + tinyint key
 
158
# Test with blob + int key
159
159
# (Failed for Greg Valure)
160
160
#
161
161
 
162
162
CREATE TABLE t1 (
163
163
  a tinytext NOT NULL,
164
 
  b tinyint(3) unsigned NOT NULL default '0',
 
164
  b int(3) unsigned NOT NULL default '0',
165
165
  PRIMARY KEY (a(32),b)
166
166
) ENGINE=MyISAM;
167
167
INSERT INTO t1 VALUES ('a',1),('a',2);
447
447
# Bug #20604: Test for disabled keys with aggregate functions and FORCE INDEX.
448
448
#
449
449
 
450
 
CREATE TABLE t1( a TINYINT, KEY(a) ) ENGINE=MyISAM;
 
450
CREATE TABLE t1( a int, KEY(a) ) ENGINE=MyISAM;
451
451
INSERT INTO t1 VALUES( 1 );
452
452
ALTER TABLE t1 DISABLE KEYS;
453
453
EXPLAIN SELECT MAX(a) FROM t1 FORCE INDEX(a);
467
467
CREATE TABLE t2 (
468
468
  a INTEGER auto_increment PRIMARY KEY,
469
469
  b INTEGER NOT NULL,
470
 
  c SMALLINT NOT NULL,
 
470
  c int NOT NULL,
471
471
  d DATETIME NOT NULL,
472
 
  e SMALLINT NOT NULL,
 
472
  e int NOT NULL,
473
473
  f INTEGER NOT NULL,
474
474
  g INTEGER NOT NULL,  
475
 
  h SMALLINT NOT NULL,
 
475
  h int NOT NULL,
476
476
  i INTEGER NOT NULL,
477
477
  j INTEGER NOT NULL,
478
478
  UNIQUE INDEX (b),