groonga/groonga — pull request #35 by kou (2012-10-18 15:36:44+00:00)
Title: GRN_OP_GET_VALUE supports vector

With grn_expr based output_columns causes a test failure: https://travis-ci.org/#!/groonga/groonga/jobs/2822514

```
Failure: test_vector_text
<"[[[2]," "[[\"_key\",\"ShortText\"]," "[\"articles\",\"Text\"]]," "[\"gunya-gunya\"," "[\"hello all!\"," "\"hello groonga!\"," "\"hello Senna!\"]]," "[\"groonga\"," "[\"Release!\"," "\"My name is groonga!\"]]]]" == send_command("select Blogs " "--output_columns _key,articles " "--match_columns articles " "--query groonga")>
expected: <"[[[2],[[\"_key\",\"ShortText\"],[\"articles\",\"Text\"]],[\"gunya-gunya\",[\"hello all!\",\"hello groonga!\",\"hello Senna!\"]],[\"groonga\",[\"Release!\",\"My name is groonga!\"]]]]">
actual: <"[[[2],[[\"_key\",\"ShortText\"],[\"articles\",\"Text\"]],[\"gunya-gunya\",\"\\u0003\\n\\u000E\\fhello all!hello groonga!hello Senna!\"],[\"groonga\",\"\\u0002\\b\\u0013Release!My name is groonga!\"]]]">

diff:
"[[[2],[[\"_key\",\"ShortText\"],[\"articles\",\"Text\"]],[\"gunya-gunya\",[\"\\u0003\\n\\u000E\\fhello all!\",\"hello groonga!\",\"hello Senna!\"]],[\"groonga\",[\"\\u0002\\b\\u0013Release!\",\"My name is groonga!\"]]]]"
```

It is the reason of this problem that GRN_OP_GET_VALUE doesn't support vector. GRN_OP_GET_VALUE sets domain but it doesn't set flags that has vector information.

This pull request sets not only domain but also flags.