~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/subselect.result

  • Committer: Brian Aker
  • Date: 2011-01-26 00:31:58 UTC
  • mto: (2115.1.1 drizzle-build)
  • mto: This revision was merged to the branch mainline in revision 2116.
  • Revision ID: brian@tangent.org-20110126003158-wciipy0fd4i6tcxt
Next pass through of tests (remove number, use label for error).

Show diffs side-by-side

added added

removed removed

Lines of Context:
899
899
drop table t1,t2,t3;
900
900
#LIMIT is not supported now
901
901
#create table t1 (a float) ENGINE=MyISAM;
902
 
#-- error 1235
 
902
#--error ER_NOT_SUPPORTED_YET
903
903
#select 10.5 IN (SELECT * from t1 LIMIT 1);
904
 
#-- error 1235
 
904
#--error ER_NOT_SUPPORTED_YET
905
905
#select 10.5 IN (SELECT * from t1 LIMIT 1 UNION SELECT 1.5);
906
906
#drop table t1;
907
907
#
925
925
#select ROW(1, 1, 'a') IN (select a,b,c from t1 where c='b' or c='a');
926
926
#select ROW(1, 2, 'a') IN (select a,b,c from t1 where c='b' or c='a');
927
927
#select ROW(1, 1, 'a') IN (select b,a,c from t1 where c='b' or c='a');
928
 
#-- error 1235
 
928
#--error ER_NOT_SUPPORTED_YET
929
929
#select ROW(1, 1, 'a') IN (select b,a,c from t1 limit 2);
930
930
#drop table t1;
931
931
#test of uncacheable subqueries
1330
1330
#CREATE TABLE t1 (s1 CHAR(5) COLLATE latin1_german1_ci,
1331
1331
#                 s2 CHAR(5) COLLATE latin1_swedish_ci) ENGINE=MyISAM;
1332
1332
#INSERT INTO t1 VALUES ('z','?');
1333
 
#-- error 1267
 
1333
#--error ER_CANT_AGGREGATE_2COLLATIONS
1334
1334
#select * from t1 where s1 > (select max(s2) from t1);
1335
 
#-- error 1267
 
1335
#--error ER_CANT_AGGREGATE_2COLLATIONS
1336
1336
#select * from t1 where s1 > any (select max(s2) from t1);
1337
1337
#drop table t1;
1338
1338
#