[Groonga-mysql-commit] mroonga/mroonga at 0ea1e58 [master] storage: don't support "INSERT DELAYED"

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Oct 5 11:31:32 JST 2014


Kouhei Sutou	2014-10-05 11:31:32 +0900 (Sun, 05 Oct 2014)

  New Revision: 0ea1e58be7630cc605f65e99705bdc36be356c81
  https://github.com/mroonga/mroonga/commit/0ea1e58be7630cc605f65e99705bdc36be356c81

  Message:
    storage: don't support "INSERT DELAYED"
    
    GitHub: fixes #20
    
    MDEV: #6837
    
    Reported by elenst. Thanks!!!

  Added files:
    mysql-test/mroonga/storage/insert/r/delayed.result
    mysql-test/mroonga/storage/insert/t/delayed.test
  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+0 -1)
===================================================================
--- ha_mroonga.cpp    2014-09-29 16:53:36 +0900 (a37b280)
+++ ha_mroonga.cpp    2014-10-05 11:31:32 +0900 (ff81c7b)
@@ -2284,7 +2284,6 @@ ulonglong ha_mroonga::storage_table_flags() const
     HA_CAN_INDEX_BLOBS |
     HA_STATS_RECORDS_IS_EXACT |
     HA_CAN_FULLTEXT |
-    HA_CAN_INSERT_DELAYED |
     HA_BINLOG_FLAGS |
     HA_CAN_BIT_FIELD |
     HA_DUPLICATE_POS |

  Added: mysql-test/mroonga/storage/insert/r/delayed.result (+12 -0) 100644
===================================================================
--- /dev/null
+++ mysql-test/mroonga/storage/insert/r/delayed.result    2014-10-05 11:31:32 +0900 (ce546a1)
@@ -0,0 +1,12 @@
+DROP TABLE IF EXISTS ids;
+CREATE TABLE ids (
+id INT PRIMARY KEY
+) DEFAULT CHARSET=UTF8;
+LOCK TABLES ids READ;
+SET lock_wait_timeout=1;
+INSERT DELAYED INTO ids (id) VALUES (1);
+ERROR HY000: DELAYED option not supported for table 'ids'
+SELECT * FROM ids;
+id
+UNLOCK TABLES;
+DROP TABLE ids;

  Added: mysql-test/mroonga/storage/insert/t/delayed.test (+41 -0) 100644
===================================================================
--- /dev/null
+++ mysql-test/mroonga/storage/insert/t/delayed.test    2014-10-05 11:31:32 +0900 (4b97cbd)
@@ -0,0 +1,41 @@
+# Copyright(C) 2014 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+--source ../../../include/mroonga/have_mroonga.inc
+
+--disable_warnings
+DROP TABLE IF EXISTS ids;
+--enable_warnings
+
+CREATE TABLE ids (
+  id INT PRIMARY KEY
+) DEFAULT CHARSET=UTF8;
+
+LOCK TABLES ids READ;
+
+CONNECT(insert_delayed_connection, localhost, root);
+SET lock_wait_timeout=1;
+--error ER_DELAYED_NOT_SUPPORTED
+INSERT DELAYED INTO ids (id) VALUES (1);
+
+CONNECTION default;
+SELECT * FROM ids;
+
+UNLOCK TABLES;
+
+DROP TABLE ids;
+
+--source ../../../include/mroonga/have_mroonga_deinit.inc
-------------- next part --------------
HTML����������������������������...
다운로드 



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