[Groonga-mysql-commit] mroonga/mroonga at 796a407 [master] test: add alter table change column with flags

Back to archive index

Kenji Maruyama null+****@clear*****
Tue Feb 25 20:22:39 JST 2014


Kenji Maruyama	2014-02-25 20:22:39 +0900 (Tue, 25 Feb 2014)

  New Revision: 796a407a3a1774466bf2410486e286e9186ac5ed
  https://github.com/mroonga/mroonga/commit/796a407a3a1774466bf2410486e286e9186ac5ed

  Message:
    test: add alter table change column with flags

  Added files:
    mysql-test/mroonga/storage/alter_table/change_column/r/with_flags.result
    mysql-test/mroonga/storage/alter_table/change_column/t/with_flags.test

  Added: mysql-test/mroonga/storage/alter_table/change_column/r/with_flags.result (+11 -0) 100644
===================================================================
--- /dev/null
+++ mysql-test/mroonga/storage/alter_table/change_column/r/with_flags.result    2014-02-25 20:22:39 +0900 (b5f7eb0)
@@ -0,0 +1,11 @@
+DROP TABLE IF EXISTS tags;
+CREATE TABLE tags (
+id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
+) DEFAULT CHARSET=utf8;
+ALTER TABLE tags ADD COLUMN name VARCHAR(64) COMMENT 'flags "COLUMN_VECTOR"';
+SELECT mroonga_command("dump");
+mroonga_command("dump")
+table_create tags TABLE_PAT_KEY UInt32
+column_create tags id COLUMN_SCALAR UInt32
+column_create tags name COLUMN_VECTOR ShortText
+DROP TABLE tags;

  Added: mysql-test/mroonga/storage/alter_table/change_column/t/with_flags.test (+36 -0) 100644
===================================================================
--- /dev/null
+++ mysql-test/mroonga/storage/alter_table/change_column/t/with_flags.test    2014-02-25 20:22:39 +0900 (8663b35)
@@ -0,0 +1,36 @@
+# 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/not_embedded.inc
+--source ../../../../include/mroonga/have_mroonga.inc
+--source ../../../../include/mroonga/load_mroonga_functions.inc
+
+--disable_warnings
+DROP TABLE IF EXISTS tags;
+--enable_warnings
+
+CREATE TABLE tags (
+  id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
+) DEFAULT CHARSET=utf8;
+
+ALTER TABLE tags ADD COLUMN name VARCHAR(64) COMMENT 'flags "COLUMN_VECTOR"';
+
+SELECT mroonga_command("dump");
+
+DROP TABLE tags;
+
+--source ../../../../include/mroonga/unload_mroonga_functions.inc
+--source ../../../../include/mroonga/have_mroonga_deinit.inc
-------------- next part --------------
HTML����������������������������...
Download 



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