~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/t/in_number_unique_constraint_ignore.test

  • 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
--disable_warnings
 
2
DROP TABLE IF EXISTS t1;
 
3
--enable_warnings
 
4
CREATE TABLE t1(c1 TINYINT NULL UNIQUE);
 
5
INSERT INTO t1 (c1) VALUES(10);
 
6
INSERT INTO t1 (c1) VALUES(11);
 
7
INSERT IGNORE INTO t1 (c1) VALUES(10);
 
8
SELECT * FROM t1;
 
9
DROP TABLE t1;
 
10
CREATE TABLE t1(c1 SMALLINT NULL UNIQUE);
 
11
INSERT INTO t1 (c1) VALUES(10);
 
12
INSERT INTO t1 (c1) VALUES(11);
 
13
INSERT IGNORE INTO t1 (c1) VALUES(10);
 
14
SELECT * FROM t1;
 
15
DROP TABLE t1;
 
16
CREATE TABLE t1(c1 MEDIUMINT NULL UNIQUE);
 
17
INSERT INTO t1 (c1) VALUES(10);
 
18
INSERT INTO t1 (c1) VALUES(11);
 
19
INSERT IGNORE INTO t1 (c1) VALUES(10);
 
20
SELECT * FROM t1;
 
21
DROP TABLE t1;
 
22
CREATE TABLE t1(c1 INT NULL UNIQUE);
 
23
INSERT INTO t1 (c1) VALUES(10);
 
24
INSERT INTO t1 (c1) VALUES(11);
 
25
INSERT IGNORE INTO t1 (c1) VALUES(10);
 
26
SELECT * FROM t1;
 
27
DROP TABLE t1;
 
28
CREATE TABLE t1(c1 INTEGER NULL UNIQUE);
 
29
INSERT INTO t1 (c1) VALUES(10);
 
30
INSERT INTO t1 (c1) VALUES(11);
 
31
INSERT IGNORE INTO t1 (c1) VALUES(10);
 
32
SELECT * FROM t1;
 
33
DROP TABLE t1;
 
34
CREATE TABLE t1(c1 BIGINT NULL UNIQUE);
 
35
INSERT INTO t1 (c1) VALUES(10);
 
36
INSERT INTO t1 (c1) VALUES(11);
 
37
INSERT IGNORE INTO t1 (c1) VALUES(10);
 
38
SELECT * FROM t1;
 
39
DROP TABLE t1;
 
40
CREATE TABLE t1(c1 DECIMAL NULL UNIQUE);
 
41
INSERT INTO t1 (c1) VALUES(10);
 
42
INSERT INTO t1 (c1) VALUES(11);
 
43
INSERT IGNORE INTO t1 (c1) VALUES(10);
 
44
SELECT * FROM t1;
 
45
DROP TABLE t1;
 
46
CREATE TABLE t1(c1 DEC NULL UNIQUE);
 
47
INSERT INTO t1 (c1) VALUES(10);
 
48
INSERT INTO t1 (c1) VALUES(11);
 
49
INSERT IGNORE INTO t1 (c1) VALUES(10);
 
50
SELECT * FROM t1;
 
51
DROP TABLE t1;
 
52
CREATE TABLE t1(c1 FIXED NULL UNIQUE);
 
53
INSERT INTO t1 (c1) VALUES(10);
 
54
INSERT INTO t1 (c1) VALUES(11);
 
55
INSERT IGNORE INTO t1 (c1) VALUES(10);
 
56
SELECT * FROM t1;
 
57
DROP TABLE t1;
 
58
CREATE TABLE t1(c1 NUMERIC NULL UNIQUE);
 
59
INSERT INTO t1 (c1) VALUES(10);
 
60
INSERT INTO t1 (c1) VALUES(11);
 
61
INSERT IGNORE INTO t1 (c1) VALUES(10);
 
62
SELECT * FROM t1;
 
63
DROP TABLE t1;
 
64
CREATE TABLE t1(c1 DOUBLE NULL UNIQUE);
 
65
INSERT INTO t1 (c1) VALUES(10);
 
66
INSERT INTO t1 (c1) VALUES(11);
 
67
INSERT IGNORE INTO t1 (c1) VALUES(10);
 
68
SELECT * FROM t1;
 
69
DROP TABLE t1;
 
70
CREATE TABLE t1(c1 REAL NULL UNIQUE);
 
71
INSERT INTO t1 (c1) VALUES(10);
 
72
INSERT INTO t1 (c1) VALUES(11);
 
73
INSERT IGNORE INTO t1 (c1) VALUES(10);
 
74
SELECT * FROM t1;
 
75
DROP TABLE t1;
 
76
CREATE TABLE t1(c1 DOUBLE PRECISION NULL UNIQUE);
 
77
INSERT INTO t1 (c1) VALUES(10);
 
78
INSERT INTO t1 (c1) VALUES(11);
 
79
INSERT IGNORE INTO t1 (c1) VALUES(10);
 
80
SELECT * FROM t1;
 
81
DROP TABLE t1;
 
82
CREATE TABLE t1(c1 FLOAT NULL UNIQUE);
 
83
INSERT INTO t1 (c1) VALUES(10);
 
84
INSERT INTO t1 (c1) VALUES(11);
 
85
INSERT IGNORE INTO t1 (c1) VALUES(10);
 
86
SELECT * FROM t1;
 
87
DROP TABLE t1;
 
88