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_calendar_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_calendar_unique_constraint_duplicate_update.result')
-rw-r--r-- | mysql-test/suite/engines/funcs/r/in_calendar_unique_constraint_duplicate_update.result | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/mysql-test/suite/engines/funcs/r/in_calendar_unique_constraint_duplicate_update.result b/mysql-test/suite/engines/funcs/r/in_calendar_unique_constraint_duplicate_update.result new file mode 100644 index 00000000000..154c44426bc --- /dev/null +++ b/mysql-test/suite/engines/funcs/r/in_calendar_unique_constraint_duplicate_update.result @@ -0,0 +1,84 @@ +DROP TABLE IF EXISTS t1; +CREATE TABLE t1(c1 DATE NULL UNIQUE); +SET TIMESTAMP=1171346973; +INSERT INTO t1 (c1) VALUES(NOW()); +Warnings: +Note 1265 Data truncated for column 'c1' at row 1 +INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01')); +Warnings: +Note 1265 Data truncated for column 'c1' at row 1 +INSERT INTO t1 (c1) VALUES(NOW()) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01'); +Warnings: +Note 1265 Data truncated for column 'c1' at row 1 +Note 1265 Data truncated for column 'c1' at row 1 +SELECT * FROM t1; +c1 +2007-02-14 +2007-02-15 +DROP TABLE t1; +CREATE TABLE t1(c1 YEAR NULL UNIQUE); +INSERT INTO t1 (c1) VALUES(1999); +INSERT INTO t1 (c1) VALUES(2000); +INSERT INTO t1 (c1) VALUES(1999) ON DUPLICATE KEY UPDATE c1=2011; +SELECT * FROM t1; +c1 +2000 +2011 +DROP TABLE t1; +CREATE TABLE t1(c1 TIME NULL UNIQUE); +SET TIMESTAMP=1171346973; +INSERT INTO t1 (c1) VALUES(NOW()); +INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01')); +INSERT INTO t1 (c1) VALUES(NOW()) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01'); +SELECT * FROM t1; +c1 +10:10:34 +11:10:34 +DROP TABLE t1; +CREATE TABLE t1(c1 YEAR NULL UNIQUE); +INSERT INTO t1 (c1) VALUES(1999); +INSERT INTO t1 (c1) VALUES(2000); +INSERT INTO t1 (c1) VALUES(1999) ON DUPLICATE KEY UPDATE c1=2011; +SELECT * FROM t1; +c1 +2000 +2011 +DROP TABLE t1; +CREATE TABLE t1(c1 DATETIME NULL UNIQUE); +SET TIMESTAMP=1171346973; +INSERT INTO t1 (c1) VALUES(NOW()); +INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01')); +INSERT INTO t1 (c1) VALUES(NOW()) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01'); +SELECT * FROM t1; +c1 +2007-02-14 10:10:34 +2007-02-15 11:10:34 +DROP TABLE t1; +CREATE TABLE t1(c1 YEAR NULL UNIQUE); +INSERT INTO t1 (c1) VALUES(1999); +INSERT INTO t1 (c1) VALUES(2000); +INSERT INTO t1 (c1) VALUES(1999) ON DUPLICATE KEY UPDATE c1=2011; +SELECT * FROM t1; +c1 +2000 +2011 +DROP TABLE t1; +CREATE TABLE t1(c1 TIMESTAMP NULL UNIQUE); +SET TIMESTAMP=1171346973; +INSERT INTO t1 (c1) VALUES(NOW()); +INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01')); +INSERT INTO t1 (c1) VALUES(NOW()) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01'); +SELECT * FROM t1; +c1 +2007-02-14 10:10:34 +2007-02-15 11:10:34 +DROP TABLE t1; +CREATE TABLE t1(c1 YEAR NULL UNIQUE); +INSERT INTO t1 (c1) VALUES(1999); +INSERT INTO t1 (c1) VALUES(2000); +INSERT INTO t1 (c1) VALUES(1999) ON DUPLICATE KEY UPDATE c1=2011; +SELECT * FROM t1; +c1 +2000 +2011 +DROP TABLE t1; |