[Groonga-commit] groonga/groonga at bbd6e2e [master] object_inspect: show table details instead of just table name

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Apr 10 10:37:02 JST 2017


Kouhei Sutou	2017-04-10 10:37:02 +0900 (Mon, 10 Apr 2017)

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

  Message:
    object_inspect: show table details instead of just table name

  Modified files:
    lib/proc/proc_object_inspect.c
    test/command/suite/object_inspect/column/index.expected

  Modified: lib/proc/proc_object_inspect.c (+1 -1)
===================================================================
--- lib/proc/proc_object_inspect.c    2017-04-07 16:10:39 +0900 (828a75b)
+++ lib/proc/proc_object_inspect.c    2017-04-10 10:37:02 +0900 (751311b)
@@ -455,7 +455,7 @@ command_object_inspect_column_index_sources(grn_ctx *ctx, grn_obj *column)
       }
 
       grn_ctx_output_cstr(ctx, "table");
-      command_object_inspect_obj_name(ctx, source_table);
+      command_object_inspect_table(ctx, source_table);
 
       grn_ctx_output_cstr(ctx, "full_name");
       if (grn_obj_is_table(ctx, source)) {

  Modified: test/command/suite/object_inspect/column/index.expected (+26 -2)
===================================================================
--- test/command/suite/object_inspect/column/index.expected    2017-04-07 16:10:39 +0900 (e3f8e7a)
+++ test/command/suite/object_inspect/column/index.expected    2017-04-10 10:37:02 +0900 (ce9c2a0)
@@ -99,13 +99,37 @@ object_inspect Terms.memos_title_content
       {
         "id": 257,
         "name": "title",
-        "table": "Memos",
+        "table": {
+          "id": 256,
+          "name": "Memos",
+          "type": {
+            "id": 51,
+            "name": "table:no_key"
+          },
+          "key": null,
+          "value": {
+            "type": null
+          },
+          "n_records": 0
+        },
         "full_name": "Memos.title"
       },
       {
         "id": 258,
         "name": "content",
-        "table": "Memos",
+        "table": {
+          "id": 256,
+          "name": "Memos",
+          "type": {
+            "id": 51,
+            "name": "table:no_key"
+          },
+          "key": null,
+          "value": {
+            "type": null
+          },
+          "n_records": 0
+        },
         "full_name": "Memos.content"
       }
     ]
-------------- next part --------------
HTML����������������������������...
下载 



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