null+****@clear*****
null+****@clear*****
2010年 11月 9日 (火) 20:59:59 JST
Daijiro MORI 2010-11-09 11:59:59 +0000 (Tue, 09 Nov 2010)
New Revision: 68a668cb64544d3b54325317d0507086d87c8d35
Log:
grn_table_cursor_next() supports grn_index_cursor.
Modified files:
lib/db.c
Modified: lib/db.c (+6 -0)
===================================================================
--- lib/db.c 2010-11-09 06:50:39 +0000 (96473ba)
+++ lib/db.c 2010-11-09 11:59:59 +0000 (255b6c1)
@@ -1940,6 +1940,12 @@ grn_table_cursor_next(grn_ctx *ctx, grn_table_cursor *tc)
case GRN_CURSOR_TABLE_VIEW :
id = grn_view_cursor_next(ctx, (grn_view_cursor *)tc);
break;
+ case GRN_CURSOR_COLUMN_INDEX :
+ {
+ grn_posting *ip = grn_index_cursor_next(ctx, (grn_obj *)tc, NULL);
+ if (ip) { id = ip->rid; }
+ }
+ break;
}
}
GRN_API_RETURN(id);