[Groonga-mysql-commit] mroonga/mroonga at 7e7baef [master] test: bulk insert nulls into geometry not null column

Back to archive index

Kenji Maruyama null+****@clear*****
Tue Feb 4 08:53:19 JST 2014


Kenji Maruyama	2014-02-04 08:53:19 +0900 (Tue, 04 Feb 2014)

  New Revision: 7e7baefedb5f33833b76a4109778e480a3db2b98
  https://github.com/mroonga/mroonga/commit/7e7baefedb5f33833b76a4109778e480a3db2b98

  Message:
    test: bulk insert nulls into geometry not null column
    
    refs #2281
    
    [groonga-dev,02095]
    
    Reported by yoku0825. Thanks!!!

  Added files:
    mysql-test/mroonga/storage/geometry/r/bluk_insert_null.result
    mysql-test/mroonga/storage/geometry/t/bluk_insert_null.test

  Added: mysql-test/mroonga/storage/geometry/r/bluk_insert_null.result (+9 -0) 100644
===================================================================
--- /dev/null
+++ mysql-test/mroonga/storage/geometry/r/bluk_insert_null.result    2014-02-04 08:53:19 +0900 (22f03e5)
@@ -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;

  Added: mysql-test/mroonga/storage/geometry/t/bluk_insert_null.test (+32 -0) 100644
===================================================================
--- /dev/null
+++ mysql-test/mroonga/storage/geometry/t/bluk_insert_null.test    2014-02-04 08:53:19 +0900 (c1b80fe)
@@ -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
-------------- next part --------------
HTML����������������������������...
下載 



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