diff options
author | Omer BarNir <omer@mysql.com> | 2010-03-17 23:42:07 -0700 |
---|---|---|
committer | Omer BarNir <omer@mysql.com> | 2010-03-17 23:42:07 -0700 |
commit | c92b9b7315c01e87b1099e7df182213a1d8ffa6f (patch) | |
tree | 096cc41e4d541dd16c84cb829e630fef3d5baba7 /mysql-test/suite/engines/funcs/r/in_number_unique_constraint_duplicate_update.result | |
parent | 96d4a0384629e5cddc93ee215e7af484e4b95bde (diff) | |
download | mariadb-git-c92b9b7315c01e87b1099e7df182213a1d8ffa6f.tar.gz |
Test suites for engine testing, moved from test-extra so will be available
for general use.
mysql-test/Makefile.am:
Adding directories of additional test suites
mysql-test/mysql-stress-test.pl:
Adding check for additional errors checking during test run
Diffstat (limited to 'mysql-test/suite/engines/funcs/r/in_number_unique_constraint_duplicate_update.result')
-rw-r--r-- | mysql-test/suite/engines/funcs/r/in_number_unique_constraint_duplicate_update.result | 127 |
1 files changed, 127 insertions, 0 deletions
diff --git a/mysql-test/suite/engines/funcs/r/in_number_unique_constraint_duplicate_update.result b/mysql-test/suite/engines/funcs/r/in_number_unique_constraint_duplicate_update.result new file mode 100644 index 00000000000..1022e495dae --- /dev/null +++ b/mysql-test/suite/engines/funcs/r/in_number_unique_constraint_duplicate_update.result @@ -0,0 +1,127 @@ +DROP TABLE IF EXISTS t1; +CREATE TABLE t1(c1 TINYINT NULL UNIQUE); +INSERT INTO t1 (c1) VALUES(10); +INSERT INTO t1 (c1) VALUES(11); +INSERT INTO t1 (c1) VALUES(10) ON DUPLICATE KEY UPDATE c1=100; +SELECT * FROM t1; +c1 +100 +11 +DROP TABLE t1; +CREATE TABLE t1(c1 SMALLINT NULL UNIQUE); +INSERT INTO t1 (c1) VALUES(10); +INSERT INTO t1 (c1) VALUES(11); +INSERT INTO t1 (c1) VALUES(10) ON DUPLICATE KEY UPDATE c1=100; +SELECT * FROM t1; +c1 +100 +11 +DROP TABLE t1; +CREATE TABLE t1(c1 MEDIUMINT NULL UNIQUE); +INSERT INTO t1 (c1) VALUES(10); +INSERT INTO t1 (c1) VALUES(11); +INSERT INTO t1 (c1) VALUES(10) ON DUPLICATE KEY UPDATE c1=100; +SELECT * FROM t1; +c1 +100 +11 +DROP TABLE t1; +CREATE TABLE t1(c1 INT NULL UNIQUE); +INSERT INTO t1 (c1) VALUES(10); +INSERT INTO t1 (c1) VALUES(11); +INSERT INTO t1 (c1) VALUES(10) ON DUPLICATE KEY UPDATE c1=100; +SELECT * FROM t1; +c1 +100 +11 +DROP TABLE t1; +CREATE TABLE t1(c1 INTEGER NULL UNIQUE); +INSERT INTO t1 (c1) VALUES(10); +INSERT INTO t1 (c1) VALUES(11); +INSERT INTO t1 (c1) VALUES(10) ON DUPLICATE KEY UPDATE c1=100; +SELECT * FROM t1; +c1 +100 +11 +DROP TABLE t1; +CREATE TABLE t1(c1 BIGINT NULL UNIQUE); +INSERT INTO t1 (c1) VALUES(10); +INSERT INTO t1 (c1) VALUES(11); +INSERT INTO t1 (c1) VALUES(10) ON DUPLICATE KEY UPDATE c1=100; +SELECT * FROM t1; +c1 +100 +11 +DROP TABLE t1; +CREATE TABLE t1(c1 DECIMAL NULL UNIQUE); +INSERT INTO t1 (c1) VALUES(10); +INSERT INTO t1 (c1) VALUES(11); +INSERT INTO t1 (c1) VALUES(10) ON DUPLICATE KEY UPDATE c1=100; +SELECT * FROM t1; +c1 +100 +11 +DROP TABLE t1; +CREATE TABLE t1(c1 DEC NULL UNIQUE); +INSERT INTO t1 (c1) VALUES(10); +INSERT INTO t1 (c1) VALUES(11); +INSERT INTO t1 (c1) VALUES(10) ON DUPLICATE KEY UPDATE c1=100; +SELECT * FROM t1; +c1 +100 +11 +DROP TABLE t1; +CREATE TABLE t1(c1 FIXED NULL UNIQUE); +INSERT INTO t1 (c1) VALUES(10); +INSERT INTO t1 (c1) VALUES(11); +INSERT INTO t1 (c1) VALUES(10) ON DUPLICATE KEY UPDATE c1=100; +SELECT * FROM t1; +c1 +100 +11 +DROP TABLE t1; +CREATE TABLE t1(c1 NUMERIC NULL UNIQUE); +INSERT INTO t1 (c1) VALUES(10); +INSERT INTO t1 (c1) VALUES(11); +INSERT INTO t1 (c1) VALUES(10) ON DUPLICATE KEY UPDATE c1=100; +SELECT * FROM t1; +c1 +100 +11 +DROP TABLE t1; +CREATE TABLE t1(c1 DOUBLE NULL UNIQUE); +INSERT INTO t1 (c1) VALUES(10); +INSERT INTO t1 (c1) VALUES(11); +INSERT INTO t1 (c1) VALUES(10) ON DUPLICATE KEY UPDATE c1=100; +SELECT * FROM t1; +c1 +100 +11 +DROP TABLE t1; +CREATE TABLE t1(c1 REAL NULL UNIQUE); +INSERT INTO t1 (c1) VALUES(10); +INSERT INTO t1 (c1) VALUES(11); +INSERT INTO t1 (c1) VALUES(10) ON DUPLICATE KEY UPDATE c1=100; +SELECT * FROM t1; +c1 +100 +11 +DROP TABLE t1; +CREATE TABLE t1(c1 DOUBLE PRECISION NULL UNIQUE); +INSERT INTO t1 (c1) VALUES(10); +INSERT INTO t1 (c1) VALUES(11); +INSERT INTO t1 (c1) VALUES(10) ON DUPLICATE KEY UPDATE c1=100; +SELECT * FROM t1; +c1 +100 +11 +DROP TABLE t1; +CREATE TABLE t1(c1 FLOAT NULL UNIQUE); +INSERT INTO t1 (c1) VALUES(10); +INSERT INTO t1 (c1) VALUES(11); +INSERT INTO t1 (c1) VALUES(10) ON DUPLICATE KEY UPDATE c1=100; +SELECT * FROM t1; +c1 +100 +11 +DROP TABLE t1; |