Navigation Menu

Skip to content

Commit

Permalink
index-check: process as Array not String
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 30, 2017
1 parent b80b5bc commit 3216da3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/groonga/client/command-line/groonga-client-index-check.rb
Expand Up @@ -184,10 +184,11 @@ def check_content(index_column)
suffix = Time.now.strftime("%Y%m%d%H%M%S_%N")
new_column_name = "#{column_name}_#{suffix}"
type, source = index_column.sources.first.split(".")
flags = index_column["flags"].sub(/\|PERSISTENT/, '')
flags = index_column["flags"].split("|")
flags.delete("PERSISTENT")
column_create(table_name,
new_column_name,
flags,
flags.join("|"),
type,
source)
begin
Expand Down

0 comments on commit 3216da3

Please sign in to comment.