[Groonga-commit] groonga/groonga at c66476f [master] dump: show _id for TABLE_NO_KEY again

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Apr 3 15:26:12 JST 2015


Kouhei Sutou	2015-04-03 15:26:12 +0900 (Fri, 03 Apr 2015)

  New Revision: c66476f729a8c3534f1af516010e13869efaa978
  https://github.com/groonga/groonga/commit/c66476f729a8c3534f1af516010e13869efaa978

  Message:
    dump: show _id for TABLE_NO_KEY again

  Modified files:
    lib/proc.c

  Modified: lib/proc.c (+2 -1)
===================================================================
--- lib/proc.c    2015-04-03 15:14:34 +0900 (17a090a)
+++ lib/proc.c    2015-04-03 15:26:12 +0900 (3f54129)
@@ -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) {
-------------- next part --------------
HTML����������������������������...
다운로드 



More information about the Groonga-commit mailing list
Back to archive index