Kouhei Sutou
null+****@clear*****
Sat Nov 17 17:16:22 JST 2012
Kouhei Sutou 2012-11-17 17:16:22 +0900 (Sat, 17 Nov 2012) New Revision: 1f96a56ab777133d7eb43c57afb4ec79163dad21 https://github.com/mroonga/mroonga/commit/1f96a56ab777133d7eb43c57afb4ec79163dad21 Log: test: use error name instead of error code 1062 -> ER_DUP_ENTRY Modified files: test/sql/suite/mroonga/storage/index/multiple_column/unique/t/decimal.test test/sql/suite/mroonga/storage/index/multiple_column/unique/t/varchar.test test/sql/suite/mroonga/storage/index/primary/t/date.test test/sql/suite/mroonga/storage/insert/t/TODO_SPLIT_ME.test test/sql/suite/mroonga/wrapper/insert/t/TODO_SPLIT_ME.test Modified: test/sql/suite/mroonga/storage/index/multiple_column/unique/t/decimal.test (+1 -1) =================================================================== --- test/sql/suite/mroonga/storage/index/multiple_column/unique/t/decimal.test 2012-11-17 17:15:35 +0900 (44adb45) +++ test/sql/suite/mroonga/storage/index/multiple_column/unique/t/decimal.test 2012-11-17 17:16:22 +0900 (f735df3) @@ -30,7 +30,7 @@ select c1, c2, c3 from t1 force index(uk1) where c2 = -9876543210987654321098765 select c1, c2, c3 from t1 force index(uk1) order by c2, c3; select c1, c2, c3 from t1 force index(uk1) order by c2 desc, c3 desc; select c2, c3 from t1 force index(uk1) order by c2, c3; ---error 1062 +--error ER_DUP_ENTRY insert into t1 values(6,123.456,0.000000000000000000000000000001); delete from t1 where c1 = 1; insert into t1 values(1,123.456,0.000000000000000000000000000001); Modified: test/sql/suite/mroonga/storage/index/multiple_column/unique/t/varchar.test (+1 -1) =================================================================== --- test/sql/suite/mroonga/storage/index/multiple_column/unique/t/varchar.test 2012-11-17 17:15:35 +0900 (ab79baf) +++ test/sql/suite/mroonga/storage/index/multiple_column/unique/t/varchar.test 2012-11-17 17:16:22 +0900 (740b940) @@ -30,7 +30,7 @@ select c1, c2, c3 from t1 force index(uk1) where c2 = 'abc ' and c3 = 'abc'; select c1, c2, c3 from t1 force index(uk1) order by c2, c3; select c1, c2, c3 from t1 force index(uk1) order by c2 desc, c3 desc; select c2, c3 from t1 force index(uk1) order by c2, c3; ---error 1062 +--error ER_DUP_ENTRY insert into t1 values(6,'abcde','abc '); delete from t1 where c1 = 1; insert into t1 values(1,'abcde','abc '); Modified: test/sql/suite/mroonga/storage/index/primary/t/date.test (+1 -1) =================================================================== --- test/sql/suite/mroonga/storage/index/primary/t/date.test 2012-11-17 17:15:35 +0900 (2a181d4) +++ test/sql/suite/mroonga/storage/index/primary/t/date.test 2012-11-17 17:16:22 +0900 (cd229a6) @@ -29,7 +29,7 @@ SHOW CREATE TABLE diaries; INSERT INTO diaries (day, title) VALUES ("2012-01-29", "clear day"); INSERT INTO diaries (day, title) VALUES ("2012-01-30", "rainy day"); INSERT INTO diaries (day, title) VALUES ("2012-01-31", "cloudy day"); ---error 1062 +--error ER_DUP_ENTRY INSERT INTO diaries (day, title) VALUES ("2012-01-31", "duplicated day"); SELECT * FROM diaries; Modified: test/sql/suite/mroonga/storage/insert/t/TODO_SPLIT_ME.test (+1 -1) =================================================================== --- test/sql/suite/mroonga/storage/insert/t/TODO_SPLIT_ME.test 2012-11-17 17:15:35 +0900 (c6b349b) +++ test/sql/suite/mroonga/storage/insert/t/TODO_SPLIT_ME.test 2012-11-17 17:16:22 +0900 (40b49bb) @@ -94,7 +94,7 @@ drop table t1; create table t1 (c1 int primary key, c2 int); insert into t1 values(1,100); select * from t1; ---error 1062 +--error ER_DUP_ENTRY insert into t1 values(1,200); select * from t1; drop table t1; Modified: test/sql/suite/mroonga/wrapper/insert/t/TODO_SPLIT_ME.test (+1 -1) =================================================================== --- test/sql/suite/mroonga/wrapper/insert/t/TODO_SPLIT_ME.test 2012-11-17 17:15:35 +0900 (551720c) +++ test/sql/suite/mroonga/wrapper/insert/t/TODO_SPLIT_ME.test 2012-11-17 17:16:22 +0900 (09a24cc) @@ -83,7 +83,7 @@ drop table t1; create table t1 (c1 int primary key, c2 int) COMMENT = 'engine "innodb"'; insert into t1 values(1,100); select * from t1; ---error 1062 +--error ER_DUP_ENTRY insert into t1 values(1,200); select * from t1; drop table t1; -------------- next part -------------- HTML����������������������������... ダウンロード