~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/replace.test

  • Committer: Monty Taylor
  • Date: 2008-12-24 01:49:53 UTC
  • mto: This revision was merged to the branch mainline in revision 751.
  • Revision ID: mordred@inaugust.com-20081224014953-rc9p7a162p74y889
Fixed connect.test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
--enable_warnings
8
8
 
9
9
CREATE TABLE t1 (
10
 
  gesuchnr int(11) DEFAULT '0' NOT NULL,
11
 
  benutzer_id int(11) DEFAULT '0' NOT NULL,
 
10
  gesuchnr int DEFAULT '0' NOT NULL,
 
11
  benutzer_id int DEFAULT '0' NOT NULL,
12
12
  PRIMARY KEY (gesuchnr,benutzer_id)
13
13
);
14
14
 
23
23
# Test when using replace on a key that has used up it's whole range
24
24
#
25
25
 
26
 
create table t1 (a tinyint not null auto_increment primary key, b char(20) default "default_value");
 
26
create table t1 (a int not null auto_increment primary key, b char(20) default "default_value");
27
27
insert into t1 values (126,"first"),(63, "middle"),(1,"last");
28
28
--error ER_DUP_ENTRY
29
29
insert into t1 values (1,"error");
31
31
#replace into t1 values (1,"error");
32
32
replace into t1 values (126,"first updated");
33
33
replace into t1 values (63,default);
34
 
select * from t1;
 
34
select * from t1 order by a;
35
35
drop table t1;
36
36
 
37
37
# End of 4.1 tests