[Groonga-commit] ranguba/groonga-client at 3216da3 [master] index-check: process as Array not String

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Oct 30 15:23:51 JST 2017


Kouhei Sutou	2017-10-30 15:23:51 +0900 (Mon, 30 Oct 2017)

  New Revision: 3216da3aa3a8118c24e01237d5e92e4279940269
  https://github.com/ranguba/groonga-client/commit/3216da3aa3a8118c24e01237d5e92e4279940269

  Message:
    index-check: process as Array not String

  Modified files:
    lib/groonga/client/command-line/groonga-client-index-check.rb

  Modified: lib/groonga/client/command-line/groonga-client-index-check.rb (+3 -2)
===================================================================
--- lib/groonga/client/command-line/groonga-client-index-check.rb    2017-10-30 15:22:02 +0900 (37ba2be)
+++ lib/groonga/client/command-line/groonga-client-index-check.rb    2017-10-30 15:23:51 +0900 (1ef5079)
@@ -184,10 +184,11 @@ module Groonga
             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
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20171030/34221fa8/attachment.htm 



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