Navigation Menu

Skip to content

Commit

Permalink
dump: show _id for TABLE_NO_KEY again
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 3, 2015
1 parent e4cfc08 commit c66476f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/proc.c
Expand Up @@ -2978,7 +2978,8 @@ dump_records(grn_ctx *ctx, grn_obj *outbuf, grn_obj *table)

GRN_BULK_REWIND(&column_name);
grn_column_name_(ctx, columns[i], &column_name);
if (GRN_TEXT_LEN(&column_name) == GRN_COLUMN_NAME_ID_LEN &&
if (table->header.type != GRN_TABLE_NO_KEY &&
GRN_TEXT_LEN(&column_name) == GRN_COLUMN_NAME_ID_LEN &&
memcmp(GRN_TEXT_VALUE(&column_name),
GRN_COLUMN_NAME_ID,
GRN_COLUMN_NAME_ID_LEN) == 0) {
Expand Down

0 comments on commit c66476f

Please sign in to comment.