Skip to content

Commit

Permalink
object_inspect: support type
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Feb 26, 2016
1 parent 05d5e20 commit 650b026
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/proc/proc_object_inspect.c
Expand Up @@ -166,6 +166,9 @@ command_object_inspect(grn_ctx *ctx,
}

switch (target->header.type) {
case GRN_TYPE :
command_object_inspect_type(ctx, target);
break;
case GRN_TABLE_HASH_KEY :
command_object_inspect_table_hash_key(ctx, target);
break;
Expand Down
2 changes: 2 additions & 0 deletions test/command/suite/object_inspect/type.expected
@@ -0,0 +1,2 @@
object_inspect Int32
[[0,0.0,0.0],{"id":8,"name":"Int32","type":{"id":32,"name":"type"},"size":4}]
1 change: 1 addition & 0 deletions test/command/suite/object_inspect/type.test
@@ -0,0 +1 @@
object_inspect Int32

0 comments on commit 650b026

Please sign in to comment.