~ubuntu-branches/ubuntu/lucid/mysql-dfsg-5.1/lucid-security

« back to all changes in this revision

Viewing changes to mysql-test/suite/engines/funcs/r/in_insert_select_unique_violation.result

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 22:33:55 UTC
  • mto: (1.2.1) (37.1.1 lucid-security)
  • mto: This revision was merged to the branch mainline in revision 36.
  • Revision ID: package-import@ubuntu.com-20120222223355-ku1tb4r70osci6v2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
DROP TABLE IF EXISTS t1,t2;
 
2
CREATE TABLE t1(c1 TINYINT NOT NULL);
 
3
CREATE TABLE t2(c1 TINYINT NOT NULL PRIMARY KEY);
 
4
INSERT INTO t1 (c1) VALUES(0),(1),(2),(3),(3),(4),(4),(5);
 
5
INSERT INTO t2 SELECT * FROM t1;
 
6
ERROR 23000: Duplicate entry '3' for key 'PRIMARY'
 
7
TRUNCATE TABLE t2;
 
8
INSERT INTO t2 SELECT * FROM t1 WHERE c1 >= 3;
 
9
ERROR 23000: Duplicate entry '3' for key 'PRIMARY'
 
10
TRUNCATE TABLE t2;
 
11
DROP TABLE t1,t2;
 
12
CREATE TABLE t1(c1 SMALLINT NOT NULL);
 
13
CREATE TABLE t2(c1 SMALLINT NOT NULL PRIMARY KEY);
 
14
INSERT INTO t1 (c1) VALUES(0),(1),(2),(3),(3),(4),(4),(5);
 
15
INSERT INTO t2 SELECT * FROM t1;
 
16
ERROR 23000: Duplicate entry '3' for key 'PRIMARY'
 
17
TRUNCATE TABLE t2;
 
18
INSERT INTO t2 SELECT * FROM t1 WHERE c1 >= 3;
 
19
ERROR 23000: Duplicate entry '3' for key 'PRIMARY'
 
20
TRUNCATE TABLE t2;
 
21
DROP TABLE t1,t2;
 
22
CREATE TABLE t1(c1 MEDIUMINT NOT NULL);
 
23
CREATE TABLE t2(c1 MEDIUMINT NOT NULL PRIMARY KEY);
 
24
INSERT INTO t1 (c1) VALUES(0),(1),(2),(3),(3),(4),(4),(5);
 
25
INSERT INTO t2 SELECT * FROM t1;
 
26
ERROR 23000: Duplicate entry '3' for key 'PRIMARY'
 
27
TRUNCATE TABLE t2;
 
28
INSERT INTO t2 SELECT * FROM t1 WHERE c1 >= 3;
 
29
ERROR 23000: Duplicate entry '3' for key 'PRIMARY'
 
30
TRUNCATE TABLE t2;
 
31
DROP TABLE t1,t2;
 
32
CREATE TABLE t1(c1 INT NOT NULL);
 
33
CREATE TABLE t2(c1 INT NOT NULL PRIMARY KEY);
 
34
INSERT INTO t1 (c1) VALUES(0),(1),(2),(3),(3),(4),(4),(5);
 
35
INSERT INTO t2 SELECT * FROM t1;
 
36
ERROR 23000: Duplicate entry '3' for key 'PRIMARY'
 
37
TRUNCATE TABLE t2;
 
38
INSERT INTO t2 SELECT * FROM t1 WHERE c1 >= 3;
 
39
ERROR 23000: Duplicate entry '3' for key 'PRIMARY'
 
40
TRUNCATE TABLE t2;
 
41
DROP TABLE t1,t2;
 
42
CREATE TABLE t1(c1 INTEGER NOT NULL);
 
43
CREATE TABLE t2(c1 INTEGER NOT NULL PRIMARY KEY);
 
44
INSERT INTO t1 (c1) VALUES(0),(1),(2),(3),(3),(4),(4),(5);
 
45
INSERT INTO t2 SELECT * FROM t1;
 
46
ERROR 23000: Duplicate entry '3' for key 'PRIMARY'
 
47
TRUNCATE TABLE t2;
 
48
INSERT INTO t2 SELECT * FROM t1 WHERE c1 >= 3;
 
49
ERROR 23000: Duplicate entry '3' for key 'PRIMARY'
 
50
TRUNCATE TABLE t2;
 
51
DROP TABLE t1,t2;
 
52
CREATE TABLE t1(c1 BIGINT NOT NULL);
 
53
CREATE TABLE t2(c1 BIGINT NOT NULL PRIMARY KEY);
 
54
INSERT INTO t1 (c1) VALUES(0),(1),(2),(3),(3),(4),(4),(5);
 
55
INSERT INTO t2 SELECT * FROM t1;
 
56
ERROR 23000: Duplicate entry '3' for key 'PRIMARY'
 
57
TRUNCATE TABLE t2;
 
58
INSERT INTO t2 SELECT * FROM t1 WHERE c1 >= 3;
 
59
ERROR 23000: Duplicate entry '3' for key 'PRIMARY'
 
60
TRUNCATE TABLE t2;
 
61
DROP TABLE t1,t2;