[Groonga-commit] groonga/groonga at 650b026 [master] object_inspect: support type

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Feb 26 14:53:00 JST 2016


Kouhei Sutou	2016-02-26 14:53:00 +0900 (Fri, 26 Feb 2016)

  New Revision: 650b02634be4d343180971c446aa8abe9e727de6
  https://github.com/groonga/groonga/commit/650b02634be4d343180971c446aa8abe9e727de6

  Message:
    object_inspect: support type

  Added files:
    test/command/suite/object_inspect/type.expected
    test/command/suite/object_inspect/type.test
  Modified files:
    lib/proc/proc_object_inspect.c

  Modified: lib/proc/proc_object_inspect.c (+3 -0)
===================================================================
--- lib/proc/proc_object_inspect.c    2016-02-26 14:49:54 +0900 (9a7fa49)
+++ lib/proc/proc_object_inspect.c    2016-02-26 14:53:00 +0900 (11c70e0)
@@ -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;

  Added: test/command/suite/object_inspect/type.expected (+2 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/object_inspect/type.expected    2016-02-26 14:53:00 +0900 (8344c6f)
@@ -0,0 +1,2 @@
+object_inspect Int32
+[[0,0.0,0.0],{"id":8,"name":"Int32","type":{"id":32,"name":"type"},"size":4}]

  Added: test/command/suite/object_inspect/type.test (+1 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/object_inspect/type.test    2016-02-26 14:53:00 +0900 (f2f4c63)
@@ -0,0 +1 @@
+object_inspect Int32
-------------- next part --------------
HTML����������������������������...
Download 



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