EVOLUTION-MANAGER
Edit File: insert_virtual_column.test
# Copyright(C) 2010 Tetsuro IKEDA # Copyright(C) 2016 Kouhei Sutou <kou@clear-code.com> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA --source include/not_embedded.inc --source ../../include/mroonga/have_mroonga.inc --disable_warnings DROP TABLE IF EXISTS t1; --enable_warnings CREATE TABLE t1 (c1 int, _id int); --disable_warnings SET sql_mode=""; --enable_warnings # warning WARN_DATA_TRUNCATED INSERT INTO t1 (c1,_id) VALUES (1,1); --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. --error 1265 INSERT INTO t1 (c1,_id) VALUES (4,1); SELECT * FROM t1; DROP TABLE t1; --source ../../include/mroonga/have_mroonga_deinit.inc