[Groonga-mysql-commit] mroonga/mroonga at 07385be [master] mysql57: support "STRICT_ALL_TABLES"

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Apr 22 00:16:06 JST 2016


Kouhei Sutou	2016-04-22 00:16:06 +0900 (Fri, 22 Apr 2016)

  New Revision: 07385bea92a3459c07ee0fda989ebad21e027251
  https://github.com/mroonga/mroonga/commit/07385bea92a3459c07ee0fda989ebad21e027251

  Message:
    mysql57: support "STRICT_ALL_TABLES"

  Modified files:
    mrn_mysql_compat.h
    mysql-test/mroonga/storage/index/hash/mysql_57_or_later/r/id_primary.result

  Modified: mrn_mysql_compat.h (+1 -1)
===================================================================
--- mrn_mysql_compat.h    2016-04-21 23:58:14 +0900 (3c8041a)
+++ mrn_mysql_compat.h    2016-04-22 00:16:06 +0900 (2630f46)
@@ -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

  Modified: mysql-test/mroonga/storage/index/hash/mysql_57_or_later/r/id_primary.result (+0 -5)
===================================================================
--- mysql-test/mroonga/storage/index/hash/mysql_57_or_later/r/id_primary.result    2016-04-21 23:58:14 +0900 (762d440)
+++ mysql-test/mroonga/storage/index/hash/mysql_57_or_later/r/id_primary.result    2016-04-22 00:16:06 +0900 (8fb4615)
@@ -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;
-------------- next part --------------
HTML����������������������������...
下载 



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