~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/innodb.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:
443
443
5       2       0
444
444
drop table t1;
445
445
create table t1 (a int not null , b int, primary key (a)) engine = innodb;
446
 
create table t2 (a int not null , b int, primary key (a)) engine = myisam;
 
446
create TEMPORARY table t2 (a int not null , b int, primary key (a)) engine = myisam;
447
447
insert into t1 VALUES (1,3) , (2,3), (3,3);
448
448
select * from t1;
449
449
a       b
823
823
create database mysqltest;
824
824
create table mysqltest.t1 (a int not null) engine= innodb;
825
825
insert into mysqltest.t1 values(1);
826
 
create table mysqltest.t2 (a int not null) engine= myisam;
 
826
create TEMPORARY table mysqltest.t2 (a int not null) engine= myisam;
827
827
insert into mysqltest.t2 values(1);
828
828
create table mysqltest.t3 (a int not null) engine= heap;
829
829
insert into mysqltest.t3 values(1);
1024
1024
NULL    this is null
1025
1025
NULL    this is null
1026
1026
drop table t1;
1027
 
create table t1 (a varchar(10) not null) engine=myisam;
 
1027
create TEMPORARY table t1 (a varchar(10) not null) engine=myisam;
1028
1028
create table t2 (b varchar(10) not null unique) engine=innodb;
1029
1029
select t1.a from t1,t2 where t1.a=t2.b;
1030
1030
a
1183
1183
8       8
1184
1184
9       9
1185
1185
drop table t1,t2;
1186
 
CREATE TABLE t2 (   NEXT_T         BIGINT NOT NULL PRIMARY KEY) ENGINE=MyISAM;
 
1186
CREATE TEMPORARY TABLE t2 (   NEXT_T         BIGINT NOT NULL PRIMARY KEY) ENGINE=MyISAM;
1187
1187
CREATE TABLE t1 (  B_ID           INTEGER NOT NULL PRIMARY KEY) ENGINE=InnoDB;
1188
1188
SET AUTOCOMMIT=0;
1189
1189
INSERT INTO t1 ( B_ID ) VALUES ( 1 );
1351
1351
3524    Societe Test
1352
1352
3525    Fournisseur Test
1353
1353
drop table t1,t2;
1354
 
create table t1 (a int, b varchar(200), c text not null) checksum=1 engine=myisam;
 
1354
create TEMPORARY table t1 (a int, b varchar(200), c text not null) checksum=1 engine=myisam;
1355
1355
create table t2 (a int, b varchar(200), c text not null) checksum=0 engine=innodb;
1356
1356
create table t3 (a int, b varchar(200), c text not null) checksum=1 engine=innodb;
1357
1357
insert t1 values (1, "aaa", "bbb"), (NULL, "", "ccccc"), (0, NULL, "");
1726
1726
drop table if exists t1,t2,t3;
1727
1727
--- Testing varchar ---
1728
1728
--- Testing varchar ---
1729
 
create table t1 (v varchar(10), c char(10), t text);
 
1729
create  table t1 (v varchar(10), c char(10), t text);
1730
1730
insert into t1 values('+ ', '+ ', '+ ');
1731
1731
set @a=repeat(' ',20);
1732
1732
insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));
1744
1744
  `c` varchar(10) DEFAULT NULL,
1745
1745
  `t` text
1746
1746
) ENGINE=InnoDB
1747
 
create table t2 like t1;
 
1747
create  table t2 like t1;
1748
1748
show create table t2;
1749
1749
Table   Create Table
1750
1750
t2      CREATE TABLE `t2` (
1752
1752
  `c` varchar(10) DEFAULT NULL,
1753
1753
  `t` text
1754
1754
) ENGINE=InnoDB
1755
 
create table t3 select * from t1;
 
1755
create  table t3 select * from t1;
1756
1756
show create table t3;
1757
1757
Table   Create Table
1758
1758
t3      CREATE TABLE `t3` (
1791
1791
*+ *+ *+ *
1792
1792
*+         *+         *+         *
1793
1793
drop table t1,t2,t3;
1794
 
create table t1 (v varchar(10), c char(10), t text, key(v), key(c), key(t(10)));
 
1794
create  table t1 (v varchar(10), c char(10), t text, key(v), key(c), key(t(10)));
1795
1795
show create table t1;
1796
1796
Table   Create Table
1797
1797
t1      CREATE TABLE `t1` (
2222
2222
h       10
2223
2223
i       10
2224
2224
drop table t1;
2225
 
create table t1 (a char(10), unique (a));
 
2225
create  table t1 (a char(10), unique (a));
2226
2226
insert into t1 values ('a   ');
2227
2227
insert into t1 values ('a ');
2228
2228
ERROR 23000: Duplicate entry 'a ' for key 'a'
2252
2252
concat(a,'.')
2253
2253
a  .
2254
2254
drop table t1;
2255
 
create table t1 (v varchar(10), c char(10), t text, key(v(5)), key(c(5)), key(t(5)));
 
2255
create  table t1 (v varchar(10), c char(10), t text, key(v(5)), key(c(5)), key(t(5)));
2256
2256
show create table t1;
2257
2257
Table   Create Table
2258
2258
t1      CREATE TABLE `t1` (
2264
2264
  KEY `t` (`t`(5))
2265
2265
) ENGINE=InnoDB
2266
2266
drop table t1;
2267
 
create table t1 (v char(10));
 
2267
create  table t1 (v char(10));
2268
2268
show create table t1;
2269
2269
Table   Create Table
2270
2270
t1      CREATE TABLE `t1` (
2271
2271
  `v` varchar(10) DEFAULT NULL
2272
2272
) ENGINE=InnoDB
2273
2273
drop table t1;
2274
 
create table t1 (v varchar(10), c char(10)) row_format=fixed;
 
2274
create  table t1 (v varchar(10), c char(10)) row_format=fixed;
2275
2275
Warnings:
2276
2276
Warning 1478    InnoDB: assuming ROW_FORMAT=COMPACT.
2277
2277
show create table t1;
2286
2286
*a*a*
2287
2287
*a *a *
2288
2288
drop table t1;
2289
 
create table t1(a int, b varchar(12), key ba(b, a));
 
2289
create  table t1(a int, b varchar(12), key ba(b, a));
2290
2290
insert into t1 values (1, 'A'), (20, NULL);
2291
2291
explain select * from t1 where a=20 and b is null;
2292
2292
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra