Navigation Menu

Skip to content

Commit

Permalink
mysql57 test: disable warnings for SQL_MODE
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 20, 2016
1 parent c0c52d3 commit 9a932a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions mysql-test/mroonga/storage/update/r/virtual_column.result
Expand Up @@ -26,3 +26,4 @@ c1 _id
2 2
3 3
drop table t1;
set sql_mode=DEFAULT;
6 changes: 6 additions & 0 deletions mysql-test/mroonga/storage/update/t/virtual_column.test
Expand Up @@ -27,11 +27,15 @@ insert into t1 values(1,null);
insert into t1 values(2,null);
insert into t1 values(3,null);
select * from t1;
--disable_warnings
set sql_mode="";
--enable_warnings
# warning WARN_DATA_TRUNCATED
update t1 set _id = 10 where c1 = 1;
select * from t1;
--disable_warnings
set sql_mode="strict_all_tables";
--enable_warnings
# We can't use WARN_DATA_TRUNCATED here because "WXXX" isn't supported
# MySQL 5.5, 5.6 and MariaDB 5.6. MariaDB 10.0 only supports it.
# We share this test with all MySQL servers. So we use number here.
Expand All @@ -40,4 +44,6 @@ update t1 set _id = 11 where c1 = 1;
select * from t1;
drop table t1;

set sql_mode=DEFAULT;

--source ../../../include/mroonga/have_mroonga_deinit.inc

0 comments on commit 9a932a0

Please sign in to comment.