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

« back to all changes in this revision

Viewing changes to plugin/memory/tests/t/heap_auto_increment.test

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-10-02 14:17:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: (2.1.17 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101002141748-m6vbfbfjhrw1153e
Tags: 2010.09.1802-1
* New upstream release.
* Removed pid-file argument hack.
* Updated GPL-2 address to be new address.
* Directly copy in drizzledump.1 since debian doesn't have sphinx 1.0 yet.
* Link to jquery from libjs-jquery. Add it as a depend.
* Add drizzled.8 symlink to the install files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Test of auto_increment;  The test for BDB tables is in bdb.test
 
3
#
 
4
 
 
5
--disable_warnings
 
6
drop table if exists t1;
 
7
--enable_warnings
 
8
 
 
9
create temporary table t1 (a int not null auto_increment,b int, primary key (a)) engine=MEMORY auto_increment=3;
 
10
insert into t1 values (1,1),(NULL,3),(NULL,4);
 
11
delete from t1 where a=4;
 
12
insert into t1 values (NULL,5),(NULL,6);
 
13
select * from t1;
 
14
delete from t1 where a=6;
 
15
replace t1 values (3,1);
 
16
ALTER TABLE t1 add c int;
 
17
replace t1 values (3,3,3);
 
18
insert into t1 values (NULL,7,7);
 
19
update t1 set a=8,b=b+1,c=c+1 where a=7;
 
20
insert into t1 values (NULL,9,9);
 
21
select * from t1;
 
22
drop table t1;
 
23
 
 
24
create temporary table t1 (
 
25
  skey int NOT NULL auto_increment PRIMARY KEY,
 
26
  sval char(20)
 
27
) engine=MEMORY;
 
28
insert into t1 values (NULL, "hello");
 
29
insert into t1 values (NULL, "hey");
 
30
select * from t1;
 
31
select _rowid,t1._rowid,skey,sval from t1;
 
32
drop table t1;
 
33
 
 
34
# End of 4.1 tests