~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/delete.result

  • Committer: Jay Pipes
  • Date: 2009-02-04 15:44:25 UTC
  • mfrom: (829 drizzle)
  • mto: This revision was merged to the branch mainline in revision 830.
  • Revision ID: jpipes@serialcoder-20090204154425-th8xfk2ujz2y8xwg
Merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
184
184
drop table t1;
185
185
CREATE TABLE t1 (
186
186
`date` date ,
 
187
`time` time ,
187
188
`seq` int NOT NULL auto_increment,
188
189
PRIMARY KEY  (`seq`),
189
190
KEY `seq` (`seq`),
 
191
KEY `time` (`time`),
190
192
KEY `date` (`date`)
191
193
);
192
 
DELETE FROM t1 ORDER BY date ASC LIMIT 1;
 
194
DELETE FROM t1 ORDER BY date ASC, time ASC LIMIT 1;
193
195
drop table t1;
194
196
End of 4.1 tests
195
197
CREATE TABLE t1 (a int not null,b int not null);
212
214
select * from t3;
213
215
a       b
214
216
drop table t1,t2,t3;
 
217
create table t1(a date not null);
 
218
insert into t1 values (0);
 
219
select * from t1 where a is null;
 
220
a
 
221
0000-00-00
 
222
delete from t1 where a is null;
 
223
select count(*) from t1;
 
224
count(*)
 
225
0
 
226
drop table t1;
215
227
CREATE TABLE t1 (a INT);
216
228
INSERT INTO t1 VALUES (1);
217
229
DELETE FROM t1 ORDER BY x;