須藤です。 対応しました! In <5d380****@mx*****> "[groonga-dev,04763] Mroonga MySQL 8.0 対応版で timestamp 型の格納不良" on Wed, 24 Jul 2019 16:50:33 +0900, 各務 洋 <kagam****@outwa*****> wrote: > お世話になります、各務です。 > > Mroonga の MySQL 8.0 対応版で timestamp 型に値を格納すると、格納した値 > とは異なる値が返ってきます。 > > 環境: > > CentOS 7.6.1810 > mysql-community-server.x86_64 8.0.16-2.el7 > mysql80-community-mroonga.x86_64 9.04-1.el7 > mroonga_libgroonga_version 9.0.4 > > > 再現方法: > > CREATE TABLE mroonga_test ( > `id` bigint unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY, > `regist_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, > `test_timestamp` timestamp NULL DEFAULT NULL, > `test_datetime` datetime NULL DEFAULT NULL, > `test_date` date NULL DEFAULT NULL > ) ENGINE=Mroonga DEFAULT CHARSET=utf8 > ; > > INSERT INTO mroonga_test (test_timestamp, test_datetime, test_date) VALUES (CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, CURRENT_DATE); > SELECT SLEEP(1); > INSERT INTO mroonga_test (test_timestamp, test_datetime, test_date) VALUES (CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, CURRENT_DATE); > SELECT SLEEP(1); > INSERT INTO mroonga_test (test_timestamp, test_datetime, test_date) VALUES (CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, CURRENT_DATE); > > SELECT * FROM mroonga_test; > +----+---------------------+---------------------+---------------------+------------+ > | id | regist_date | test_timestamp | test_datetime | test_date | > +----+---------------------+---------------------+---------------------+------------+ > | 1 | 2006-03-03 21:36:45 | 2006-03-03 21:36:45 | 2019-07-24 16:27:00 | 2019-07-24 | > | 2 | 2006-09-14 01:57:01 | 2006-09-14 01:57:01 | 2019-07-24 16:27:01 | 2019-07-24 | > | 3 | 2007-03-27 06:17:17 | 2007-03-27 06:17:17 | 2019-07-24 16:27:02 | 2019-07-24 | > +----+---------------------+---------------------+---------------------+------------+ > > SLEEP を入れずに同じ値を入れると同じ崩れた値なので、 bit の取り扱いが > 違っている感があります。 > > 上記で確認可能でしょうか? > > > P.S > できれば次の29の日までに直ると嬉しいなぁ。(チラッ) > > ---- > 各務 > kagam****@outwa***** > > _______________________________________________ > groonga-dev mailing list > groon****@lists***** > https://lists.osdn.me/mailman/listinfo/groonga-dev