~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_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 CHAR(10) NULL UNIQUE);
 
5
INSERT INTO t1 (c1) VALUES('abc');
 
6
INSERT INTO t1 (c1) VALUES('def');
 
7
INSERT IGNORE INTO t1 (c1) VALUES('abc');
 
8
SELECT * FROM t1;
 
9
DROP TABLE t1;
 
10
CREATE TABLE t1(c1 VARCHAR(10) NULL UNIQUE);
 
11
INSERT INTO t1 (c1) VALUES('abc');
 
12
INSERT INTO t1 (c1) VALUES('def');
 
13
INSERT IGNORE INTO t1 (c1) VALUES('abc');
 
14
SELECT * FROM t1;
 
15
DROP TABLE t1;
 
16
CREATE TABLE t1(c1 BINARY(10) NULL UNIQUE);
 
17
INSERT INTO t1 (c1) VALUES('abc');
 
18
INSERT INTO t1 (c1) VALUES('def');
 
19
INSERT IGNORE INTO t1 (c1) VALUES('abc');
 
20
SELECT * FROM t1;
 
21
DROP TABLE t1;
 
22
CREATE TABLE t1(c1 VARBINARY(10) NULL UNIQUE);
 
23
INSERT INTO t1 (c1) VALUES('abc');
 
24
INSERT INTO t1 (c1) VALUES('def');
 
25
INSERT IGNORE INTO t1 (c1) VALUES('abc');
 
26
SELECT * FROM t1;
 
27
DROP TABLE t1;
 
28