[Groonga-mysql-commit] mroonga/mroonga at 9e0337d [master] mariadb10.3: add more VARCHAR COMPRESSED and BLOB COMPRESSED support

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Dec 24 01:39:00 JST 2017


Kouhei Sutou	2017-12-24 01:39:00 +0900 (Sun, 24 Dec 2017)

  New Revision: 9e0337d85badf47811213c787631fb25ddab4853
  https://github.com/mroonga/mroonga/commit/9e0337d85badf47811213c787631fb25ddab4853

  Message:
    mariadb10.3: add more VARCHAR COMPRESSED and BLOB COMPRESSED support
    
    It's not tested yet because we can't build with MariaDB 10.3 yet. :<

  Modified files:
    lib/mrn_multiple_column_key_codec.cpp

  Modified: lib/mrn_multiple_column_key_codec.cpp (+12 -1)
===================================================================
--- lib/mrn_multiple_column_key_codec.cpp    2017-12-24 01:38:45 +0900 (0038a7fe)
+++ lib/mrn_multiple_column_key_codec.cpp    2017-12-24 01:39:00 +0900 (e49e1a6f)
@@ -1,6 +1,6 @@
 /* -*- c-basic-offset: 2 -*- */
 /*
-  Copyright(C) 2012-2015 Kouhei Sutou <kou �� clear-code.com>
+  Copyright(C) 2012-2017 Kouhei Sutou <kou �� clear-code.com>
   Copyright(C) 2013 Kentoku SHIBA
 
   This library is free software; you can redistribute it and/or
@@ -453,6 +453,14 @@ namespace mrn {
       *data_type = TYPE_BYTE_BLOB;
       *data_size = key_part->length;
       break;
+#ifdef MRN_HAVE_MYSQL_TYPE_VARCHAR_COMPRESSED
+    case MYSQL_TYPE_VARCHAR_COMPRESSED:
+      // TODO
+      DBUG_PRINT("info", ("mroonga: MYSQL_TYPE_VARCHAR_COMPRESSED"));
+      *data_type = TYPE_BYTE_BLOB;
+      *data_size = key_part->length;
+      break;
+#endif
     case MYSQL_TYPE_BIT:
       // TODO
       DBUG_PRINT("info", ("mroonga: MYSQL_TYPE_BIT"));
@@ -501,6 +509,9 @@ namespace mrn {
     case MYSQL_TYPE_MEDIUM_BLOB:
     case MYSQL_TYPE_LONG_BLOB:
     case MYSQL_TYPE_BLOB:
+#ifdef MRN_HAVE_MYSQL_TYPE_BLOB_COMPRESSED
+    case MYSQL_TYPE_BLOB_COMPRESSED:
+#endif
       // TODO
       DBUG_PRINT("info", ("mroonga: MYSQL_TYPE_BLOB"));
       *data_type = TYPE_BYTE_BLOB;
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-mysql-commit/attachments/20171224/dc55297b/attachment.htm 



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