~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/mysql-test/innodb-autoinc.result

  • Committer: Daniel Nichter
  • Date: 2011-10-23 16:01:37 UTC
  • mto: This revision was merged to the branch mainline in revision 2448.
  • Revision ID: daniel@percona.com-20111023160137-7ac3blgz8z4tf8za
Add Administration Getting Started and Logging.  Capitalize SQL clause keywords.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
drop table if exists t1;
2
 
CREATE TABLE t1 (c1 BIGINT PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=InnoDB;
3
 
INSERT INTO t1 VALUES (9223372036854775807, null);
4
 
INSERT INTO t1 (c2) VALUES ('innodb');
5
 
Got one of the listed errors
6
 
SELECT * FROM t1;
7
 
c1      c2
8
 
9223372036854775807     NULL
9
 
DROP TABLE t1;
10
 
CREATE TABLE t1 (c1 TINYINT PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=InnoDB;
11
 
INSERT INTO t1 VALUES (127, null);
12
 
INSERT INTO t1 (c2) VALUES ('innodb');
13
 
Got one of the listed errors
14
 
SELECT * FROM t1;
15
 
c1      c2
16
 
127     NULL
17
 
DROP TABLE t1;
18
 
CREATE TABLE t1 (c1 TINYINT UNSIGNED PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=InnoDB;
19
 
INSERT INTO t1 VALUES (255, null);
20
 
INSERT INTO t1 (c2) VALUES ('innodb');
21
 
Got one of the listed errors
22
 
SELECT * FROM t1;
23
 
c1      c2
24
 
255     NULL
25
 
DROP TABLE t1;
26
 
CREATE TABLE t1 (c1 SMALLINT PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=InnoDB;
27
 
INSERT INTO t1 VALUES (32767, null);
28
 
INSERT INTO t1 (c2) VALUES ('innodb');
29
 
Got one of the listed errors
30
 
SELECT * FROM t1;
31
 
c1      c2
32
 
32767   NULL
33
 
DROP TABLE t1;
34
 
CREATE TABLE t1 (c1 SMALLINT UNSIGNED PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=InnoDB;
35
 
INSERT INTO t1 VALUES (65535, null);
36
 
INSERT INTO t1 (c2) VALUES ('innodb');
37
 
Got one of the listed errors
38
 
SELECT * FROM t1;
39
 
c1      c2
40
 
65535   NULL
41
 
DROP TABLE t1;
42
 
CREATE TABLE t1 (c1 MEDIUMINT PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=InnoDB;
43
 
INSERT INTO t1 VALUES (8388607, null);
44
 
INSERT INTO t1 (c2) VALUES ('innodb');
45
 
Got one of the listed errors
46
 
SELECT * FROM t1;
47
 
c1      c2
48
 
8388607 NULL
49
 
DROP TABLE t1;
50
 
CREATE TABLE t1 (c1 MEDIUMINT UNSIGNED PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=InnoDB;
51
 
INSERT INTO t1 VALUES (16777215, null);
52
 
INSERT INTO t1 (c2) VALUES ('innodb');
53
 
Got one of the listed errors
54
 
SELECT * FROM t1;
55
 
c1      c2
56
 
16777215        NULL
57
 
DROP TABLE t1;
58
 
CREATE TABLE t1 (c1 INT PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=InnoDB;
59
 
INSERT INTO t1 VALUES (2147483647, null);
60
 
INSERT INTO t1 (c2) VALUES ('innodb');
61
 
Got one of the listed errors
62
 
SELECT * FROM t1;
63
 
c1      c2
64
 
2147483647      NULL
65
 
DROP TABLE t1;
66
 
CREATE TABLE t1 (c1 INT UNSIGNED PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=InnoDB;
67
 
INSERT INTO t1 VALUES (4294967295, null);
68
 
INSERT INTO t1 (c2) VALUES ('innodb');
69
 
Got one of the listed errors
70
 
SELECT * FROM t1;
71
 
c1      c2
72
 
4294967295      NULL
73
 
DROP TABLE t1;
74
 
CREATE TABLE t1 (c1 BIGINT PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=InnoDB;
75
 
INSERT INTO t1 VALUES (9223372036854775807, null);
76
 
INSERT INTO t1 (c2) VALUES ('innodb');
77
 
Got one of the listed errors
78
 
SELECT * FROM t1;
79
 
c1      c2
80
 
9223372036854775807     NULL
81
 
DROP TABLE t1;
82
 
CREATE TABLE t1 (c1 BIGINT UNSIGNED PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=InnoDB;
83
 
INSERT INTO t1 VALUES (18446744073709551615, null);
84
 
INSERT INTO t1 (c2) VALUES ('innodb');
85
 
Got one of the listed errors
86
 
SELECT * FROM t1;
87
 
c1      c2
88
 
18446744073709551615    NULL
89
 
DROP TABLE t1;