Navigation Menu

Skip to content

Commit

Permalink
mysql57: support "STRICT_ALL_TABLES"
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 21, 2016
1 parent 2f5f296 commit 07385be
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion mrn_mysql_compat.h
Expand Up @@ -246,7 +246,7 @@
# define MRN_ABORT_ON_WARNING(thd) thd->abort_on_warning
#else
# if MYSQL_VERSION_ID >= 50706
# define MRN_ABORT_ON_WARNING(thd) false
# define MRN_ABORT_ON_WARNING(thd) thd->is_strict_mode()
# else
# define MRN_ABORT_ON_WARNING(thd) thd->abort_on_warning
# endif
Expand Down
Expand Up @@ -12,13 +12,8 @@ INSERT INTO t1 VALUES(1,100);
ERROR 01000: Data truncated for column '_id' at row 1
SELECT * FROM t1;
_id a
1 100
2 100
3 100
4 100
SELECT * FROM t1 WHERE _id = 2;
_id a
2 100
SELECT * FROM t1 WHERE _id = 20;
_id a
DROP TABLE t1;

0 comments on commit 07385be

Please sign in to comment.