null+****@clear*****
null+****@clear*****
2011年 12月 26日 (月) 12:31:12 JST
Susumu Yata 2011-12-26 12:31:12 +0900 (Mon, 26 Dec 2011)
New Revision: 6e698fa63f6858024d4947b0d66ed6f5b15e15b4
Log:
replaced grn_curr_id() with grn_dat_at().
Modified files:
lib/db.c
Modified: lib/db.c (+1 -1)
===================================================================
--- lib/db.c 2011-12-26 12:30:07 +0900 (6869322)
+++ lib/db.c 2011-12-26 12:31:12 +0900 (78322b9)
@@ -1297,7 +1297,7 @@ grn_table_at(grn_ctx *ctx, grn_obj *table, grn_id id)
id = grn_pat_at(ctx, (grn_pat *)table, id);
break;
case GRN_TABLE_DAT_KEY :
- if (id > grn_dat_curr_id(ctx, (grn_dat *)table)) { id = GRN_ID_NIL; }
+ id = grn_dat_at(ctx, (grn_dat *)table, id);
break;
case GRN_TABLE_HASH_KEY :
id = grn_hash_at(ctx, (grn_hash *)table, id);