1# Copyright(C) 2013 Kentoku SHIBA 2# Copyright(C) 2016-2017 Kouhei Sutou <kou@clear-code.com> 3# 4# This library is free software; you can redistribute it and/or 5# modify it under the terms of the GNU Lesser General Public 6# License as published by the Free Software Foundation; either 7# version 2.1 of the License, or (at your option) any later version. 8# 9# This library is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY; without even the implied warranty of 11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12# Lesser General Public License for more details. 13# 14# You should have received a copy of the GNU Lesser General Public 15# License along with this library; if not, write to the Free Software 16# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA 17 18--source ../../include/mroonga/have_mariadb_10_2_or_later.inc 19--source ../../include/mroonga/have_mroonga.inc 20 21--disable_warnings 22DROP TABLE IF EXISTS timestamps; 23--enable_warnings 24 25CREATE TABLE timestamps ( 26 id INT PRIMARY KEY AUTO_INCREMENT, 27 create_dt DATETIME 28) DEFAULT CHARSET UTF8; 29 30--error ER_WARN_DATA_OUT_OF_RANGE 31INSERT INTO timestamps (create_dt) VALUES ("2012-00-01 00:00:00"); 32--error ER_WARN_DATA_OUT_OF_RANGE 33INSERT INTO timestamps (create_dt) VALUES ("2012-01-00 00:00:00"); 34 35SELECT * FROM timestamps; 36 37DROP TABLE timestamps; 38 39--source ../../include/mroonga/have_mroonga_deinit.inc 40