Navigation Menu

Skip to content

Commit

Permalink
groonga: Don't output WITH_WEIGHT twice
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 23, 2014
1 parent 6ae8838 commit ea0e64d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/droonga/plugins/groonga/column_list.rb
Expand Up @@ -86,12 +86,14 @@ def column_flags(column)
flags << "WITH_SECTION" if column.with_section?
flags << "WITH_WEIGHT" if column.with_weight?
flags << "WITH_POSITION" if column.with_position?
elsif column.scalar?
flags << "COLUMN_SCALAR"
elsif column.vector?
flags << "COLUMN_VECTOR"
else
if column.scalar?
flags << "COLUMN_SCALAR"
elsif column.vector?
flags << "COLUMN_VECTOR"
end
flags << "WITH_WEIGHT" if column.with_weight?
end
flags << "WITH_WEIGHT" if column.with_weight?
flags.join('|')
end
Expand Down

0 comments on commit ea0e64d

Please sign in to comment.