Kouhei Sutou
null+****@clear*****
Thu Oct 4 10:28:06 JST 2012
Kouhei Sutou 2011-09-23 20:33:11 +0900 (Fri, 23 Sep 2011) New Revision: 050fb8c8b6c27a696a96f8fcc7e689feb53d6fd7 https://github.com/mroonga/mroonga/commit/050fb8c8b6c27a696a96f8fcc7e689feb53d6fd7 Log: remove duplicated code. Modified files: ha_mroonga.cc Modified: ha_mroonga.cc (+0 -10) =================================================================== --- ha_mroonga.cc 2011-09-23 20:32:59 +0900 (00e9b7d) +++ ha_mroonga.cc 2011-09-23 20:33:11 +0900 (93e053d) @@ -768,18 +768,8 @@ static int mrn_set_key_buf(grn_ctx *ctx, Field *field, } case MYSQL_TYPE_STRING: case MYSQL_TYPE_VARCHAR: - { - ptr += 2; - String tmp; - const char *val = ptr; - int len = strlen(val); - memcpy(buf, val, len); - *size = len; - break; - } case MYSQL_TYPE_BLOB: { - String tmp; ptr += HA_KEY_BLOB_LENGTH; const char *val = ptr; int len = strlen(val); -------------- next part -------------- HTML����������������������������...Download