null+****@clear*****
null+****@clear*****
2011年 12月 28日 (水) 17:14:42 JST
Kouhei Sutou 2011-12-28 17:14:42 +0900 (Wed, 28 Dec 2011)
New Revision: 4a7bd37b20345db1d2206d80949a694aef5ae08d
Log:
don't change column type for now. it's a work for the next release...
Modified files:
ha_mroonga.cc
Modified: ha_mroonga.cc (+6 -6)
===================================================================
--- ha_mroonga.cc 2011-12-28 17:12:18 +0900 (98c11a0)
+++ ha_mroonga.cc 2011-12-28 17:14:42 +0900 (b6dd455)
@@ -940,14 +940,14 @@ static grn_builtin_type mrn_grn_type_from_field(grn_ctx *ctx, Field *field,
type = GRN_DB_SHORT_TEXT; // 4Kbytes
break;
case MYSQL_TYPE_ENUM: // ENUM; <= 2bytes
- // type = GRN_DB_INT8; // 1byte
- // XXX: Should we use INT16?
- type = GRN_DB_INT16; // 2bytes
+ type = GRN_DB_INT8; // 1byte
+ // XXX: We should use INT16
+ // type = GRN_DB_INT16; // 2bytes
break;
case MYSQL_TYPE_SET: // SET; <= 8bytes
- // type = GRN_DB_INT8; // 1byte
- // XXX: Should we use INT64?
- type = GRN_DB_INT64; // 8bytes
+ type = GRN_DB_INT8; // 1byte
+ // XXX: We should use INT64.
+ // type = GRN_DB_INT64; // 8bytes
break;
case MYSQL_TYPE_TINY_BLOB: // TINYBLOB; <= 256bytes + 1byte
type = GRN_DB_SHORT_TEXT; // 4Kbytes