[Groonga-mysql-commit] mroonga/mroonga [master] storage: use unsigined type for SET type

Back to archive index

null+****@clear***** null+****@clear*****
2012年 4月 19日 (木) 00:08:06 JST


Kouhei Sutou	2012-04-19 00:08:06 +0900 (Thu, 19 Apr 2012)

  New Revision: 26e78ff2d48f32049206b5920efcc96d9ab7f2f1

  Log:
    storage: use unsigined type for SET type
    
    Unsigned type is suitable because SET value is bit string.

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+1 -1)
===================================================================
--- ha_mroonga.cpp    2012-04-19 00:04:21 +0900 (c3ac9da)
+++ ha_mroonga.cpp    2012-04-19 00:08:06 +0900 (7b8643d)
@@ -1033,7 +1033,7 @@ static grn_builtin_type mrn_grn_type_from_field(grn_ctx *ctx, Field *field,
     type = GRN_DB_UINT16;       // 2bytes
     break;
   case MYSQL_TYPE_SET:          // SET; <= 8bytes
-    type = GRN_DB_INT64;        // 8bytes
+    type = GRN_DB_UINT64;       // 8bytes
     break;
   case MYSQL_TYPE_TINY_BLOB:    // TINYBLOB; <= 256bytes + 1byte
     type = GRN_DB_SHORT_TEXT;   // 4Kbytes




Groonga-mysql-commit メーリングリストの案内
Back to archive index