~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to plugin/haildb/tests/t/replace.test

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# Test of REPLACE with MyISAM and MEMORY
3
 
#
4
 
 
5
 
--disable_warnings
6
 
drop table if exists t1;
7
 
--enable_warnings
8
 
 
9
 
#
10
 
# Test when using replace on a key that has used up it's whole range
11
 
#
12
 
 
13
 
create table t1 (a int not null auto_increment primary key, b char(20) default "default_value");
14
 
insert into t1 values (126,"first"),(63, "middle"),(1,"last");
15
 
--error ER_DUP_ENTRY, ER_DUP_KEY
16
 
insert into t1 values (1,"error");
17
 
replace into t1 values (1,"error");
18
 
replace into t1 values (126,"first updated");
19
 
replace into t1 values (63,default);
20
 
select * from t1 order by a;
21
 
drop table t1;
22
 
 
23
 
# End of 4.1 tests