Skip to content

Commit

Permalink
change initializing @__insert_values at core.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
pacojp committed Oct 7, 2012
1 parent d926dcd commit 4bc84bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/testdata_generater_for_mysql/core.rb
Expand Up @@ -67,7 +67,8 @@ def create_rows(table_name,loops,col_procs)
end
@__table_name = table_name
@__insert_per_rows ||= 100
@__insert_values ||= []
raise 'something wrong' if @__insert_values && @__insert_values.size > 0
@__insert_values = []
@__inserted_rows = 0
@__col_procs = col_procs
unless @__disable_progress_bar
Expand Down

0 comments on commit 4bc84bb

Please sign in to comment.