~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/subselect.result

Read Fields out of proto instead of FRM.

As non-radioactive fallout:
- no implicit defaults (see http://bugs.mysql.com/bug.php?id=43151)
- no real defaults for BLOB yet... but this paves the way (and it shouldn't be too hard now)

As radioactive fallout:
- parse_table_proto is approaching the length of War and Peace
- handling of corrupted proto is about non-existant. abort() is not ideal

Show diffs side-by-side

added added

removed removed

Lines of Context:
921
921
CREATE TABLE `t1` (
922
922
`mot` varchar(30) NOT NULL default '',
923
923
`topic` bigint NOT NULL default '0',
924
 
`date` date NULL,
 
924
`date` date NULL DEFAULT '2009-01-20',
925
925
`pseudo` varchar(35) NOT NULL default '',
926
926
PRIMARY KEY  (`mot`,`pseudo`,`date`,`topic`),
927
927
KEY `pseudo` (`pseudo`,`date`,`topic`),
930
930
CREATE TABLE `t2` (
931
931
`mot` varchar(30) NOT NULL default '',
932
932
`topic` bigint NOT NULL default '0',
933
 
`date` date NULL,
 
933
`date` date NULL default '1997-08-29',
934
934
`pseudo` varchar(35) NOT NULL default '',
935
935
PRIMARY KEY  (`mot`,`pseudo`,`date`,`topic`),
936
936
KEY `pseudo` (`pseudo`,`date`,`topic`),
951
951
2
952
952
select * from t1;
953
953
mot     topic   date    pseudo
954
 
joce    1       0000-00-00      joce
955
 
test    2       0000-00-00      test
 
954
joce    1       2009-01-20      joce
 
955
test    2       2009-01-20      test
956
956
DELETE FROM t1 WHERE topic IN (SELECT DISTINCT topic FROM t2 WHERE NOT
957
957
EXISTS(SELECT * FROM t3 WHERE numeropost=topic));
958
958
select * from t1;
959
959
mot     topic   date    pseudo
960
 
joce    1       0000-00-00      joce
 
960
joce    1       2009-01-20      joce
961
961
drop table t1, t2, t3;
962
962
SELECT * FROM (SELECT 1 as a,(SELECT a)) a;
963
963
a       (SELECT a)
993
993
SHOW CREATE TABLE t1;
994
994
Table   Create Table
995
995
t1      CREATE TABLE `t1` (
996
 
  `a` bigint NOT NULL DEFAULT '0'
 
996
  `a` bigint NOT NULL
997
997
) ENGINE=MyISAM
998
998
drop table t1;
999
999
create table t1 (a int) ENGINE=MyISAM;