~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/regression_385808.result

  • Committer: Monty Taylor
  • Date: 2008-09-16 00:00:48 UTC
  • mto: This revision was merged to the branch mainline in revision 391.
  • Revision ID: monty@inaugust.com-20080916000048-3rvrv3gv9l0ad3gs
Fixed copyright headers in drizzled/

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
create temporary table t1 (v varchar(32) not null);
2
 
insert into t1 values ('def'),('abc'),('hij'),('3r4f');
3
 
select * from t1;
4
 
v
5
 
def
6
 
abc
7
 
hij
8
 
3r4f
9
 
alter table t1 change v v2 varchar(32);
10
 
select * from t1;
11
 
v2
12
 
def
13
 
abc
14
 
hij
15
 
3r4f
16
 
alter table t1 change v2 v varchar(64);
17
 
select * from t1;
18
 
v
19
 
def
20
 
abc
21
 
hij
22
 
3r4f
23
 
update t1 set v = 'lmn' where v = 'hij';
24
 
select * from t1;
25
 
v
26
 
def
27
 
abc
28
 
lmn
29
 
3r4f
30
 
alter table t1 add i int auto_increment not null primary key first;
31
 
select * from t1;
32
 
i       v
33
 
1       def
34
 
2       abc
35
 
3       lmn
36
 
4       3r4f
37
 
update t1 set i=5 where i=3;
38
 
select * from t1;
39
 
i       v
40
 
1       def
41
 
2       abc
42
 
4       3r4f
43
 
5       lmn
44
 
alter table t1 change i i bigint;
45
 
select * from t1;
46
 
i       v
47
 
1       def
48
 
2       abc
49
 
4       3r4f
50
 
5       lmn
51
 
alter table t1 add unique key (i, v);
52
 
select * from t1 where i between 2 and 4 and v in ('def','3r4f','lmn');
53
 
i       v
54
 
4       3r4f
55
 
drop table t1;
56
 
CREATE TABLE t1 (a INTEGER AUTO_INCREMENT PRIMARY KEY, b INTEGER NOT NULL);
57
 
INSERT IGNORE INTO t1 (b) VALUES (5);
58
 
CREATE TABLE IF NOT EXISTS t2 (a INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY)
59
 
SELECT a FROM t1;
60
 
CREATE TABLE IF NOT EXISTS t2 (a INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY)
61
 
SELECT a FROM t1;
62
 
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
63
 
CREATE TABLE IF NOT EXISTS t2 (a INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY)
64
 
SELECT a FROM t1;
65
 
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
66
 
DROP TABLE t1, t2;