~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/update.test

  • Committer: Monty Taylor
  • Date: 2009-03-08 23:45:12 UTC
  • mto: (923.2.1 mordred)
  • mto: This revision was merged to the branch mainline in revision 921.
  • Revision ID: mordred@inaugust.com-20090308234512-tqkygxtu1iaig23s
Removed C99 isnan() usage, which allows us to remove the util/math.{cc,h} workarounds. Yay for standards!

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
225
227
select * from t1;
226
228
update t1 set a=a+10,b=1 order by a limit 3;
227
229
update t1 set a=a+11,b=2 order by a limit 3;
233
235
#
234
236
# Bug#14186 select datefield is null not updated
235
237
#
236
 
create table t1 (f1 date not null);
237
 
insert into t1 values('2000-01-01'),('0000-00-00');
 
238
create table t1 (f1 date NULL);
 
239
insert into t1 values('2000-01-01'),(NULL);
238
240
update t1 set f1='2002-02-02' where f1 is null;
239
241
select * from t1;
240
242
drop table t1;
291
293
CREATE TABLE t1 (
292
294
  request_id int NOT NULL auto_increment,
293
295
  user_id varchar(12) default NULL,
294
 
  time_stamp datetime NOT NULL default '0000-00-00 00:00:00',
 
296
  time_stamp datetime,
295
297
  ip_address varchar(15) default NULL,
296
298
  PRIMARY KEY (request_id),
297
299
  KEY user_id_2 (user_id,time_stamp)
364
366
update t2 set a=id;
365
367
insert into t1 select * from t2;
366
368
 
 
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....
367
372
# Check that the number of matched rows is correct when the temporary
368
373
# table is small enough to not be converted to MyISAM
369
374
select count(*) from t1 join t2 on (t1.a=t2.a);