~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/replace.result

  • Committer: Andy Lester
  • Date: 2008-08-09 05:23:39 UTC
  • mto: (266.1.29 use-replace-funcs)
  • mto: This revision was merged to the branch mainline in revision 287.
  • Revision ID: andy@petdance.com-20080809052339-iafoesszmesweq6b
use NULL, not 0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
drop table if exists t1;
2
 
create table t1 (a int not null auto_increment primary key, b char(20) default "default_value");
3
 
insert into t1 values (126,"first"),(63, "middle"),(1,"last");
4
 
insert into t1 values (1,"error");
5
 
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
6
 
replace into t1 values (126,"first updated");
7
 
replace into t1 values (63,default);
8
 
select * from t1 order by a;
9
 
a       b
10
 
1       last
11
 
63      default_value
12
 
126     first updated
13
 
drop table t1;