From f6d2fc5c2f724e136fdecfb9c06595655286b9c1 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Thu, 13 Feb 2020 15:36:42 +0800 Subject: [PATCH] 1 --- lib/tasks/statistic_subject_info.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/statistic_subject_info.rake b/lib/tasks/statistic_subject_info.rake index 9c96f468b..5a7e0f9eb 100644 --- a/lib/tasks/statistic_subject_info.rake +++ b/lib/tasks/statistic_subject_info.rake @@ -28,7 +28,7 @@ namespace :subjects do sql = "REPLACE INTO subject_records(#{column_value}) VALUES #{str.join(",")}" puts sql ActiveRecord::Base.connection.execute sql - str = "" + str = [] buffer_size = 0 end end