Navigation Menu

Skip to content

Commit

Permalink
object_inspect: show table details instead of just table name
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 10, 2017
1 parent 9d81d70 commit bbd6e2e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/proc/proc_object_inspect.c
Expand Up @@ -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)) {
Expand Down
28 changes: 26 additions & 2 deletions test/command/suite/object_inspect/column/index.expected
Expand Up @@ -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"
}
]
Expand Down

0 comments on commit bbd6e2e

Please sign in to comment.