~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/update.test

  • Committer: Brian Aker
  • Date: 2008-10-06 06:47:29 UTC
  • Revision ID: brian@tangent.org-20081006064729-2i9mhjkzyvow9xsm
RemoveĀ uint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
222
222
delete from t1 order by a limit 1;
223
223
show status like 'handler_read%';
224
224
 
225
 
# PBXT: this select returns a different result to
226
 
# innodb because the 2 updates above change different rows
227
225
select * from t1;
228
226
update t1 set a=a+10,b=1 order by a limit 3;
229
227
update t1 set a=a+11,b=2 order by a limit 3;
235
233
#
236
234
# Bug#14186 select datefield is null not updated
237
235
#
238
 
create table t1 (f1 date NULL);
239
 
insert into t1 values('2000-01-01'),(NULL);
 
236
create table t1 (f1 date not null);
 
237
insert into t1 values('2000-01-01'),('0000-00-00');
240
238
update t1 set f1='2002-02-02' where f1 is null;
241
239
select * from t1;
242
240
drop table t1;
293
291
CREATE TABLE t1 (
294
292
  request_id int NOT NULL auto_increment,
295
293
  user_id varchar(12) default NULL,
296
 
  time_stamp datetime,
 
294
  time_stamp datetime NOT NULL default '0000-00-00 00:00:00',
297
295
  ip_address varchar(15) default NULL,
298
296
  PRIMARY KEY (request_id),
299
297
  KEY user_id_2 (user_id,time_stamp)
366
364
update t2 set a=id;
367
365
insert into t1 select * from t2;
368
366
 
369
 
# PBXT: Rows changed are different here between InnoDB and PBXT
370
 
# because PBXT does not update the rows that are not modified!
371
 
# InnoDB seems to do this....
372
367
# Check that the number of matched rows is correct when the temporary
373
368
# table is small enough to not be converted to MyISAM
374
369
select count(*) from t1 join t2 on (t1.a=t2.a);