~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/key.result

  • 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:
124
124
INSERT INTO t1 VALUES (1, 1, 1, 1, 'a');
125
125
ERROR 23000: Duplicate entry '1-1-1-1-a' for key 'PRIMARY'
126
126
drop table t1;
127
 
CREATE TABLE t1 (
 
127
CREATE TEMPORARY TABLE t1 (
128
128
a tinytext NOT NULL,
129
129
b int NOT NULL default '0',
130
130
PRIMARY KEY (a(32),b)
175
175
a       3
176
176
a       4
177
177
drop table t1;
178
 
CREATE TABLE t1 (id int auto_increment, name char(50), primary key (id)) engine=myisam;
 
178
CREATE TEMPORARY TABLE t1 (id int auto_increment, name char(50), primary key (id)) engine=myisam;
179
179
insert into t1 (name) values ('a'), ('b'),('c'),('d'),('e'),('f'),('g');
180
180
explain select 1 from t1 where id =2;
181
181
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
204
204
numeropost
205
205
1
206
206
drop table t1;
207
 
create table t1 (c varchar(30), t text, unique (c(2)), unique (t(3))) engine=myisam;
 
207
create temporary table t1 (c varchar(30), t text, unique (c(2)), unique (t(3))) engine=myisam;
208
208
show create table t1;
209
209
Table   Create Table
210
 
t1      CREATE TABLE `t1` (
 
210
t1      CREATE TEMPORARY TABLE `t1` (
211
211
  `c` varchar(30) DEFAULT NULL,
212
212
  `t` text,
213
213
  UNIQUE KEY `c` (`c`(2)),
240
240
DROP TABLE IF EXISTS t1;
241
241
Warnings:
242
242
Note    1051    Unknown table 't1'
243
 
CREATE TABLE t1 (
 
243
CREATE TEMPORARY TABLE t1 (
244
244
c1 int,
245
245
c2 varbinary(240),
246
246
UNIQUE KEY (c1),
313
313
  UNIQUE KEY `i2idx` (`i2`)
314
314
) ENGINE=InnoDB
315
315
drop table t1;
316
 
create table t1 (
 
316
create temporary table t1 (
317
317
c1 int,
318
318
c2 varchar(20) not null,
319
319
primary key (c1),
448
448
alter table t1 add index i3 (c3), add index i2 (c2), add unique index i1 (c1);
449
449
ERROR 23000: Duplicate entry '1' for key 'i1'
450
450
drop table t1;
451
 
CREATE TABLE t1( a int, KEY(a) ) ENGINE=MyISAM;
 
451
CREATE TEMPORARY TABLE t1( a int, KEY(a) ) ENGINE=MyISAM;
452
452
INSERT INTO t1 VALUES( 1 );
453
453
ALTER TABLE t1 DISABLE KEYS;
454
454
EXPLAIN SELECT MAX(a) FROM t1 FORCE INDEX(a);