Navigation Menu

Skip to content

Commit

Permalink
test: bulk insert nulls into geometry not null column
Browse files Browse the repository at this point in the history
refs #2281

[groonga-dev,02095]

Reported by yoku0825. Thanks!!!
  • Loading branch information
mmmaru777 committed Feb 3, 2014
1 parent e108451 commit 7e7baef
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mysql-test/mroonga/storage/geometry/r/bluk_insert_null.result
@@ -0,0 +1,9 @@
DROP TABLE IF EXISTS shops;
CREATE TABLE shops (
location GEOMETRY NOT NULL
);
INSERT INTO shops VALUES (NULL), (NULL);
Warnings:
Warning 1048 Column 'location' cannot be null
Warning 1048 Column 'location' cannot be null
DROP TABLE shops;
32 changes: 32 additions & 0 deletions mysql-test/mroonga/storage/geometry/t/bluk_insert_null.test
@@ -0,0 +1,32 @@
# Copyright(C) 2014 Kenji Maruyama <mmmaru777@gmail.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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

--source include/have_geometry.inc
--source ../../../include/mroonga/have_mroonga.inc

--disable_warnings
DROP TABLE IF EXISTS shops;
--enable_warnings

CREATE TABLE shops (
location GEOMETRY NOT NULL
);

INSERT INTO shops VALUES (NULL), (NULL);

DROP TABLE shops;

--source ../../../include/mroonga/have_mroonga_deinit.inc

0 comments on commit 7e7baef

Please sign in to comment.