[Groonga-mysql-commit] mroonga/mroonga [master] test: use error name instead of error code

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Nov 17 17:15:35 JST 2012


Kouhei Sutou	2012-11-17 17:15:35 +0900 (Sat, 17 Nov 2012)

  New Revision: 8921039c56865d02848adf8d4e645dccad423b0e
  https://github.com/mroonga/mroonga/commit/8921039c56865d02848adf8d4e645dccad423b0e

  Log:
    test: use error name instead of error code
    
    1406 ->
    ER_DATA_TOO_LONG

  Modified files:
    test/sql/suite/mroonga/storage/insert/t/TODO_SPLIT_ME.test
    test/sql/suite/mroonga/storage/update/t/virtual_column.test

  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:03:49 +0900 (460d6a1)
+++ test/sql/suite/mroonga/storage/insert/t/TODO_SPLIT_ME.test    2012-11-17 17:15:35 +0900 (c6b349b)
@@ -84,7 +84,7 @@ set sql_mode="";
 # warning 1265
 insert into t1 (c1,_id) values (1,1);
 set sql_mode="strict_all_tables";
---error 1406
+--error ER_DATA_TOO_LONG
 insert into t1 (c1,_id) values (4,1);
 select * from t1;
 drop table t1;

  Modified: test/sql/suite/mroonga/storage/update/t/virtual_column.test (+1 -1)
===================================================================
--- test/sql/suite/mroonga/storage/update/t/virtual_column.test    2012-11-17 17:03:49 +0900 (52e2e18)
+++ test/sql/suite/mroonga/storage/update/t/virtual_column.test    2012-11-17 17:15:35 +0900 (fb645b6)
@@ -32,7 +32,7 @@ set sql_mode="";
 update t1 set _id = 10 where c1 = 1;
 select * from t1;
 set sql_mode="strict_all_tables";
---error 1406
+--error ER_DATA_TOO_LONG
 update t1 set _id = 11 where c1 = 1;
 select * from t1;
 drop table t1;
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index