~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/delete.test

  • Committer: Stewart Smith
  • Date: 2009-06-16 00:45:15 UTC
  • mto: (1119.2.6 merge)
  • mto: This revision was merged to the branch mainline in revision 1124.
  • Revision ID: stewart@flamingspork.com-20090616004515-bgr8e62psvn2820l
make snowman test not leave tables behind after running

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
 
72
72
CREATE TEMPORARY TABLE t1 (
73
73
  bool     char(0) default NULL,
74
 
  not_null varchar(20) NOT NULL default '',
 
74
  not_null varchar(20) binary NOT NULL default '',
75
75
  misc     integer not null,
76
76
  PRIMARY KEY  (not_null)
77
77
) ENGINE=MyISAM;
109
109
select * from t11;
110
110
--sorted_result
111
111
select * from t12;
112
 
--error ER_SUBQUERY_NO_1_ROW
 
112
-- error 1242
113
113
delete from t11 where t11.b <> (select b from t2 where t11.a < t2.a);
114
114
select * from t11;
115
 
 
116
 
# PBXT doesn't currently support DELETE IGNORE and turns it into plain DELETE
117
 
if (`select if (@@storage_engine = 'PBXT', 0, 1)`) { 
118
 
  delete ignore from t11 where t11.b <> (select b from t2 where t11.a < t2.a);
119
 
}
 
115
delete ignore from t11 where t11.b <> (select b from t2 where t11.a < t2.a);
120
116
select * from t11;
121
117
drop table t11, t12, t2;
122
118
 
247
243
CREATE TABLE db2.t2 AS SELECT * FROM db2.t1;
248
244
CREATE TABLE t1 AS SELECT * FROM db2.t2;
249
245
CREATE TABLE t2 AS SELECT * FROM t1;
250
 
 
251
 
DROP DATABASE db1;
252
 
DROP DATABASE db2;
253
 
DROP TABLE t1, t2;