~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_string_pk_constraint_error.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 CHAR(10) NOT NULL PRIMARY KEY);
 
5
INSERT INTO t1 (c1) VALUES('abc');
 
6
INSERT INTO t1 (c1) VALUES('def');
 
7
--error ER_DUP_ENTRY
 
8
INSERT INTO t1 (c1) VALUES('abc');
 
9
SELECT * FROM t1;
 
10
DROP TABLE t1;
 
11
CREATE TABLE t1(c1 VARCHAR(10) NOT NULL PRIMARY KEY);
 
12
INSERT INTO t1 (c1) VALUES('abc');
 
13
INSERT INTO t1 (c1) VALUES('def');
 
14
--error ER_DUP_ENTRY
 
15
INSERT INTO t1 (c1) VALUES('abc');
 
16
SELECT * FROM t1;
 
17
DROP TABLE t1;
 
18
CREATE TABLE t1(c1 BINARY(10) NOT NULL PRIMARY KEY);
 
19
INSERT INTO t1 (c1) VALUES('abc');
 
20
INSERT INTO t1 (c1) VALUES('def');
 
21
--error ER_DUP_ENTRY
 
22
INSERT INTO t1 (c1) VALUES('abc');
 
23
SELECT * FROM t1;
 
24
DROP TABLE t1;
 
25
CREATE TABLE t1(c1 VARBINARY(10) NOT NULL PRIMARY KEY);
 
26
INSERT INTO t1 (c1) VALUES('abc');
 
27
INSERT INTO t1 (c1) VALUES('def');
 
28
--error ER_DUP_ENTRY
 
29
INSERT INTO t1 (c1) VALUES('abc');
 
30
SELECT * FROM t1;
 
31
DROP TABLE t1;
 
32