null+****@clear*****
null+****@clear*****
2011年 8月 16日 (火) 19:04:53 JST
Daijiro MORI 2011-08-16 10:04:53 +0000 (Tue, 16 Aug 2011)
New Revision: 56837f505a47436ace61f102784f339036d0e4ae
Log:
Fixed grn_obj_set_value() setting void value when a string is assigned as the value of vector columns
Modified files:
lib/db.c
Modified: lib/db.c (+1 -1)
===================================================================
--- lib/db.c 2011-08-16 09:20:42 +0000 (9b01866)
+++ lib/db.c 2011-08-16 10:04:53 +0000 (49417b5)
@@ -4776,7 +4776,7 @@ grn_obj_set_value(grn_ctx *ctx, grn_obj *obj, grn_id id,
{
grn_token *token;
if (v && s &&
- (token = grn_token_open(ctx, lexicon, v, s, GRN_TABLE_ADD))) {
+ (token = grn_token_open(ctx, lexicon, v, s, grn_token_add))) {
while (!token->status) {
grn_id tid = grn_token_next(ctx, token);
grn_bulk_write(ctx, &buf, (char *)&tid, sizeof(grn_id));