bulk_insert 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 617835c3fcaa4df1727930d799629a1c6c327537
4
- data.tar.gz: d329fbca56f8be8dc7f79a976843774331eec70e
3
+ metadata.gz: 9a76d84f0be15b3ba8e0186439eca425dc9c9d07
4
+ data.tar.gz: c9fd5eb614204c838fed55e0ee7bc8075dec0b47
5
5
  SHA512:
6
- metadata.gz: 249e90f483244c07d49843619ebd7248b34df29510c2382e1b5f65d3479296e6a1c768d2b00e1d9cc1d3beb58413b2396fa7a13e397ca5b826ec4d15801fde1a
7
- data.tar.gz: 3e1d944d3a19fc3b5803c44118166c96348092bfe1c5651bb1c67d090708ec54dd9c46385404cad4db7b8265e03517dbf7774e77c0cce5dfb247cbbf414a992c
6
+ metadata.gz: 533c701360f76f710a875c40f1a0d6c5d463eb8a64c8b32a9144559e8972b85dbceeedda64fd5b7d74587ebb7bfef426217a6c026aab3c1fe408fe7d96e826b8
7
+ data.tar.gz: 00b3dd6b1c0826ca6c3eec7a64d61f609414be09d266c183e212c6dcc9886c34f731cd7a8d8785e592b6a98eee3933bf25c62c0388d387992308917923ccde61
data/README.md CHANGED
@@ -167,6 +167,24 @@ Book.bulk_insert(*destination_columns, update_duplicates: true) do |worker|
167
167
  end
168
168
  ```
169
169
 
170
+ ### Return Primary Keys (PostgreSQL, PostGIS)
171
+
172
+ If you want the worker to store primary keys of inserted records, then you can
173
+ use the _return_primary_keys_ option. The worker will store a `result_sets`
174
+ array of `ActiveRecord::Result` objects. Each `ActiveRecord::Result` object
175
+ will contain the primary keys of a batch of inserted records.
176
+
177
+ ```ruby
178
+ worker = Book.bulk_insert(*destination_columns, return_primary_keys: true) do
179
+ |worker|
180
+ worker.add(...)
181
+ worker.add(...)
182
+ # ...
183
+ end
184
+
185
+ worker.result_sets
186
+ ```
187
+
170
188
 
171
189
  ## License
172
190
 
@@ -4,9 +4,9 @@ module BulkInsert
4
4
  extend ActiveSupport::Concern
5
5
 
6
6
  module ClassMethods
7
- def bulk_insert(*columns, values: nil, set_size:500, ignore: false, update_duplicates: false)
7
+ def bulk_insert(*columns, values: nil, set_size:500, ignore: false, update_duplicates: false, return_primary_keys: false)
8
8
  columns = default_bulk_columns if columns.empty?
9
- worker = BulkInsert::Worker.new(connection, table_name, columns, set_size, ignore, update_duplicates)
9
+ worker = BulkInsert::Worker.new(connection, table_name, primary_key, columns, set_size, ignore, update_duplicates, return_primary_keys)
10
10
 
11
11
  if values.present?
12
12
  transaction do
@@ -1,6 +1,6 @@
1
1
  module BulkInsert
2
2
  MAJOR = 1
3
- MINOR = 6
3
+ MINOR = 7
4
4
  TINY = 0
5
5
 
6
6
  VERSION = [MAJOR, MINOR, TINY].join(".")
@@ -5,9 +5,9 @@ module BulkInsert
5
5
  attr_accessor :before_save_callback
6
6
  attr_accessor :after_save_callback
7
7
  attr_accessor :adapter_name
8
- attr_reader :ignore, :update_duplicates
8
+ attr_reader :ignore, :update_duplicates, :result_sets
9
9
 
10
- def initialize(connection, table_name, column_names, set_size=500, ignore=false, update_duplicates=false)
10
+ def initialize(connection, table_name, primary_key, column_names, set_size=500, ignore=false, update_duplicates=false, return_primary_keys=false)
11
11
  @connection = connection
12
12
  @set_size = set_size
13
13
 
@@ -15,10 +15,12 @@ module BulkInsert
15
15
  # INSERT IGNORE only fails inserts with duplicate keys or unallowed nulls not the whole set of inserts
16
16
  @ignore = ignore
17
17
  @update_duplicates = update_duplicates
18
+ @return_primary_keys = return_primary_keys
18
19
 
19
20
  columns = connection.columns(table_name)
20
21
  column_map = columns.inject({}) { |h, c| h.update(c.name => c) }
21
22
 
23
+ @primary_key = primary_key
22
24
  @columns = column_names.map { |name| column_map[name.to_s] }
23
25
  @table_name = connection.quote_table_name(table_name)
24
26
  @column_names = column_names.map { |name| connection.quote_column_name(name) }.join(",")
@@ -26,6 +28,7 @@ module BulkInsert
26
28
  @before_save_callback = nil
27
29
  @after_save_callback = nil
28
30
 
31
+ @result_sets = []
29
32
  @set = []
30
33
  end
31
34
 
@@ -76,7 +79,7 @@ module BulkInsert
76
79
  def save!
77
80
  if pending?
78
81
  @before_save_callback.(@set) if @before_save_callback
79
- compose_insert_query.tap { |query| @connection.execute(query) if query }
82
+ execute_query
80
83
  @after_save_callback.() if @after_save_callback
81
84
  @set.clear
82
85
  end
@@ -84,6 +87,13 @@ module BulkInsert
84
87
  self
85
88
  end
86
89
 
90
+ def execute_query
91
+ if query = compose_insert_query
92
+ result_set = @connection.exec_query(query)
93
+ @result_sets.push(result_set) if @return_primary_keys
94
+ end
95
+ end
96
+
87
97
  def compose_insert_query
88
98
  sql = insert_sql_statement
89
99
  @now = Time.now
@@ -107,6 +117,7 @@ module BulkInsert
107
117
  if !rows.empty?
108
118
  sql << rows.join(",")
109
119
  sql << on_conflict_statement
120
+ sql << primary_key_return_statement
110
121
  sql
111
122
  else
112
123
  false
@@ -130,12 +141,20 @@ module BulkInsert
130
141
  end
131
142
  end
132
143
 
144
+ def primary_key_return_statement
145
+ if @return_primary_keys && adapter_name =~ /\APost(?:greSQL|GIS)/i
146
+ " RETURNING #{@primary_key}"
147
+ else
148
+ ''
149
+ end
150
+ end
151
+
133
152
  def on_conflict_statement
134
153
  if (adapter_name =~ /\APost(?:greSQL|GIS)/i && ignore )
135
154
  ' ON CONFLICT DO NOTHING'
136
155
  elsif adapter_name =~ /^mysql/i && update_duplicates
137
156
  update_values = @columns.map do |column|
138
- "#{column.name}=VALUES(#{column.name})"
157
+ "`#{column.name}`=VALUES(`#{column.name}`)"
139
158
  end.join(', ')
140
159
  ' ON DUPLICATE KEY UPDATE ' + update_values
141
160
  else
@@ -5,6 +5,7 @@ class BulkInsertWorkerTest < ActiveSupport::TestCase
5
5
  @insert = BulkInsert::Worker.new(
6
6
  Testing.connection,
7
7
  Testing.table_name,
8
+ 'id',
8
9
  %w(greeting age happy created_at updated_at color))
9
10
  @now = Time.now
10
11
  end
@@ -121,6 +122,53 @@ class BulkInsertWorkerTest < ActiveSupport::TestCase
121
122
  assert_equal true, hello.happy?
122
123
  end
123
124
 
125
+ test "save! does not add to result sets when not returning primary keys" do
126
+ @insert.add greeting: "first"
127
+ @insert.add greeting: "second"
128
+ @insert.save!
129
+
130
+ assert_equal 0, @insert.result_sets.count
131
+ end
132
+
133
+
134
+ test "save! adds to result sets when returning primary keys" do
135
+ worker = BulkInsert::Worker.new(
136
+ Testing.connection,
137
+ Testing.table_name,
138
+ 'id',
139
+ %w(greeting age happy created_at updated_at color),
140
+ 500,
141
+ false,
142
+ false,
143
+ true
144
+ )
145
+
146
+ assert_no_difference -> { worker.result_sets.count } do
147
+ worker.save!
148
+ end
149
+
150
+ worker.add greeting: "first"
151
+ worker.add greeting: "second"
152
+ worker.save!
153
+ assert_equal 1, worker.result_sets.count
154
+
155
+ worker.add greeting: "third"
156
+ worker.add greeting: "fourth"
157
+ worker.save!
158
+ assert_equal 2, worker.result_sets.count
159
+ end
160
+
161
+ test "initialized with empty result sets array" do
162
+ new_worker = BulkInsert::Worker.new(
163
+ Testing.connection,
164
+ Testing.table_name,
165
+ 'id',
166
+ %w(greeting age happy created_at updated_at color)
167
+ )
168
+ assert_instance_of(Array, new_worker.result_sets)
169
+ assert_empty new_worker.result_sets
170
+ end
171
+
124
172
  test "save! calls the after_save handler" do
125
173
  x = 41
126
174
 
@@ -218,13 +266,14 @@ class BulkInsertWorkerTest < ActiveSupport::TestCase
218
266
  assert_equal @insert.insert_sql_statement, "INSERT INTO \"testings\" (\"greeting\",\"age\",\"happy\",\"created_at\",\"updated_at\",\"color\") VALUES "
219
267
 
220
268
  @insert.add ["Yo", 15, false, nil, nil]
221
- assert_equal @insert.compose_insert_query, "INSERT INTO \"testings\" (\"greeting\",\"age\",\"happy\",\"created_at\",\"updated_at\",\"color\") VALUES ('Yo',15,'f',NULL,NULL,'chartreuse')"
269
+ assert_equal @insert.compose_insert_query, "INSERT INTO \"testings\" (\"greeting\",\"age\",\"happy\",\"created_at\",\"updated_at\",\"color\") VALUES ('Yo',15,0,NULL,NULL,'chartreuse')"
222
270
  end
223
271
 
224
272
  test "adapter dependent mysql methods" do
225
273
  mysql_worker = BulkInsert::Worker.new(
226
274
  Testing.connection,
227
275
  Testing.table_name,
276
+ 'id',
228
277
  %w(greeting age happy created_at updated_at color),
229
278
  500, # batch size
230
279
  true) # ignore
@@ -237,13 +286,14 @@ class BulkInsertWorkerTest < ActiveSupport::TestCase
237
286
 
238
287
  mysql_worker.add ["Yo", 15, false, nil, nil]
239
288
 
240
- assert_equal mysql_worker.compose_insert_query, "INSERT IGNORE INTO \"testings\" (\"greeting\",\"age\",\"happy\",\"created_at\",\"updated_at\",\"color\") VALUES ('Yo',15,'f',NULL,NULL,'chartreuse')"
289
+ assert_equal mysql_worker.compose_insert_query, "INSERT IGNORE INTO \"testings\" (\"greeting\",\"age\",\"happy\",\"created_at\",\"updated_at\",\"color\") VALUES ('Yo',15,0,NULL,NULL,'chartreuse')"
241
290
  end
242
291
 
243
292
  test "adapter dependent mysql methods work for mysql2" do
244
293
  mysql_worker = BulkInsert::Worker.new(
245
294
  Testing.connection,
246
295
  Testing.table_name,
296
+ 'id',
247
297
  %w(greeting age happy created_at updated_at color),
248
298
  500, # batch size
249
299
  true, # ignore
@@ -255,13 +305,14 @@ class BulkInsertWorkerTest < ActiveSupport::TestCase
255
305
 
256
306
  mysql_worker.add ["Yo", 15, false, nil, nil]
257
307
 
258
- assert_equal mysql_worker.compose_insert_query, "INSERT IGNORE INTO \"testings\" (\"greeting\",\"age\",\"happy\",\"created_at\",\"updated_at\",\"color\") VALUES ('Yo',15,'f',NULL,NULL,'chartreuse') ON DUPLICATE KEY UPDATE greeting=VALUES(greeting), age=VALUES(age), happy=VALUES(happy), created_at=VALUES(created_at), updated_at=VALUES(updated_at), color=VALUES(color)"
308
+ assert_equal mysql_worker.compose_insert_query, "INSERT IGNORE INTO \"testings\" (\"greeting\",\"age\",\"happy\",\"created_at\",\"updated_at\",\"color\") VALUES ('Yo',15,0,NULL,NULL,'chartreuse') ON DUPLICATE KEY UPDATE `greeting`=VALUES(`greeting`), `age`=VALUES(`age`), `happy`=VALUES(`happy`), `created_at`=VALUES(`created_at`), `updated_at`=VALUES(`updated_at`), `color`=VALUES(`color`)"
259
309
  end
260
310
 
261
311
  test "adapter dependent Mysql2Spatial methods" do
262
312
  mysql_worker = BulkInsert::Worker.new(
263
313
  Testing.connection,
264
314
  Testing.table_name,
315
+ 'id',
265
316
  %w(greeting age happy created_at updated_at color),
266
317
  500, # batch size
267
318
  true) # ignore
@@ -271,65 +322,76 @@ class BulkInsertWorkerTest < ActiveSupport::TestCase
271
322
 
272
323
  mysql_worker.add ["Yo", 15, false, nil, nil]
273
324
 
274
- assert_equal mysql_worker.compose_insert_query, "INSERT IGNORE INTO \"testings\" (\"greeting\",\"age\",\"happy\",\"created_at\",\"updated_at\",\"color\") VALUES ('Yo',15,'f',NULL,NULL,'chartreuse')"
325
+ assert_equal mysql_worker.compose_insert_query, "INSERT IGNORE INTO \"testings\" (\"greeting\",\"age\",\"happy\",\"created_at\",\"updated_at\",\"color\") VALUES ('Yo',15,0,NULL,NULL,'chartreuse')"
275
326
  end
276
327
 
277
328
  test "adapter dependent postgresql methods" do
278
329
  pgsql_worker = BulkInsert::Worker.new(
279
330
  Testing.connection,
280
331
  Testing.table_name,
332
+ 'id',
281
333
  %w(greeting age happy created_at updated_at color),
282
334
  500, # batch size
283
- true) # ignore
335
+ true, # ignore
336
+ false, # update duplicates
337
+ true # return primary keys
338
+ )
284
339
  pgsql_worker.adapter_name = 'PostgreSQL'
285
340
  pgsql_worker.add ["Yo", 15, false, nil, nil]
286
341
 
287
- assert_equal pgsql_worker.compose_insert_query, "INSERT INTO \"testings\" (\"greeting\",\"age\",\"happy\",\"created_at\",\"updated_at\",\"color\") VALUES ('Yo',15,'f',NULL,NULL,'chartreuse') ON CONFLICT DO NOTHING"
342
+ assert_equal pgsql_worker.compose_insert_query, "INSERT INTO \"testings\" (\"greeting\",\"age\",\"happy\",\"created_at\",\"updated_at\",\"color\") VALUES ('Yo',15,0,NULL,NULL,'chartreuse') ON CONFLICT DO NOTHING RETURNING id"
288
343
  end
289
344
 
290
345
  test "adapter dependent PostGIS methods" do
291
346
  pgsql_worker = BulkInsert::Worker.new(
292
347
  Testing.connection,
293
348
  Testing.table_name,
349
+ 'id',
294
350
  %w(greeting age happy created_at updated_at color),
295
351
  500, # batch size
296
- true) # ignore
352
+ true, # ignore
353
+ false, # update duplicates
354
+ true # return primary keys
355
+ )
297
356
  pgsql_worker.adapter_name = 'PostGIS'
298
357
  pgsql_worker.add ["Yo", 15, false, nil, nil]
299
358
 
300
- assert_equal pgsql_worker.compose_insert_query, "INSERT INTO \"testings\" (\"greeting\",\"age\",\"happy\",\"created_at\",\"updated_at\",\"color\") VALUES ('Yo',15,'f',NULL,NULL,'chartreuse') ON CONFLICT DO NOTHING"
359
+ assert_equal pgsql_worker.compose_insert_query, "INSERT INTO \"testings\" (\"greeting\",\"age\",\"happy\",\"created_at\",\"updated_at\",\"color\") VALUES ('Yo',15,0,NULL,NULL,'chartreuse') ON CONFLICT DO NOTHING RETURNING id"
301
360
  end
302
361
 
303
362
  test "adapter dependent sqlite3 methods (with lowercase adapter name)" do
304
363
  sqlite_worker = BulkInsert::Worker.new(
305
364
  Testing.connection,
306
365
  Testing.table_name,
366
+ 'id',
307
367
  %w(greeting age happy created_at updated_at color),
308
368
  500, # batch size
309
369
  true) # ignore
310
370
  sqlite_worker.adapter_name = 'sqlite3'
311
371
  sqlite_worker.add ["Yo", 15, false, nil, nil]
312
372
 
313
- assert_equal sqlite_worker.compose_insert_query, "INSERT OR IGNORE INTO \"testings\" (\"greeting\",\"age\",\"happy\",\"created_at\",\"updated_at\",\"color\") VALUES ('Yo',15,'f',NULL,NULL,'chartreuse')"
373
+ assert_equal sqlite_worker.compose_insert_query, "INSERT OR IGNORE INTO \"testings\" (\"greeting\",\"age\",\"happy\",\"created_at\",\"updated_at\",\"color\") VALUES ('Yo',15,0,NULL,NULL,'chartreuse')"
314
374
  end
315
375
 
316
376
  test "adapter dependent sqlite3 methods (with stylecase adapter name)" do
317
377
  sqlite_worker = BulkInsert::Worker.new(
318
378
  Testing.connection,
319
379
  Testing.table_name,
380
+ 'id',
320
381
  %w(greeting age happy created_at updated_at color),
321
382
  500, # batch size
322
383
  true) # ignore
323
384
  sqlite_worker.adapter_name = 'SQLite'
324
385
  sqlite_worker.add ["Yo", 15, false, nil, nil]
325
386
 
326
- assert_equal sqlite_worker.compose_insert_query, "INSERT OR IGNORE INTO \"testings\" (\"greeting\",\"age\",\"happy\",\"created_at\",\"updated_at\",\"color\") VALUES ('Yo',15,'f',NULL,NULL,'chartreuse')"
387
+ assert_equal sqlite_worker.compose_insert_query, "INSERT OR IGNORE INTO \"testings\" (\"greeting\",\"age\",\"happy\",\"created_at\",\"updated_at\",\"color\") VALUES ('Yo',15,0,NULL,NULL,'chartreuse')"
327
388
  end
328
389
 
329
390
  test "mysql adapter can update duplicates" do
330
391
  mysql_worker = BulkInsert::Worker.new(
331
392
  Testing.connection,
332
393
  Testing.table_name,
394
+ 'id',
333
395
  %w(greeting age happy created_at updated_at color),
334
396
  500, # batch size
335
397
  false, # ignore
@@ -337,6 +399,6 @@ class BulkInsertWorkerTest < ActiveSupport::TestCase
337
399
  mysql_worker.adapter_name = 'MySQL'
338
400
  mysql_worker.add ["Yo", 15, false, nil, nil]
339
401
 
340
- assert_equal mysql_worker.compose_insert_query, "INSERT INTO \"testings\" (\"greeting\",\"age\",\"happy\",\"created_at\",\"updated_at\",\"color\") VALUES ('Yo',15,'f',NULL,NULL,'chartreuse') ON DUPLICATE KEY UPDATE greeting=VALUES(greeting), age=VALUES(age), happy=VALUES(happy), created_at=VALUES(created_at), updated_at=VALUES(updated_at), color=VALUES(color)"
402
+ assert_equal mysql_worker.compose_insert_query, "INSERT INTO \"testings\" (\"greeting\",\"age\",\"happy\",\"created_at\",\"updated_at\",\"color\") VALUES ('Yo',15,0,NULL,NULL,'chartreuse') ON DUPLICATE KEY UPDATE `greeting`=VALUES(`greeting`), `age`=VALUES(`age`), `happy`=VALUES(`happy`), `created_at`=VALUES(`created_at`), `updated_at`=VALUES(`updated_at`), `color`=VALUES(`color`)"
341
403
  end
342
404
  end
@@ -20,10 +20,24 @@ class BulkInsertTest < ActiveSupport::TestCase
20
20
  end
21
21
  end
22
22
 
23
+ test "worker should not have any result sets without option for returning primary keys" do
24
+ worker = Testing.bulk_insert
25
+ worker.add greeting: "hello"
26
+ worker.save!
27
+ assert_empty worker.result_sets
28
+ end
29
+
30
+ test "with option to return primary keys, worker should have result sets" do
31
+ worker = Testing.bulk_insert(return_primary_keys: true)
32
+ worker.add greeting: "yo"
33
+ worker.save!
34
+ assert_equal 1, worker.result_sets.count
35
+ end
36
+
23
37
  test "bulk_insert with array should save the array immediately" do
24
38
  assert_difference "Testing.count", 2 do
25
39
  Testing.bulk_insert values: [
26
- [ "Hello", 15, true, "green" ],
40
+ [ "Hello", 15, true ],
27
41
  { greeting: "Hey", age: 20, happy: false }
28
42
  ]
29
43
  end
@@ -19,8 +19,6 @@ module Dummy
19
19
  # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
20
20
  # config.i18n.default_locale = :de
21
21
 
22
- # Do not swallow errors in after_commit/after_rollback callbacks.
23
- config.active_record.raise_in_transactional_callbacks = true
22
+ config.active_record.sqlite3.represent_boolean_as_integer = true
24
23
  end
25
24
  end
26
-
@@ -5414,3 +5414,3621 @@ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
5414
5414
   (0.0ms) SAVEPOINT active_record_1
5415
5415
   (0.0ms) RELEASE SAVEPOINT active_record_1
5416
5416
   (0.0ms) rollback transaction
5417
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
5418
+  (0.1ms) begin transaction
5419
+ --------------------------------------------------------------------------
5420
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods_work_for_mysql2
5421
+ --------------------------------------------------------------------------
5422
+  (0.1ms) rollback transaction
5423
+  (0.0ms) begin transaction
5424
+ --------------------------------------------------------
5425
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
5426
+ --------------------------------------------------------
5427
+  (0.8ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2018-06-27 14:19:42.577024','2018-06-27 14:19:42.577024','chartreuse'),('Hello',25,'t','2018-06-27 14:19:42.577024','2018-06-27 14:19:42.577024','chartreuse')
5428
+ Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
5429
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
5430
+  (0.4ms) rollback transaction
5431
+  (0.0ms) begin transaction
5432
+ ----------------------------------------------------------------
5433
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
5434
+ ----------------------------------------------------------------
5435
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2018-06-27 14:19:42.588370','2018-06-27 14:19:42.588370',NULL)
5436
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
5437
+  (0.3ms) rollback transaction
5438
+  (0.0ms) begin transaction
5439
+ ------------------------------------------------------------
5440
+ BulkInsertWorkerTest: test_adapter_dependent_default_methods
5441
+ ------------------------------------------------------------
5442
+  (0.0ms) rollback transaction
5443
+  (0.0ms) begin transaction
5444
+ --------------------------------------------------------------------
5445
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
5446
+ --------------------------------------------------------------------
5447
+  (0.0ms) rollback transaction
5448
+  (0.0ms) begin transaction
5449
+ -------------------------------------------------------------------
5450
+ BulkInsertWorkerTest: test_after_save_callback_can_be_set_as_a_proc
5451
+ -------------------------------------------------------------------
5452
+  (0.0ms) rollback transaction
5453
+  (0.0ms) begin transaction
5454
+ -------------------------------------------
5455
+ BulkInsertWorkerTest: test_default_set_size
5456
+ -------------------------------------------
5457
+  (0.0ms) rollback transaction
5458
+  (0.0ms) begin transaction
5459
+ ------------------------------------------------------------------
5460
+ BulkInsertWorkerTest: test_adapter_dependent_Mysql2Spatial_methods
5461
+ ------------------------------------------------------------------
5462
+  (0.0ms) rollback transaction
5463
+  (0.0ms) begin transaction
5464
+ -------------------------------------------------------------------
5465
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
5466
+ -------------------------------------------------------------------
5467
+  (0.0ms) SELECT COUNT(*) FROM "testings"
5468
+  (0.0ms) SELECT COUNT(*) FROM "testings"
5469
+  (0.0ms) rollback transaction
5470
+  (0.0ms) begin transaction
5471
+ ----------------------------------------------------------------
5472
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
5473
+ ----------------------------------------------------------------
5474
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2018-06-27 14:19:42.594305','2018-06-27 14:19:42.594305','chartreuse')
5475
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
5476
+  (0.3ms) rollback transaction
5477
+  (0.0ms) begin transaction
5478
+ ------------------------------------------------------------------------------
5479
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
5480
+ ------------------------------------------------------------------------------
5481
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2018-06-27 14:19:42.595847','2018-06-27 14:19:42.595847','chartreuse')
5482
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
5483
+  (0.3ms) rollback transaction
5484
+  (0.0ms) begin transaction
5485
+ ----------------------------------------------------------
5486
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods
5487
+ ----------------------------------------------------------
5488
+  (0.0ms) rollback transaction
5489
+  (0.0ms) begin transaction
5490
+ ------------------------------------------------------------------------------------------
5491
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_lowercase_adapter_name)
5492
+ ------------------------------------------------------------------------------------------
5493
+  (0.0ms) rollback transaction
5494
+  (0.0ms) begin transaction
5495
+ -------------------------------------------------------------------------------
5496
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
5497
+ -------------------------------------------------------------------------------
5498
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:19:42.598526','2018-06-27 14:19:42.598526','chartreuse')
5499
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
5500
+  (0.3ms) rollback transaction
5501
+  (0.1ms) begin transaction
5502
+ ---------------------------------------------------------
5503
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
5504
+ ---------------------------------------------------------
5505
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:19:42.600161','2018-06-27 14:19:42.600161','chartreuse')
5506
+  (0.3ms) rollback transaction
5507
+  (0.0ms) begin transaction
5508
+ --------------------------------------------------------------------------------------------
5509
+ BulkInsertWorkerTest: test_save!_does_not_add_to_result_sets_when_not_returning_primary_keys
5510
+ --------------------------------------------------------------------------------------------
5511
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:19:42.601380','2018-06-27 14:19:42.601380','chartreuse'),('second',NULL,NULL,'2018-06-27 14:19:42.601380','2018-06-27 14:19:42.601380','chartreuse')
5512
+  (0.2ms) rollback transaction
5513
+  (0.0ms) begin transaction
5514
+ -------------------------------------------------------------
5515
+ BulkInsertWorkerTest: test_save!_calls_the_after_save_handler
5516
+ -------------------------------------------------------------
5517
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2018-06-27 14:19:42.602495','2018-06-27 14:19:42.602495','chartreuse'),('Hello',25,'t','2018-06-27 14:19:42.602495','2018-06-27 14:19:42.602495','chartreuse')
5518
+  (0.2ms) rollback transaction
5519
+  (0.0ms) begin transaction
5520
+ ---------------------------------------------------------------
5521
+ BulkInsertWorkerTest: test_before_save_stores_a_block_as_a_proc
5522
+ ---------------------------------------------------------------
5523
+  (0.0ms) rollback transaction
5524
+  (0.0ms) begin transaction
5525
+ ----------------------------------------------------------------------------------
5526
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
5527
+ ----------------------------------------------------------------------------------
5528
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:19:42.604092','2018-06-27 14:19:42.604092','chartreuse')
5529
+  (0.1ms) SELECT COUNT(*) FROM "testings"
5530
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
5531
+  (0.2ms) rollback transaction
5532
+  (0.0ms) begin transaction
5533
+ --------------------------------------------------------------------------------
5534
+ BulkInsertWorkerTest: test_save!_adds_to_result_sets_when_returning_primary_keys
5535
+ --------------------------------------------------------------------------------
5536
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:19:42.606086','2018-06-27 14:19:42.606086','chartreuse'),('second',NULL,NULL,'2018-06-27 14:19:42.606086','2018-06-27 14:19:42.606086','chartreuse')
5537
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('third',NULL,NULL,'2018-06-27 14:19:42.606742','2018-06-27 14:19:42.606742','chartreuse'),('fourth',NULL,NULL,'2018-06-27 14:19:42.606742','2018-06-27 14:19:42.606742','chartreuse')
5538
+  (0.3ms) rollback transaction
5539
+  (0.0ms) begin transaction
5540
+ --------------------------------------------------------------
5541
+ BulkInsertWorkerTest: test_mysql_adapter_can_update_duplicates
5542
+ --------------------------------------------------------------
5543
+  (0.0ms) rollback transaction
5544
+  (0.0ms) begin transaction
5545
+ -------------------------------------------------------------------
5546
+ BulkInsertWorkerTest: test_initialized_with_empty_result_sets_array
5547
+ -------------------------------------------------------------------
5548
+  (0.0ms) rollback transaction
5549
+  (0.0ms) begin transaction
5550
+ ----------------------------------------------------------------------------
5551
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
5552
+ ----------------------------------------------------------------------------
5553
+  (0.0ms) rollback transaction
5554
+  (0.0ms) begin transaction
5555
+ ------------------------------------------------------------------------------------------
5556
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_stylecase_adapter_name)
5557
+ ------------------------------------------------------------------------------------------
5558
+  (0.0ms) rollback transaction
5559
+  (0.0ms) begin transaction
5560
+ ---------------------------------------------------------------
5561
+ BulkInsertWorkerTest: test_adapter_dependent_postgresql_methods
5562
+ ---------------------------------------------------------------
5563
+  (0.0ms) rollback transaction
5564
+  (0.0ms) begin transaction
5565
+ ---------------------------------------------------------------------
5566
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
5567
+ ---------------------------------------------------------------------
5568
+  (0.0ms) rollback transaction
5569
+  (0.1ms) begin transaction
5570
+ --------------------------------------------------------------------
5571
+ BulkInsertWorkerTest: test_before_save_callback_can_be_set_as_a_proc
5572
+ --------------------------------------------------------------------
5573
+  (0.0ms) rollback transaction
5574
+  (0.0ms) begin transaction
5575
+ ----------------------------------------------------------------------------------------------
5576
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
5577
+ ----------------------------------------------------------------------------------------------
5578
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:19:42.612629','2018-06-27 14:19:42.612629','chartreuse'),('Howdy',20,'f','2018-06-27 14:19:42.612629','2018-06-27 14:19:42.612629','chartreuse')
5579
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings"
5580
+  (0.3ms) rollback transaction
5581
+  (0.0ms) begin transaction
5582
+ --------------------------------------------------------------
5583
+ BulkInsertWorkerTest: test_after_save_stores_a_block_as_a_proc
5584
+ --------------------------------------------------------------
5585
+  (0.0ms) rollback transaction
5586
+  (0.0ms) begin transaction
5587
+ --------------------------------------------------------------
5588
+ BulkInsertWorkerTest: test_save!_calls_the_before_save_handler
5589
+ --------------------------------------------------------------
5590
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2018-06-27 14:19:42.615014','2018-06-27 14:19:42.615014','chartreuse'),('Hello',25,'t','2018-06-27 14:19:42.615014','2018-06-27 14:19:42.615014','chartreuse')
5591
+  (0.2ms) rollback transaction
5592
+  (0.0ms) begin transaction
5593
+ -------------------------------------------------------------
5594
+ BulkInsertWorkerTest: test_before_save_can_manipulate_the_set
5595
+ -------------------------------------------------------------
5596
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',25,'t','2018-06-27 14:19:42.616197','2018-06-27 14:19:42.616197','chartreuse')
5597
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
5598
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
5599
+  (0.2ms) rollback transaction
5600
+  (0.0ms) begin transaction
5601
+ ------------------------------------------------------------
5602
+ BulkInsertWorkerTest: test_adapter_dependent_PostGIS_methods
5603
+ ------------------------------------------------------------
5604
+  (0.0ms) rollback transaction
5605
+  (0.1ms) begin transaction
5606
+ --------------------------------------------------------------------------------
5607
+ BulkInsertWorkerTest: test_save!_doesn't_blow_up_if_before_save_emptying_the_set
5608
+ --------------------------------------------------------------------------------
5609
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
5610
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
5611
+  (0.0ms) rollback transaction
5612
+  (0.0ms) begin transaction
5613
+ ------------------------------------------------------
5614
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
5615
+ ------------------------------------------------------
5616
+  (0.1ms) rollback transaction
5617
+  (0.0ms) begin transaction
5618
+ -----------------------------------------------------------------------------
5619
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
5620
+ -----------------------------------------------------------------------------
5621
+  (0.1ms) SELECT COUNT(*) FROM "testings"
5622
+  (0.0ms) SAVEPOINT active_record_1
5623
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2018-06-27 14:19:42.620810','chartreuse'),('Hey',20,'f','2018-06-27 14:19:42.620810','2018-06-27 14:19:42.620810','chartreuse')
5624
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5625
+  (0.0ms) SELECT COUNT(*) FROM "testings"
5626
+  (0.3ms) rollback transaction
5627
+  (0.0ms) begin transaction
5628
+ ---------------------------------------------------------------
5629
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
5630
+ ---------------------------------------------------------------
5631
+  (0.0ms) SAVEPOINT active_record_1
5632
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5633
+  (0.0ms) rollback transaction
5634
+  (0.0ms) begin transaction
5635
+ ---------------------------------------------------------------------------------------
5636
+ BulkInsertTest: test_with_option_to_return_primary_keys,_worker_should_have_result_sets
5637
+ ---------------------------------------------------------------------------------------
5638
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('yo',NULL,NULL,'2018-06-27 14:19:42.622973','2018-06-27 14:19:42.622973','chartreuse')
5639
+  (0.4ms) rollback transaction
5640
+  (0.2ms) begin transaction
5641
+ -------------------------------------------------------------------
5642
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
5643
+ -------------------------------------------------------------------
5644
+  (0.1ms) rollback transaction
5645
+  (0.1ms) begin transaction
5646
+ ------------------------------------------------------------------------------
5647
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
5648
+ ------------------------------------------------------------------------------
5649
+  (0.0ms) rollback transaction
5650
+  (0.0ms) begin transaction
5651
+ -----------------------------------------------------------------------------------------------------
5652
+ BulkInsertTest: test_worker_should_not_have_any_result_sets_without_option_for_returning_primary_keys
5653
+ -----------------------------------------------------------------------------------------------------
5654
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('hello',NULL,NULL,'2018-06-27 14:19:42.626887','2018-06-27 14:19:42.626887','chartreuse')
5655
+  (0.3ms) rollback transaction
5656
+  (0.0ms) begin transaction
5657
+ ---------------------------------------------------------------------
5658
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
5659
+ ---------------------------------------------------------------------
5660
+  (0.1ms) SELECT COUNT(*) FROM "testings"
5661
+  (0.0ms) SAVEPOINT active_record_1
5662
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2018-06-27 14:19:42.628591','2018-06-27 14:19:42.628591','chartreuse')
5663
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5664
+  (0.0ms) SELECT COUNT(*) FROM "testings"
5665
+  (0.4ms) rollback transaction
5666
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5667
+  (0.1ms) begin transaction
5668
+ -------------------------------------------------------------------
5669
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
5670
+ -------------------------------------------------------------------
5671
+  (0.0ms) rollback transaction
5672
+  (0.0ms) begin transaction
5673
+ ---------------------------------------------------------------------
5674
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
5675
+ ---------------------------------------------------------------------
5676
+  (0.1ms) SELECT COUNT(*) FROM "testings"
5677
+  (0.0ms) SAVEPOINT active_record_1
5678
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2018-06-27 14:23:53.702249','2018-06-27 14:23:53.702249','chartreuse')
5679
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5680
+  (0.0ms) SELECT COUNT(*) FROM "testings"
5681
+  (2.2ms) rollback transaction
5682
+  (0.0ms) begin transaction
5683
+ ---------------------------------------------------------------------------------------
5684
+ BulkInsertTest: test_with_option_to_return_primary_keys,_worker_should_have_result_sets
5685
+ ---------------------------------------------------------------------------------------
5686
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('yo',NULL,NULL,'2018-06-27 14:23:53.708185','2018-06-27 14:23:53.708185','chartreuse')
5687
+  (0.3ms) rollback transaction
5688
+  (0.1ms) begin transaction
5689
+ ------------------------------------------------------------------------------
5690
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
5691
+ ------------------------------------------------------------------------------
5692
+  (0.0ms) rollback transaction
5693
+  (0.0ms) begin transaction
5694
+ -----------------------------------------------------------------------------------------------------
5695
+ BulkInsertTest: test_worker_should_not_have_any_result_sets_without_option_for_returning_primary_keys
5696
+ -----------------------------------------------------------------------------------------------------
5697
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('hello',NULL,NULL,'2018-06-27 14:23:53.709903','2018-06-27 14:23:53.709903','chartreuse')
5698
+  (0.3ms) rollback transaction
5699
+  (0.0ms) begin transaction
5700
+ -----------------------------------------------------------------------------
5701
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
5702
+ -----------------------------------------------------------------------------
5703
+  (0.1ms) SELECT COUNT(*) FROM "testings"
5704
+  (0.0ms) SAVEPOINT active_record_1
5705
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2018-06-27 14:23:53.711479','chartreuse'),('Hey',20,'f','2018-06-27 14:23:53.711479','2018-06-27 14:23:53.711479','chartreuse')
5706
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5707
+  (0.0ms) SELECT COUNT(*) FROM "testings"
5708
+  (0.3ms) rollback transaction
5709
+  (0.0ms) begin transaction
5710
+ ---------------------------------------------------------------
5711
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
5712
+ ---------------------------------------------------------------
5713
+  (0.0ms) SAVEPOINT active_record_1
5714
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5715
+  (0.0ms) rollback transaction
5716
+  (0.0ms) begin transaction
5717
+ -------------------------------------------------------------------
5718
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
5719
+ -------------------------------------------------------------------
5720
+  (0.0ms) SELECT COUNT(*) FROM "testings"
5721
+  (0.0ms) SELECT COUNT(*) FROM "testings"
5722
+  (0.0ms) rollback transaction
5723
+  (0.0ms) begin transaction
5724
+ --------------------------------------------------------
5725
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
5726
+ --------------------------------------------------------
5727
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2018-06-27 14:23:53.715069','2018-06-27 14:23:53.715069','chartreuse'),('Hello',25,'t','2018-06-27 14:23:53.715069','2018-06-27 14:23:53.715069','chartreuse')
5728
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
5729
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
5730
+  (0.4ms) rollback transaction
5731
+  (0.0ms) begin transaction
5732
+ -------------------------------------------------------------------------------
5733
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
5734
+ -------------------------------------------------------------------------------
5735
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:23:53.722933','2018-06-27 14:23:53.722933','chartreuse')
5736
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
5737
+  (0.3ms) rollback transaction
5738
+  (0.0ms) begin transaction
5739
+ ---------------------------------------------------------
5740
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
5741
+ ---------------------------------------------------------
5742
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:23:53.724746','2018-06-27 14:23:53.724746','chartreuse')
5743
+  (0.2ms) rollback transaction
5744
+  (0.0ms) begin transaction
5745
+ --------------------------------------------------------------------
5746
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
5747
+ --------------------------------------------------------------------
5748
+  (0.0ms) rollback transaction
5749
+  (0.0ms) begin transaction
5750
+ ------------------------------------------------------------
5751
+ BulkInsertWorkerTest: test_adapter_dependent_PostGIS_methods
5752
+ ------------------------------------------------------------
5753
+  (0.0ms) rollback transaction
5754
+  (0.0ms) begin transaction
5755
+ --------------------------------------------------------------------------------
5756
+ BulkInsertWorkerTest: test_save!_doesn't_blow_up_if_before_save_emptying_the_set
5757
+ --------------------------------------------------------------------------------
5758
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
5759
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
5760
+  (0.0ms) rollback transaction
5761
+  (0.0ms) begin transaction
5762
+ ------------------------------------------------------
5763
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
5764
+ ------------------------------------------------------
5765
+  (0.1ms) rollback transaction
5766
+  (0.0ms) begin transaction
5767
+ --------------------------------------------------------------
5768
+ BulkInsertWorkerTest: test_mysql_adapter_can_update_duplicates
5769
+ --------------------------------------------------------------
5770
+  (0.0ms) rollback transaction
5771
+  (0.0ms) begin transaction
5772
+ ----------------------------------------------------------------
5773
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
5774
+ ----------------------------------------------------------------
5775
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2018-06-27 14:23:53.729195','2018-06-27 14:23:53.729195',NULL)
5776
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
5777
+  (0.3ms) rollback transaction
5778
+  (0.0ms) begin transaction
5779
+ --------------------------------------------------------------
5780
+ BulkInsertWorkerTest: test_save!_calls_the_before_save_handler
5781
+ --------------------------------------------------------------
5782
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2018-06-27 14:23:53.730612','2018-06-27 14:23:53.730612','chartreuse'),('Hello',25,'t','2018-06-27 14:23:53.730612','2018-06-27 14:23:53.730612','chartreuse')
5783
+  (0.3ms) rollback transaction
5784
+  (0.0ms) begin transaction
5785
+ ----------------------------------------------------------
5786
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods
5787
+ ----------------------------------------------------------
5788
+  (0.0ms) rollback transaction
5789
+  (0.0ms) begin transaction
5790
+ --------------------------------------------------------------------------------
5791
+ BulkInsertWorkerTest: test_save!_adds_to_result_sets_when_returning_primary_keys
5792
+ --------------------------------------------------------------------------------
5793
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:23:53.733113','2018-06-27 14:23:53.733113','chartreuse'),('second',NULL,NULL,'2018-06-27 14:23:53.733113','2018-06-27 14:23:53.733113','chartreuse')
5794
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('third',NULL,NULL,'2018-06-27 14:23:53.733640','2018-06-27 14:23:53.733640','chartreuse'),('fourth',NULL,NULL,'2018-06-27 14:23:53.733640','2018-06-27 14:23:53.733640','chartreuse')
5795
+  (0.3ms) rollback transaction
5796
+  (0.0ms) begin transaction
5797
+ ----------------------------------------------------------------------------------
5798
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
5799
+ ----------------------------------------------------------------------------------
5800
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:23:53.734700','2018-06-27 14:23:53.734700','chartreuse')
5801
+  (0.0ms) SELECT COUNT(*) FROM "testings"
5802
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
5803
+  (0.3ms) rollback transaction
5804
+  (0.1ms) begin transaction
5805
+ ------------------------------------------------------------
5806
+ BulkInsertWorkerTest: test_adapter_dependent_default_methods
5807
+ ------------------------------------------------------------
5808
+  (0.0ms) rollback transaction
5809
+  (0.0ms) begin transaction
5810
+ --------------------------------------------------------------------
5811
+ BulkInsertWorkerTest: test_before_save_callback_can_be_set_as_a_proc
5812
+ --------------------------------------------------------------------
5813
+  (0.0ms) rollback transaction
5814
+  (0.0ms) begin transaction
5815
+ -------------------------------------------------------------
5816
+ BulkInsertWorkerTest: test_before_save_can_manipulate_the_set
5817
+ -------------------------------------------------------------
5818
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',25,'t','2018-06-27 14:23:53.737847','2018-06-27 14:23:53.737847','chartreuse')
5819
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
5820
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
5821
+  (0.3ms) rollback transaction
5822
+  (0.0ms) begin transaction
5823
+ ------------------------------------------------------------------------------------------
5824
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_lowercase_adapter_name)
5825
+ ------------------------------------------------------------------------------------------
5826
+  (0.0ms) rollback transaction
5827
+  (0.0ms) begin transaction
5828
+ -------------------------------------------------------------------
5829
+ BulkInsertWorkerTest: test_after_save_callback_can_be_set_as_a_proc
5830
+ -------------------------------------------------------------------
5831
+  (0.0ms) rollback transaction
5832
+  (0.0ms) begin transaction
5833
+ ----------------------------------------------------------------------------
5834
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
5835
+ ----------------------------------------------------------------------------
5836
+  (0.0ms) rollback transaction
5837
+  (0.0ms) begin transaction
5838
+ ---------------------------------------------------------------
5839
+ BulkInsertWorkerTest: test_adapter_dependent_postgresql_methods
5840
+ ---------------------------------------------------------------
5841
+  (0.0ms) rollback transaction
5842
+  (0.0ms) begin transaction
5843
+ -------------------------------------------------------------------
5844
+ BulkInsertWorkerTest: test_initialized_with_empty_result_sets_array
5845
+ -------------------------------------------------------------------
5846
+  (0.0ms) rollback transaction
5847
+  (0.1ms) begin transaction
5848
+ ----------------------------------------------------------------
5849
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
5850
+ ----------------------------------------------------------------
5851
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2018-06-27 14:23:53.743034','2018-06-27 14:23:53.743034','chartreuse')
5852
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
5853
+  (0.3ms) rollback transaction
5854
+  (0.0ms) begin transaction
5855
+ ---------------------------------------------------------------------
5856
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
5857
+ ---------------------------------------------------------------------
5858
+  (0.0ms) rollback transaction
5859
+  (0.0ms) begin transaction
5860
+ ------------------------------------------------------------------------------
5861
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
5862
+ ------------------------------------------------------------------------------
5863
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2018-06-27 14:23:53.745182','2018-06-27 14:23:53.745182','chartreuse')
5864
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
5865
+  (0.3ms) rollback transaction
5866
+  (0.0ms) begin transaction
5867
+ -------------------------------------------
5868
+ BulkInsertWorkerTest: test_default_set_size
5869
+ -------------------------------------------
5870
+  (0.0ms) rollback transaction
5871
+  (0.0ms) begin transaction
5872
+ --------------------------------------------------------------------------------------------
5873
+ BulkInsertWorkerTest: test_save!_does_not_add_to_result_sets_when_not_returning_primary_keys
5874
+ --------------------------------------------------------------------------------------------
5875
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:23:53.747091','2018-06-27 14:23:53.747091','chartreuse'),('second',NULL,NULL,'2018-06-27 14:23:53.747091','2018-06-27 14:23:53.747091','chartreuse')
5876
+  (0.3ms) rollback transaction
5877
+  (0.0ms) begin transaction
5878
+ ---------------------------------------------------------------
5879
+ BulkInsertWorkerTest: test_before_save_stores_a_block_as_a_proc
5880
+ ---------------------------------------------------------------
5881
+  (0.0ms) rollback transaction
5882
+  (0.0ms) begin transaction
5883
+ --------------------------------------------------------------
5884
+ BulkInsertWorkerTest: test_after_save_stores_a_block_as_a_proc
5885
+ --------------------------------------------------------------
5886
+  (0.0ms) rollback transaction
5887
+  (0.0ms) begin transaction
5888
+ -------------------------------------------------------------
5889
+ BulkInsertWorkerTest: test_save!_calls_the_after_save_handler
5890
+ -------------------------------------------------------------
5891
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2018-06-27 14:23:53.749226','2018-06-27 14:23:53.749226','chartreuse'),('Hello',25,'t','2018-06-27 14:23:53.749226','2018-06-27 14:23:53.749226','chartreuse')
5892
+  (0.3ms) rollback transaction
5893
+  (0.0ms) begin transaction
5894
+ --------------------------------------------------------------------------
5895
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods_work_for_mysql2
5896
+ --------------------------------------------------------------------------
5897
+  (0.0ms) rollback transaction
5898
+  (0.0ms) begin transaction
5899
+ ----------------------------------------------------------------------------------------------
5900
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
5901
+ ----------------------------------------------------------------------------------------------
5902
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:23:53.751254','2018-06-27 14:23:53.751254','chartreuse'),('Howdy',20,'f','2018-06-27 14:23:53.751254','2018-06-27 14:23:53.751254','chartreuse')
5903
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings"
5904
+  (0.3ms) rollback transaction
5905
+  (0.0ms) begin transaction
5906
+ ------------------------------------------------------------------------------------------
5907
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_stylecase_adapter_name)
5908
+ ------------------------------------------------------------------------------------------
5909
+  (0.0ms) rollback transaction
5910
+  (0.0ms) begin transaction
5911
+ ------------------------------------------------------------------
5912
+ BulkInsertWorkerTest: test_adapter_dependent_Mysql2Spatial_methods
5913
+ ------------------------------------------------------------------
5914
+  (0.0ms) rollback transaction
5915
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5916
+  (0.1ms) begin transaction
5917
+ -------------------------------------------------------------------
5918
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
5919
+ -------------------------------------------------------------------
5920
+  (0.1ms) SELECT COUNT(*) FROM "testings"
5921
+  (0.0ms) SELECT COUNT(*) FROM "testings"
5922
+  (0.0ms) rollback transaction
5923
+  (0.0ms) begin transaction
5924
+ --------------------------------------------------------------------------
5925
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods_work_for_mysql2
5926
+ --------------------------------------------------------------------------
5927
+  (0.0ms) rollback transaction
5928
+  (0.0ms) begin transaction
5929
+ --------------------------------------------------------------------
5930
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
5931
+ --------------------------------------------------------------------
5932
+  (0.0ms) rollback transaction
5933
+  (0.0ms) begin transaction
5934
+ ------------------------------------------------------------
5935
+ BulkInsertWorkerTest: test_adapter_dependent_default_methods
5936
+ ------------------------------------------------------------
5937
+  (0.0ms) rollback transaction
5938
+  (0.0ms) begin transaction
5939
+ ------------------------------------------------------
5940
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
5941
+ ------------------------------------------------------
5942
+  (0.0ms) rollback transaction
5943
+  (0.0ms) begin transaction
5944
+ --------------------------------------------------------------
5945
+ BulkInsertWorkerTest: test_after_save_stores_a_block_as_a_proc
5946
+ --------------------------------------------------------------
5947
+  (0.0ms) rollback transaction
5948
+  (0.0ms) begin transaction
5949
+ ------------------------------------------------------------------------------------------
5950
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_lowercase_adapter_name)
5951
+ ------------------------------------------------------------------------------------------
5952
+  (0.0ms) rollback transaction
5953
+  (0.0ms) begin transaction
5954
+ ----------------------------------------------------------------------------------
5955
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
5956
+ ----------------------------------------------------------------------------------
5957
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:24:36.522079','2018-06-27 14:24:36.522079','chartreuse')
5958
+  (0.0ms) SELECT COUNT(*) FROM "testings"
5959
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
5960
+  (2.2ms) rollback transaction
5961
+  (0.0ms) begin transaction
5962
+ --------------------------------------------------------------------
5963
+ BulkInsertWorkerTest: test_before_save_callback_can_be_set_as_a_proc
5964
+ --------------------------------------------------------------------
5965
+  (0.0ms) rollback transaction
5966
+  (0.0ms) begin transaction
5967
+ ------------------------------------------------------------------------------
5968
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
5969
+ ------------------------------------------------------------------------------
5970
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2018-06-27 14:24:36.530274','2018-06-27 14:24:36.530274','chartreuse')
5971
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
5972
+  (0.3ms) rollback transaction
5973
+  (0.0ms) begin transaction
5974
+ -------------------------------------------------------------
5975
+ BulkInsertWorkerTest: test_save!_calls_the_after_save_handler
5976
+ -------------------------------------------------------------
5977
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2018-06-27 14:24:36.531999','2018-06-27 14:24:36.531999','chartreuse'),('Hello',25,'t','2018-06-27 14:24:36.531999','2018-06-27 14:24:36.531999','chartreuse')
5978
+  (0.4ms) rollback transaction
5979
+  (0.0ms) begin transaction
5980
+ ----------------------------------------------------------------
5981
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
5982
+ ----------------------------------------------------------------
5983
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2018-06-27 14:24:36.533471','2018-06-27 14:24:36.533471',NULL)
5984
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
5985
+  (0.3ms) rollback transaction
5986
+  (0.0ms) begin transaction
5987
+ ---------------------------------------------------------
5988
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
5989
+ ---------------------------------------------------------
5990
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:24:36.534854','2018-06-27 14:24:36.534854','chartreuse')
5991
+  (0.3ms) rollback transaction
5992
+  (0.0ms) begin transaction
5993
+ --------------------------------------------------------
5994
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
5995
+ --------------------------------------------------------
5996
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2018-06-27 14:24:36.535921','2018-06-27 14:24:36.535921','chartreuse'),('Hello',25,'t','2018-06-27 14:24:36.535921','2018-06-27 14:24:36.535921','chartreuse')
5997
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
5998
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
5999
+  (0.3ms) rollback transaction
6000
+  (0.0ms) begin transaction
6001
+ ----------------------------------------------------------------------------
6002
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
6003
+ ----------------------------------------------------------------------------
6004
+  (0.0ms) rollback transaction
6005
+  (0.0ms) begin transaction
6006
+ -------------------------------------------
6007
+ BulkInsertWorkerTest: test_default_set_size
6008
+ -------------------------------------------
6009
+  (0.0ms) rollback transaction
6010
+  (0.0ms) begin transaction
6011
+ ---------------------------------------------------------------------
6012
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
6013
+ ---------------------------------------------------------------------
6014
+  (0.0ms) rollback transaction
6015
+  (0.0ms) begin transaction
6016
+ --------------------------------------------------------------------------------
6017
+ BulkInsertWorkerTest: test_save!_adds_to_result_sets_when_returning_primary_keys
6018
+ --------------------------------------------------------------------------------
6019
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:24:36.542156','2018-06-27 14:24:36.542156','chartreuse'),('second',NULL,NULL,'2018-06-27 14:24:36.542156','2018-06-27 14:24:36.542156','chartreuse')
6020
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('third',NULL,NULL,'2018-06-27 14:24:36.542574','2018-06-27 14:24:36.542574','chartreuse'),('fourth',NULL,NULL,'2018-06-27 14:24:36.542574','2018-06-27 14:24:36.542574','chartreuse')
6021
+  (0.3ms) rollback transaction
6022
+  (0.0ms) begin transaction
6023
+ ----------------------------------------------------------------------------------------------
6024
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
6025
+ ----------------------------------------------------------------------------------------------
6026
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:24:36.543532','2018-06-27 14:24:36.543532','chartreuse'),('Howdy',20,'f','2018-06-27 14:24:36.543532','2018-06-27 14:24:36.543532','chartreuse')
6027
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings"
6028
+  (0.3ms) rollback transaction
6029
+  (0.0ms) begin transaction
6030
+ --------------------------------------------------------------------------------
6031
+ BulkInsertWorkerTest: test_save!_doesn't_blow_up_if_before_save_emptying_the_set
6032
+ --------------------------------------------------------------------------------
6033
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
6034
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
6035
+  (0.0ms) rollback transaction
6036
+  (0.0ms) begin transaction
6037
+ ----------------------------------------------------------------
6038
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
6039
+ ----------------------------------------------------------------
6040
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2018-06-27 14:24:36.546092','2018-06-27 14:24:36.546092','chartreuse')
6041
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
6042
+  (0.3ms) rollback transaction
6043
+  (0.0ms) begin transaction
6044
+ ------------------------------------------------------------
6045
+ BulkInsertWorkerTest: test_adapter_dependent_PostGIS_methods
6046
+ ------------------------------------------------------------
6047
+  (0.0ms) rollback transaction
6048
+  (0.0ms) begin transaction
6049
+ -------------------------------------------------------------
6050
+ BulkInsertWorkerTest: test_before_save_can_manipulate_the_set
6051
+ -------------------------------------------------------------
6052
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',25,'t','2018-06-27 14:24:36.548504','2018-06-27 14:24:36.548504','chartreuse')
6053
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
6054
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
6055
+  (0.3ms) rollback transaction
6056
+  (0.0ms) begin transaction
6057
+ -------------------------------------------------------------------
6058
+ BulkInsertWorkerTest: test_initialized_with_empty_result_sets_array
6059
+ -------------------------------------------------------------------
6060
+  (0.0ms) rollback transaction
6061
+  (0.0ms) begin transaction
6062
+ -------------------------------------------------------------------------------
6063
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
6064
+ -------------------------------------------------------------------------------
6065
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:24:36.550831','2018-06-27 14:24:36.550831','chartreuse')
6066
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
6067
+  (0.3ms) rollback transaction
6068
+  (0.0ms) begin transaction
6069
+ --------------------------------------------------------------
6070
+ BulkInsertWorkerTest: test_save!_calls_the_before_save_handler
6071
+ --------------------------------------------------------------
6072
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2018-06-27 14:24:36.552428','2018-06-27 14:24:36.552428','chartreuse'),('Hello',25,'t','2018-06-27 14:24:36.552428','2018-06-27 14:24:36.552428','chartreuse')
6073
+  (0.3ms) rollback transaction
6074
+  (0.0ms) begin transaction
6075
+ -------------------------------------------------------------------
6076
+ BulkInsertWorkerTest: test_after_save_callback_can_be_set_as_a_proc
6077
+ -------------------------------------------------------------------
6078
+  (0.0ms) rollback transaction
6079
+  (0.0ms) begin transaction
6080
+ --------------------------------------------------------------------------------------------
6081
+ BulkInsertWorkerTest: test_save!_does_not_add_to_result_sets_when_not_returning_primary_keys
6082
+ --------------------------------------------------------------------------------------------
6083
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:24:36.554263','2018-06-27 14:24:36.554263','chartreuse'),('second',NULL,NULL,'2018-06-27 14:24:36.554263','2018-06-27 14:24:36.554263','chartreuse')
6084
+  (0.3ms) rollback transaction
6085
+  (0.0ms) begin transaction
6086
+ ------------------------------------------------------------------------------------------
6087
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_stylecase_adapter_name)
6088
+ ------------------------------------------------------------------------------------------
6089
+  (0.0ms) rollback transaction
6090
+  (0.0ms) begin transaction
6091
+ ----------------------------------------------------------
6092
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods
6093
+ ----------------------------------------------------------
6094
+  (0.0ms) rollback transaction
6095
+  (0.0ms) begin transaction
6096
+ ---------------------------------------------------------------
6097
+ BulkInsertWorkerTest: test_before_save_stores_a_block_as_a_proc
6098
+ ---------------------------------------------------------------
6099
+  (0.0ms) rollback transaction
6100
+  (0.0ms) begin transaction
6101
+ --------------------------------------------------------------
6102
+ BulkInsertWorkerTest: test_mysql_adapter_can_update_duplicates
6103
+ --------------------------------------------------------------
6104
+  (0.0ms) rollback transaction
6105
+  (0.0ms) begin transaction
6106
+ ---------------------------------------------------------------
6107
+ BulkInsertWorkerTest: test_adapter_dependent_postgresql_methods
6108
+ ---------------------------------------------------------------
6109
+  (0.0ms) rollback transaction
6110
+  (0.0ms) begin transaction
6111
+ ------------------------------------------------------------------
6112
+ BulkInsertWorkerTest: test_adapter_dependent_Mysql2Spatial_methods
6113
+ ------------------------------------------------------------------
6114
+  (0.0ms) rollback transaction
6115
+  (0.0ms) begin transaction
6116
+ -----------------------------------------------------------------------------
6117
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
6118
+ -----------------------------------------------------------------------------
6119
+  (0.1ms) SELECT COUNT(*) FROM "testings"
6120
+  (0.0ms) SAVEPOINT active_record_1
6121
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2018-06-27 14:24:36.561049','chartreuse'),('Hey',20,'f','2018-06-27 14:24:36.561049','2018-06-27 14:24:36.561049','chartreuse')
6122
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6123
+  (0.0ms) SELECT COUNT(*) FROM "testings"
6124
+  (0.3ms) rollback transaction
6125
+  (0.1ms) begin transaction
6126
+ ---------------------------------------------------------------
6127
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
6128
+ ---------------------------------------------------------------
6129
+  (0.0ms) SAVEPOINT active_record_1
6130
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6131
+  (0.0ms) rollback transaction
6132
+  (0.0ms) begin transaction
6133
+ ---------------------------------------------------------------------
6134
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
6135
+ ---------------------------------------------------------------------
6136
+  (0.1ms) SELECT COUNT(*) FROM "testings"
6137
+  (0.0ms) SAVEPOINT active_record_1
6138
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2018-06-27 14:24:36.563551','2018-06-27 14:24:36.563551','chartreuse')
6139
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6140
+  (0.0ms) SELECT COUNT(*) FROM "testings"
6141
+  (0.2ms) rollback transaction
6142
+  (0.0ms) begin transaction
6143
+ ---------------------------------------------------------------------------------------
6144
+ BulkInsertTest: test_with_option_to_return_primary_keys,_worker_should_have_result_sets
6145
+ ---------------------------------------------------------------------------------------
6146
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('yo',NULL,NULL,'2018-06-27 14:24:36.564912','2018-06-27 14:24:36.564912','chartreuse')
6147
+  (0.3ms) rollback transaction
6148
+  (0.1ms) begin transaction
6149
+ -------------------------------------------------------------------
6150
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
6151
+ -------------------------------------------------------------------
6152
+  (0.0ms) rollback transaction
6153
+  (0.0ms) begin transaction
6154
+ ------------------------------------------------------------------------------
6155
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
6156
+ ------------------------------------------------------------------------------
6157
+  (0.0ms) rollback transaction
6158
+  (0.0ms) begin transaction
6159
+ -----------------------------------------------------------------------------------------------------
6160
+ BulkInsertTest: test_worker_should_not_have_any_result_sets_without_option_for_returning_primary_keys
6161
+ -----------------------------------------------------------------------------------------------------
6162
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('hello',NULL,NULL,'2018-06-27 14:24:36.566911','2018-06-27 14:24:36.566911','chartreuse')
6163
+  (0.3ms) rollback transaction
6164
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
6165
+  (0.1ms) begin transaction
6166
+ --------------------------------------------------------------
6167
+ BulkInsertWorkerTest: test_mysql_adapter_can_update_duplicates
6168
+ --------------------------------------------------------------
6169
+  (0.0ms) rollback transaction
6170
+  (0.0ms) begin transaction
6171
+ ---------------------------------------------------------------
6172
+ BulkInsertWorkerTest: test_before_save_stores_a_block_as_a_proc
6173
+ ---------------------------------------------------------------
6174
+  (0.0ms) rollback transaction
6175
+  (0.0ms) begin transaction
6176
+ --------------------------------------------------------------------------------
6177
+ BulkInsertWorkerTest: test_save!_doesn't_blow_up_if_before_save_emptying_the_set
6178
+ --------------------------------------------------------------------------------
6179
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
6180
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
6181
+  (0.0ms) rollback transaction
6182
+  (0.0ms) begin transaction
6183
+ ------------------------------------------------------
6184
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
6185
+ ------------------------------------------------------
6186
+  (0.0ms) rollback transaction
6187
+  (0.0ms) begin transaction
6188
+ -------------------------------------------------------------------
6189
+ BulkInsertWorkerTest: test_after_save_callback_can_be_set_as_a_proc
6190
+ -------------------------------------------------------------------
6191
+  (0.0ms) rollback transaction
6192
+  (0.0ms) begin transaction
6193
+ --------------------------------------------------------------------
6194
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
6195
+ --------------------------------------------------------------------
6196
+  (0.0ms) rollback transaction
6197
+  (0.0ms) begin transaction
6198
+ -------------------------------------------------------------
6199
+ BulkInsertWorkerTest: test_save!_calls_the_after_save_handler
6200
+ -------------------------------------------------------------
6201
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2018-06-27 14:26:59.774802','2018-06-27 14:26:59.774802','chartreuse'),('Hello',25,'t','2018-06-27 14:26:59.774802','2018-06-27 14:26:59.774802','chartreuse')
6202
+  (2.2ms) rollback transaction
6203
+  (0.1ms) begin transaction
6204
+ --------------------------------------------------------------------------------------------
6205
+ BulkInsertWorkerTest: test_save!_does_not_add_to_result_sets_when_not_returning_primary_keys
6206
+ --------------------------------------------------------------------------------------------
6207
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:26:59.778604','2018-06-27 14:26:59.778604','chartreuse'),('second',NULL,NULL,'2018-06-27 14:26:59.778604','2018-06-27 14:26:59.778604','chartreuse')
6208
+  (0.3ms) rollback transaction
6209
+  (0.0ms) begin transaction
6210
+ ------------------------------------------------------------------------------
6211
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
6212
+ ------------------------------------------------------------------------------
6213
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2018-06-27 14:26:59.780222','2018-06-27 14:26:59.780222','chartreuse')
6214
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
6215
+  (0.3ms) rollback transaction
6216
+  (0.0ms) begin transaction
6217
+ ------------------------------------------------------------------------------------------
6218
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_stylecase_adapter_name)
6219
+ ------------------------------------------------------------------------------------------
6220
+  (0.0ms) rollback transaction
6221
+  (0.0ms) begin transaction
6222
+ -------------------------------------------------------------
6223
+ BulkInsertWorkerTest: test_before_save_can_manipulate_the_set
6224
+ -------------------------------------------------------------
6225
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',25,'t','2018-06-27 14:26:59.786559','2018-06-27 14:26:59.786559','chartreuse')
6226
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
6227
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
6228
+  (0.3ms) rollback transaction
6229
+  (0.0ms) begin transaction
6230
+ ---------------------------------------------------------------------
6231
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
6232
+ ---------------------------------------------------------------------
6233
+  (0.0ms) rollback transaction
6234
+  (0.0ms) begin transaction
6235
+ --------------------------------------------------------------------
6236
+ BulkInsertWorkerTest: test_before_save_callback_can_be_set_as_a_proc
6237
+ --------------------------------------------------------------------
6238
+  (0.0ms) rollback transaction
6239
+  (0.0ms) begin transaction
6240
+ --------------------------------------------------------------
6241
+ BulkInsertWorkerTest: test_after_save_stores_a_block_as_a_proc
6242
+ --------------------------------------------------------------
6243
+  (0.0ms) rollback transaction
6244
+  (0.0ms) begin transaction
6245
+ ------------------------------------------------------------------
6246
+ BulkInsertWorkerTest: test_adapter_dependent_Mysql2Spatial_methods
6247
+ ------------------------------------------------------------------
6248
+  (0.0ms) rollback transaction
6249
+  (0.0ms) begin transaction
6250
+ ----------------------------------------------------------------
6251
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
6252
+ ----------------------------------------------------------------
6253
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2018-06-27 14:26:59.790336','2018-06-27 14:26:59.790336',NULL)
6254
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
6255
+  (0.3ms) rollback transaction
6256
+  (0.0ms) begin transaction
6257
+ -------------------------------------------------------------------------------
6258
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
6259
+ -------------------------------------------------------------------------------
6260
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:26:59.791739','2018-06-27 14:26:59.791739','chartreuse')
6261
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
6262
+  (0.3ms) rollback transaction
6263
+  (0.0ms) begin transaction
6264
+ ---------------------------------------------------------------
6265
+ BulkInsertWorkerTest: test_adapter_dependent_postgresql_methods
6266
+ ---------------------------------------------------------------
6267
+  (0.0ms) rollback transaction
6268
+  (0.0ms) begin transaction
6269
+ ------------------------------------------------------------
6270
+ BulkInsertWorkerTest: test_adapter_dependent_default_methods
6271
+ ------------------------------------------------------------
6272
+  (0.0ms) rollback transaction
6273
+  (0.0ms) begin transaction
6274
+ -------------------------------------------
6275
+ BulkInsertWorkerTest: test_default_set_size
6276
+ -------------------------------------------
6277
+  (0.0ms) rollback transaction
6278
+  (0.0ms) begin transaction
6279
+ ---------------------------------------------------------
6280
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
6281
+ ---------------------------------------------------------
6282
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:26:59.794902','2018-06-27 14:26:59.794902','chartreuse')
6283
+  (0.3ms) rollback transaction
6284
+  (0.0ms) begin transaction
6285
+ -------------------------------------------------------------------
6286
+ BulkInsertWorkerTest: test_initialized_with_empty_result_sets_array
6287
+ -------------------------------------------------------------------
6288
+  (0.0ms) rollback transaction
6289
+  (0.0ms) begin transaction
6290
+ ----------------------------------------------------------------------------
6291
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
6292
+ ----------------------------------------------------------------------------
6293
+  (0.1ms) rollback transaction
6294
+  (0.0ms) begin transaction
6295
+ --------------------------------------------------------------------------------
6296
+ BulkInsertWorkerTest: test_save!_adds_to_result_sets_when_returning_primary_keys
6297
+ --------------------------------------------------------------------------------
6298
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:26:59.797319','2018-06-27 14:26:59.797319','chartreuse'),('second',NULL,NULL,'2018-06-27 14:26:59.797319','2018-06-27 14:26:59.797319','chartreuse')
6299
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('third',NULL,NULL,'2018-06-27 14:26:59.797691','2018-06-27 14:26:59.797691','chartreuse'),('fourth',NULL,NULL,'2018-06-27 14:26:59.797691','2018-06-27 14:26:59.797691','chartreuse')
6300
+  (0.4ms) rollback transaction
6301
+  (0.1ms) begin transaction
6302
+ ----------------------------------------------------------------
6303
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
6304
+ ----------------------------------------------------------------
6305
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2018-06-27 14:26:59.799256','2018-06-27 14:26:59.799256','chartreuse')
6306
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
6307
+  (0.3ms) rollback transaction
6308
+  (0.0ms) begin transaction
6309
+ ----------------------------------------------------------------------------------
6310
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
6311
+ ----------------------------------------------------------------------------------
6312
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:26:59.801077','2018-06-27 14:26:59.801077','chartreuse')
6313
+  (0.0ms) SELECT COUNT(*) FROM "testings"
6314
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
6315
+  (0.3ms) rollback transaction
6316
+  (0.0ms) begin transaction
6317
+ ----------------------------------------------------------------------------------------------
6318
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
6319
+ ----------------------------------------------------------------------------------------------
6320
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:26:59.802975','2018-06-27 14:26:59.802975','chartreuse'),('Howdy',20,'f','2018-06-27 14:26:59.802975','2018-06-27 14:26:59.802975','chartreuse')
6321
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings"
6322
+  (0.3ms) rollback transaction
6323
+  (0.0ms) begin transaction
6324
+ ----------------------------------------------------------
6325
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods
6326
+ ----------------------------------------------------------
6327
+  (0.0ms) rollback transaction
6328
+  (0.0ms) begin transaction
6329
+ -------------------------------------------------------------------
6330
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
6331
+ -------------------------------------------------------------------
6332
+  (0.0ms) SELECT COUNT(*) FROM "testings"
6333
+  (0.0ms) SELECT COUNT(*) FROM "testings"
6334
+  (0.0ms) rollback transaction
6335
+  (0.0ms) begin transaction
6336
+ --------------------------------------------------------------------------
6337
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods_work_for_mysql2
6338
+ --------------------------------------------------------------------------
6339
+  (0.0ms) rollback transaction
6340
+  (0.0ms) begin transaction
6341
+ ------------------------------------------------------------
6342
+ BulkInsertWorkerTest: test_adapter_dependent_PostGIS_methods
6343
+ ------------------------------------------------------------
6344
+  (0.0ms) rollback transaction
6345
+  (0.0ms) begin transaction
6346
+ --------------------------------------------------------
6347
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
6348
+ --------------------------------------------------------
6349
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2018-06-27 14:26:59.807607','2018-06-27 14:26:59.807607','chartreuse'),('Hello',25,'t','2018-06-27 14:26:59.807607','2018-06-27 14:26:59.807607','chartreuse')
6350
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
6351
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
6352
+  (0.3ms) rollback transaction
6353
+  (0.0ms) begin transaction
6354
+ ------------------------------------------------------------------------------------------
6355
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_lowercase_adapter_name)
6356
+ ------------------------------------------------------------------------------------------
6357
+  (0.1ms) rollback transaction
6358
+  (0.0ms) begin transaction
6359
+ --------------------------------------------------------------
6360
+ BulkInsertWorkerTest: test_save!_calls_the_before_save_handler
6361
+ --------------------------------------------------------------
6362
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2018-06-27 14:26:59.810049','2018-06-27 14:26:59.810049','chartreuse'),('Hello',25,'t','2018-06-27 14:26:59.810049','2018-06-27 14:26:59.810049','chartreuse')
6363
+  (0.2ms) rollback transaction
6364
+  (0.0ms) begin transaction
6365
+ ---------------------------------------------------------------------------------------
6366
+ BulkInsertTest: test_with_option_to_return_primary_keys,_worker_should_have_result_sets
6367
+ ---------------------------------------------------------------------------------------
6368
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('yo',NULL,NULL,'2018-06-27 14:26:59.811578','2018-06-27 14:26:59.811578','chartreuse')
6369
+  (0.3ms) rollback transaction
6370
+  (0.0ms) begin transaction
6371
+ -----------------------------------------------------------------------------
6372
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
6373
+ -----------------------------------------------------------------------------
6374
+  (0.1ms) SELECT COUNT(*) FROM "testings"
6375
+  (0.0ms) SAVEPOINT active_record_1
6376
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2018-06-27 14:26:59.813283','chartreuse'),('Hey',20,'f','2018-06-27 14:26:59.813283','2018-06-27 14:26:59.813283','chartreuse')
6377
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6378
+  (0.0ms) SELECT COUNT(*) FROM "testings"
6379
+  (0.3ms) rollback transaction
6380
+  (0.0ms) begin transaction
6381
+ -----------------------------------------------------------------------------------------------------
6382
+ BulkInsertTest: test_worker_should_not_have_any_result_sets_without_option_for_returning_primary_keys
6383
+ -----------------------------------------------------------------------------------------------------
6384
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('hello',NULL,NULL,'2018-06-27 14:26:59.814740','2018-06-27 14:26:59.814740','chartreuse')
6385
+  (0.2ms) rollback transaction
6386
+  (0.0ms) begin transaction
6387
+ ---------------------------------------------------------------
6388
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
6389
+ ---------------------------------------------------------------
6390
+  (0.0ms) SAVEPOINT active_record_1
6391
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6392
+  (0.0ms) rollback transaction
6393
+  (0.0ms) begin transaction
6394
+ ------------------------------------------------------------------------------
6395
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
6396
+ ------------------------------------------------------------------------------
6397
+  (0.0ms) rollback transaction
6398
+  (0.0ms) begin transaction
6399
+ ---------------------------------------------------------------------
6400
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
6401
+ ---------------------------------------------------------------------
6402
+  (0.1ms) SELECT COUNT(*) FROM "testings"
6403
+  (0.0ms) SAVEPOINT active_record_1
6404
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2018-06-27 14:26:59.817056','2018-06-27 14:26:59.817056','chartreuse')
6405
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6406
+  (0.0ms) SELECT COUNT(*) FROM "testings"
6407
+  (0.3ms) rollback transaction
6408
+  (0.0ms) begin transaction
6409
+ -------------------------------------------------------------------
6410
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
6411
+ -------------------------------------------------------------------
6412
+  (0.0ms) rollback transaction
6413
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6414
+  (0.1ms) begin transaction
6415
+ ---------------------------------------------------------------
6416
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
6417
+ ---------------------------------------------------------------
6418
+  (0.0ms) SAVEPOINT active_record_1
6419
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6420
+  (0.0ms) rollback transaction
6421
+  (0.0ms) begin transaction
6422
+ -----------------------------------------------------------------------------
6423
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
6424
+ -----------------------------------------------------------------------------
6425
+  (0.1ms) SELECT COUNT(*) FROM "testings"
6426
+  (0.0ms) SAVEPOINT active_record_1
6427
+  (0.5ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t',NULL,'2018-06-27 14:35:10.990754','chartreuse'),('Hey',20,'f','2018-06-27 14:35:10.990754','2018-06-27 14:35:10.990754','chartreuse')
6428
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
6429
+  (0.0ms) rollback transaction
6430
+  (0.0ms) begin transaction
6431
+ -------------------------------------------------------------------
6432
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
6433
+ -------------------------------------------------------------------
6434
+  (0.0ms) rollback transaction
6435
+  (0.0ms) begin transaction
6436
+ ---------------------------------------------------------------------
6437
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
6438
+ ---------------------------------------------------------------------
6439
+  (0.1ms) SELECT COUNT(*) FROM "testings"
6440
+  (0.0ms) SAVEPOINT active_record_1
6441
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2018-06-27 14:35:10.995719','2018-06-27 14:35:10.995719','chartreuse')
6442
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6443
+  (0.1ms) SELECT COUNT(*) FROM "testings"
6444
+  (0.3ms) rollback transaction
6445
+  (0.0ms) begin transaction
6446
+ ------------------------------------------------------------------------------
6447
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
6448
+ ------------------------------------------------------------------------------
6449
+  (0.0ms) rollback transaction
6450
+  (0.0ms) begin transaction
6451
+ ---------------------------------------------------------------------------------------
6452
+ BulkInsertTest: test_with_option_to_return_primary_keys,_worker_should_have_result_sets
6453
+ ---------------------------------------------------------------------------------------
6454
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('yo',NULL,NULL,'2018-06-27 14:35:10.998340','2018-06-27 14:35:10.998340','chartreuse')
6455
+  (0.3ms) rollback transaction
6456
+  (0.0ms) begin transaction
6457
+ -----------------------------------------------------------------------------------------------------
6458
+ BulkInsertTest: test_worker_should_not_have_any_result_sets_without_option_for_returning_primary_keys
6459
+ -----------------------------------------------------------------------------------------------------
6460
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('hello',NULL,NULL,'2018-06-27 14:35:10.999979','2018-06-27 14:35:10.999979','chartreuse')
6461
+  (0.3ms) rollback transaction
6462
+  (0.0ms) begin transaction
6463
+ -------------------------------------------------------------------
6464
+ BulkInsertWorkerTest: test_after_save_callback_can_be_set_as_a_proc
6465
+ -------------------------------------------------------------------
6466
+  (0.0ms) rollback transaction
6467
+  (0.0ms) begin transaction
6468
+ ------------------------------------------------------------------------------------------
6469
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_lowercase_adapter_name)
6470
+ ------------------------------------------------------------------------------------------
6471
+  (0.0ms) rollback transaction
6472
+  (0.0ms) begin transaction
6473
+ -------------------------------------------
6474
+ BulkInsertWorkerTest: test_default_set_size
6475
+ -------------------------------------------
6476
+  (0.0ms) rollback transaction
6477
+  (0.0ms) begin transaction
6478
+ -------------------------------------------------------------------
6479
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
6480
+ -------------------------------------------------------------------
6481
+  (0.0ms) SELECT COUNT(*) FROM "testings"
6482
+  (0.0ms) SELECT COUNT(*) FROM "testings"
6483
+  (0.0ms) rollback transaction
6484
+  (0.0ms) begin transaction
6485
+ --------------------------------------------------------------
6486
+ BulkInsertWorkerTest: test_after_save_stores_a_block_as_a_proc
6487
+ --------------------------------------------------------------
6488
+  (0.1ms) rollback transaction
6489
+  (0.0ms) begin transaction
6490
+ -------------------------------------------------------------
6491
+ BulkInsertWorkerTest: test_save!_calls_the_after_save_handler
6492
+ -------------------------------------------------------------
6493
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2018-06-27 14:35:11.007635','2018-06-27 14:35:11.007635','chartreuse'),('Hello',25,'t','2018-06-27 14:35:11.007635','2018-06-27 14:35:11.007635','chartreuse')
6494
+  (0.4ms) rollback transaction
6495
+  (0.0ms) begin transaction
6496
+ -------------------------------------------------------------------
6497
+ BulkInsertWorkerTest: test_initialized_with_empty_result_sets_array
6498
+ -------------------------------------------------------------------
6499
+  (0.0ms) rollback transaction
6500
+  (0.0ms) begin transaction
6501
+ ------------------------------------------------------------------------------------------
6502
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_stylecase_adapter_name)
6503
+ ------------------------------------------------------------------------------------------
6504
+  (0.0ms) rollback transaction
6505
+  (0.0ms) begin transaction
6506
+ -------------------------------------------------------------
6507
+ BulkInsertWorkerTest: test_before_save_can_manipulate_the_set
6508
+ -------------------------------------------------------------
6509
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',25,'t','2018-06-27 14:35:11.012128','2018-06-27 14:35:11.012128','chartreuse')
6510
+ Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
6511
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
6512
+  (0.5ms) rollback transaction
6513
+  (0.0ms) begin transaction
6514
+ ----------------------------------------------------------------
6515
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
6516
+ ----------------------------------------------------------------
6517
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2018-06-27 14:35:11.023916','2018-06-27 14:35:11.023916','chartreuse')
6518
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
6519
+  (0.3ms) rollback transaction
6520
+  (0.0ms) begin transaction
6521
+ ------------------------------------------------------------------------------
6522
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
6523
+ ------------------------------------------------------------------------------
6524
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2018-06-27 14:35:11.026426','2018-06-27 14:35:11.026426','chartreuse')
6525
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
6526
+  (0.3ms) rollback transaction
6527
+  (0.0ms) begin transaction
6528
+ ----------------------------------------------------------------------------
6529
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
6530
+ ----------------------------------------------------------------------------
6531
+  (0.0ms) rollback transaction
6532
+  (0.1ms) begin transaction
6533
+ --------------------------------------------------------------------
6534
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
6535
+ --------------------------------------------------------------------
6536
+  (0.0ms) rollback transaction
6537
+  (0.0ms) begin transaction
6538
+ ---------------------------------------------------------------
6539
+ BulkInsertWorkerTest: test_before_save_stores_a_block_as_a_proc
6540
+ ---------------------------------------------------------------
6541
+  (0.0ms) rollback transaction
6542
+  (0.0ms) begin transaction
6543
+ ------------------------------------------------------------
6544
+ BulkInsertWorkerTest: test_adapter_dependent_PostGIS_methods
6545
+ ------------------------------------------------------------
6546
+  (0.0ms) rollback transaction
6547
+  (0.1ms) begin transaction
6548
+ ---------------------------------------------------------------------
6549
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
6550
+ ---------------------------------------------------------------------
6551
+  (0.0ms) rollback transaction
6552
+  (0.0ms) begin transaction
6553
+ --------------------------------------------------------------
6554
+ BulkInsertWorkerTest: test_mysql_adapter_can_update_duplicates
6555
+ --------------------------------------------------------------
6556
+  (0.0ms) rollback transaction
6557
+  (0.0ms) begin transaction
6558
+ --------------------------------------------------------------------------------
6559
+ BulkInsertWorkerTest: test_save!_doesn't_blow_up_if_before_save_emptying_the_set
6560
+ --------------------------------------------------------------------------------
6561
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
6562
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
6563
+  (0.0ms) rollback transaction
6564
+  (0.0ms) begin transaction
6565
+ --------------------------------------------------------------------------------
6566
+ BulkInsertWorkerTest: test_save!_adds_to_result_sets_when_returning_primary_keys
6567
+ --------------------------------------------------------------------------------
6568
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:35:11.036112','2018-06-27 14:35:11.036112','chartreuse'),('second',NULL,NULL,'2018-06-27 14:35:11.036112','2018-06-27 14:35:11.036112','chartreuse')
6569
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('third',NULL,NULL,'2018-06-27 14:35:11.036600','2018-06-27 14:35:11.036600','chartreuse'),('fourth',NULL,NULL,'2018-06-27 14:35:11.036600','2018-06-27 14:35:11.036600','chartreuse')
6570
+  (0.3ms) rollback transaction
6571
+  (0.0ms) begin transaction
6572
+ ----------------------------------------------------------------
6573
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
6574
+ ----------------------------------------------------------------
6575
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2018-06-27 14:35:11.037923','2018-06-27 14:35:11.037923',NULL)
6576
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
6577
+  (0.3ms) rollback transaction
6578
+  (0.0ms) begin transaction
6579
+ ------------------------------------------------------------
6580
+ BulkInsertWorkerTest: test_adapter_dependent_default_methods
6581
+ ------------------------------------------------------------
6582
+  (0.0ms) rollback transaction
6583
+  (0.0ms) begin transaction
6584
+ --------------------------------------------------------
6585
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
6586
+ --------------------------------------------------------
6587
+  (0.5ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2018-06-27 14:35:11.040578','2018-06-27 14:35:11.040578','chartreuse'),('Hello',25,'t','2018-06-27 14:35:11.040578','2018-06-27 14:35:11.040578','chartreuse')
6588
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
6589
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
6590
+  (0.3ms) rollback transaction
6591
+  (0.0ms) begin transaction
6592
+ --------------------------------------------------------------------------------------------
6593
+ BulkInsertWorkerTest: test_save!_does_not_add_to_result_sets_when_not_returning_primary_keys
6594
+ --------------------------------------------------------------------------------------------
6595
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:35:11.043242','2018-06-27 14:35:11.043242','chartreuse'),('second',NULL,NULL,'2018-06-27 14:35:11.043242','2018-06-27 14:35:11.043242','chartreuse')
6596
+  (0.3ms) rollback transaction
6597
+  (0.0ms) begin transaction
6598
+ ------------------------------------------------------
6599
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
6600
+ ------------------------------------------------------
6601
+  (0.0ms) rollback transaction
6602
+  (0.0ms) begin transaction
6603
+ --------------------------------------------------------------------------
6604
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods_work_for_mysql2
6605
+ --------------------------------------------------------------------------
6606
+  (0.0ms) rollback transaction
6607
+  (0.0ms) begin transaction
6608
+ -------------------------------------------------------------------------------
6609
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
6610
+ -------------------------------------------------------------------------------
6611
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:35:11.046846','2018-06-27 14:35:11.046846','chartreuse')
6612
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
6613
+  (0.3ms) rollback transaction
6614
+  (0.0ms) begin transaction
6615
+ ---------------------------------------------------------
6616
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
6617
+ ---------------------------------------------------------
6618
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:35:11.048925','2018-06-27 14:35:11.048925','chartreuse')
6619
+  (0.3ms) rollback transaction
6620
+  (0.1ms) begin transaction
6621
+ --------------------------------------------------------------------
6622
+ BulkInsertWorkerTest: test_before_save_callback_can_be_set_as_a_proc
6623
+ --------------------------------------------------------------------
6624
+  (0.0ms) rollback transaction
6625
+  (0.0ms) begin transaction
6626
+ ----------------------------------------------------------------------------------------------
6627
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
6628
+ ----------------------------------------------------------------------------------------------
6629
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:35:11.051265','2018-06-27 14:35:11.051265','chartreuse'),('Howdy',20,'f','2018-06-27 14:35:11.051265','2018-06-27 14:35:11.051265','chartreuse')
6630
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings"
6631
+  (0.3ms) rollback transaction
6632
+  (0.0ms) begin transaction
6633
+ ----------------------------------------------------------
6634
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods
6635
+ ----------------------------------------------------------
6636
+  (0.0ms) rollback transaction
6637
+  (0.0ms) begin transaction
6638
+ ----------------------------------------------------------------------------------
6639
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
6640
+ ----------------------------------------------------------------------------------
6641
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:35:11.054385','2018-06-27 14:35:11.054385','chartreuse')
6642
+  (0.0ms) SELECT COUNT(*) FROM "testings"
6643
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
6644
+  (0.3ms) rollback transaction
6645
+  (0.0ms) begin transaction
6646
+ ------------------------------------------------------------------
6647
+ BulkInsertWorkerTest: test_adapter_dependent_Mysql2Spatial_methods
6648
+ ------------------------------------------------------------------
6649
+  (0.0ms) rollback transaction
6650
+  (0.0ms) begin transaction
6651
+ ---------------------------------------------------------------
6652
+ BulkInsertWorkerTest: test_adapter_dependent_postgresql_methods
6653
+ ---------------------------------------------------------------
6654
+  (0.0ms) rollback transaction
6655
+  (0.0ms) begin transaction
6656
+ --------------------------------------------------------------
6657
+ BulkInsertWorkerTest: test_save!_calls_the_before_save_handler
6658
+ --------------------------------------------------------------
6659
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2018-06-27 14:35:11.059515','2018-06-27 14:35:11.059515','chartreuse'),('Hello',25,'t','2018-06-27 14:35:11.059515','2018-06-27 14:35:11.059515','chartreuse')
6660
+  (0.3ms) rollback transaction
6661
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6662
+  (0.1ms) begin transaction
6663
+ ------------------------------------------------------------------------------
6664
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
6665
+ ------------------------------------------------------------------------------
6666
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,0,'2018-06-27 14:36:12.863828','2018-06-27 14:36:12.863828','chartreuse')
6667
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
6668
+  (2.0ms) rollback transaction
6669
+  (0.1ms) begin transaction
6670
+ --------------------------------------------------------------------
6671
+ BulkInsertWorkerTest: test_before_save_callback_can_be_set_as_a_proc
6672
+ --------------------------------------------------------------------
6673
+  (0.1ms) rollback transaction
6674
+  (0.0ms) begin transaction
6675
+ ------------------------------------------------------------
6676
+ BulkInsertWorkerTest: test_adapter_dependent_default_methods
6677
+ ------------------------------------------------------------
6678
+  (0.1ms) rollback transaction
6679
+  (0.0ms) begin transaction
6680
+ -------------------------------------------------------------
6681
+ BulkInsertWorkerTest: test_before_save_can_manipulate_the_set
6682
+ -------------------------------------------------------------
6683
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',25,1,'2018-06-27 14:36:12.888667','2018-06-27 14:36:12.888667','chartreuse')
6684
+ Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
6685
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
6686
+  (0.6ms) rollback transaction
6687
+  (0.0ms) begin transaction
6688
+ --------------------------------------------------------------
6689
+ BulkInsertWorkerTest: test_after_save_stores_a_block_as_a_proc
6690
+ --------------------------------------------------------------
6691
+  (0.0ms) rollback transaction
6692
+  (0.0ms) begin transaction
6693
+ ---------------------------------------------------------------
6694
+ BulkInsertWorkerTest: test_adapter_dependent_postgresql_methods
6695
+ ---------------------------------------------------------------
6696
+  (0.1ms) rollback transaction
6697
+  (0.0ms) begin transaction
6698
+ -------------------------------------------------------------
6699
+ BulkInsertWorkerTest: test_save!_calls_the_after_save_handler
6700
+ -------------------------------------------------------------
6701
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2018-06-27 14:36:12.903602','2018-06-27 14:36:12.903602','chartreuse'),('Hello',25,1,'2018-06-27 14:36:12.903602','2018-06-27 14:36:12.903602','chartreuse')
6702
+  (0.3ms) rollback transaction
6703
+  (0.0ms) begin transaction
6704
+ -------------------------------------------------------------------
6705
+ BulkInsertWorkerTest: test_after_save_callback_can_be_set_as_a_proc
6706
+ -------------------------------------------------------------------
6707
+  (0.0ms) rollback transaction
6708
+  (0.1ms) begin transaction
6709
+ --------------------------------------------------------------------------
6710
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods_work_for_mysql2
6711
+ --------------------------------------------------------------------------
6712
+  (0.1ms) rollback transaction
6713
+  (0.1ms) begin transaction
6714
+ ------------------------------------------------------------------
6715
+ BulkInsertWorkerTest: test_adapter_dependent_Mysql2Spatial_methods
6716
+ ------------------------------------------------------------------
6717
+  (0.1ms) rollback transaction
6718
+  (0.0ms) begin transaction
6719
+ ----------------------------------------------------------------
6720
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
6721
+ ----------------------------------------------------------------
6722
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,0,'2018-06-27 14:36:12.922369','2018-06-27 14:36:12.922369','chartreuse')
6723
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
6724
+  (0.3ms) rollback transaction
6725
+  (0.0ms) begin transaction
6726
+ --------------------------------------------------------------
6727
+ BulkInsertWorkerTest: test_mysql_adapter_can_update_duplicates
6728
+ --------------------------------------------------------------
6729
+  (0.1ms) rollback transaction
6730
+  (0.1ms) begin transaction
6731
+ -------------------------------------------
6732
+ BulkInsertWorkerTest: test_default_set_size
6733
+ -------------------------------------------
6734
+  (0.0ms) rollback transaction
6735
+  (0.0ms) begin transaction
6736
+ ---------------------------------------------------------------------
6737
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
6738
+ ---------------------------------------------------------------------
6739
+  (0.0ms) rollback transaction
6740
+  (0.0ms) begin transaction
6741
+ --------------------------------------------------------------------------------------------
6742
+ BulkInsertWorkerTest: test_save!_does_not_add_to_result_sets_when_not_returning_primary_keys
6743
+ --------------------------------------------------------------------------------------------
6744
+  (0.5ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:36:12.934703','2018-06-27 14:36:12.934703','chartreuse'),('second',NULL,NULL,'2018-06-27 14:36:12.934703','2018-06-27 14:36:12.934703','chartreuse')
6745
+  (0.4ms) rollback transaction
6746
+  (0.1ms) begin transaction
6747
+ -------------------------------------------------------------------------------
6748
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
6749
+ -------------------------------------------------------------------------------
6750
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:36:12.937394','2018-06-27 14:36:12.937394','chartreuse')
6751
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
6752
+  (0.3ms) rollback transaction
6753
+  (0.1ms) begin transaction
6754
+ --------------------------------------------------------------------
6755
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
6756
+ --------------------------------------------------------------------
6757
+  (0.0ms) rollback transaction
6758
+  (0.0ms) begin transaction
6759
+ --------------------------------------------------------
6760
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
6761
+ --------------------------------------------------------
6762
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2018-06-27 14:36:12.941941','2018-06-27 14:36:12.941941','chartreuse'),('Hello',25,1,'2018-06-27 14:36:12.941941','2018-06-27 14:36:12.941941','chartreuse')
6763
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
6764
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
6765
+  (0.3ms) rollback transaction
6766
+  (0.0ms) begin transaction
6767
+ --------------------------------------------------------------------------------
6768
+ BulkInsertWorkerTest: test_save!_doesn't_blow_up_if_before_save_emptying_the_set
6769
+ --------------------------------------------------------------------------------
6770
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
6771
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
6772
+  (0.0ms) rollback transaction
6773
+  (0.0ms) begin transaction
6774
+ ----------------------------------------------------------------------------------
6775
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
6776
+ ----------------------------------------------------------------------------------
6777
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:36:12.945931','2018-06-27 14:36:12.945931','chartreuse')
6778
+  (0.0ms) SELECT COUNT(*) FROM "testings"
6779
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
6780
+  (0.3ms) rollback transaction
6781
+  (0.0ms) begin transaction
6782
+ ------------------------------------------------------------------------------------------
6783
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_stylecase_adapter_name)
6784
+ ------------------------------------------------------------------------------------------
6785
+  (0.1ms) rollback transaction
6786
+  (0.0ms) begin transaction
6787
+ --------------------------------------------------------------------------------
6788
+ BulkInsertWorkerTest: test_save!_adds_to_result_sets_when_returning_primary_keys
6789
+ --------------------------------------------------------------------------------
6790
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:36:12.957872','2018-06-27 14:36:12.957872','chartreuse'),('second',NULL,NULL,'2018-06-27 14:36:12.957872','2018-06-27 14:36:12.957872','chartreuse')
6791
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('third',NULL,NULL,'2018-06-27 14:36:12.959029','2018-06-27 14:36:12.959029','chartreuse'),('fourth',NULL,NULL,'2018-06-27 14:36:12.959029','2018-06-27 14:36:12.959029','chartreuse')
6792
+  (0.3ms) rollback transaction
6793
+  (0.0ms) begin transaction
6794
+ ------------------------------------------------------------
6795
+ BulkInsertWorkerTest: test_adapter_dependent_PostGIS_methods
6796
+ ------------------------------------------------------------
6797
+  (0.1ms) rollback transaction
6798
+  (0.1ms) begin transaction
6799
+ ------------------------------------------------------------------------------------------
6800
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_lowercase_adapter_name)
6801
+ ------------------------------------------------------------------------------------------
6802
+  (0.1ms) rollback transaction
6803
+  (0.0ms) begin transaction
6804
+ ----------------------------------------------------------------------------------------------
6805
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
6806
+ ----------------------------------------------------------------------------------------------
6807
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:36:12.975713','2018-06-27 14:36:12.975713','chartreuse'),('Howdy',20,0,'2018-06-27 14:36:12.975713','2018-06-27 14:36:12.975713','chartreuse')
6808
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings"
6809
+  (0.4ms) rollback transaction
6810
+  (0.3ms) begin transaction
6811
+ ----------------------------------------------------------
6812
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods
6813
+ ----------------------------------------------------------
6814
+  (0.1ms) rollback transaction
6815
+  (0.0ms) begin transaction
6816
+ --------------------------------------------------------------
6817
+ BulkInsertWorkerTest: test_save!_calls_the_before_save_handler
6818
+ --------------------------------------------------------------
6819
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2018-06-27 14:36:12.985713','2018-06-27 14:36:12.985713','chartreuse'),('Hello',25,1,'2018-06-27 14:36:12.985713','2018-06-27 14:36:12.985713','chartreuse')
6820
+  (0.3ms) rollback transaction
6821
+  (0.1ms) begin transaction
6822
+ ----------------------------------------------------------------
6823
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
6824
+ ----------------------------------------------------------------
6825
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,0,'2018-06-27 14:36:12.987620','2018-06-27 14:36:12.987620',NULL)
6826
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
6827
+  (0.3ms) rollback transaction
6828
+  (0.1ms) begin transaction
6829
+ ---------------------------------------------------------
6830
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
6831
+ ---------------------------------------------------------
6832
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:36:12.990642','2018-06-27 14:36:12.990642','chartreuse')
6833
+  (0.3ms) rollback transaction
6834
+  (0.0ms) begin transaction
6835
+ -------------------------------------------------------------------
6836
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
6837
+ -------------------------------------------------------------------
6838
+  (0.1ms) SELECT COUNT(*) FROM "testings"
6839
+  (0.1ms) SELECT COUNT(*) FROM "testings"
6840
+  (0.0ms) rollback transaction
6841
+  (0.0ms) begin transaction
6842
+ ------------------------------------------------------
6843
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
6844
+ ------------------------------------------------------
6845
+  (0.0ms) rollback transaction
6846
+  (0.0ms) begin transaction
6847
+ ----------------------------------------------------------------------------
6848
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
6849
+ ----------------------------------------------------------------------------
6850
+  (0.0ms) rollback transaction
6851
+  (0.0ms) begin transaction
6852
+ -------------------------------------------------------------------
6853
+ BulkInsertWorkerTest: test_initialized_with_empty_result_sets_array
6854
+ -------------------------------------------------------------------
6855
+  (0.0ms) rollback transaction
6856
+  (0.0ms) begin transaction
6857
+ ---------------------------------------------------------------
6858
+ BulkInsertWorkerTest: test_before_save_stores_a_block_as_a_proc
6859
+ ---------------------------------------------------------------
6860
+  (0.0ms) rollback transaction
6861
+  (0.0ms) begin transaction
6862
+ ---------------------------------------------------------------------
6863
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
6864
+ ---------------------------------------------------------------------
6865
+  (0.1ms) SELECT COUNT(*) FROM "testings"
6866
+  (0.0ms) SAVEPOINT active_record_1
6867
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2018-06-27 14:36:12.998674','2018-06-27 14:36:12.998674','chartreuse')
6868
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6869
+  (0.0ms) SELECT COUNT(*) FROM "testings"
6870
+  (0.3ms) rollback transaction
6871
+  (0.0ms) begin transaction
6872
+ ------------------------------------------------------------------------------
6873
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
6874
+ ------------------------------------------------------------------------------
6875
+  (0.0ms) rollback transaction
6876
+  (0.0ms) begin transaction
6877
+ -----------------------------------------------------------------------------
6878
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
6879
+ -----------------------------------------------------------------------------
6880
+  (0.1ms) SELECT COUNT(*) FROM "testings"
6881
+  (0.0ms) SAVEPOINT active_record_1
6882
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,NULL,'2018-06-27 14:36:13.001591','chartreuse'),('Hey',20,0,'2018-06-27 14:36:13.001591','2018-06-27 14:36:13.001591','chartreuse')
6883
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
6884
+  (0.1ms) rollback transaction
6885
+  (0.0ms) begin transaction
6886
+ -------------------------------------------------------------------
6887
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
6888
+ -------------------------------------------------------------------
6889
+  (0.1ms) rollback transaction
6890
+  (0.0ms) begin transaction
6891
+ ---------------------------------------------------------------
6892
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
6893
+ ---------------------------------------------------------------
6894
+  (0.0ms) SAVEPOINT active_record_1
6895
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6896
+  (0.0ms) rollback transaction
6897
+  (0.0ms) begin transaction
6898
+ -----------------------------------------------------------------------------------------------------
6899
+ BulkInsertTest: test_worker_should_not_have_any_result_sets_without_option_for_returning_primary_keys
6900
+ -----------------------------------------------------------------------------------------------------
6901
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('hello',NULL,NULL,'2018-06-27 14:36:13.006362','2018-06-27 14:36:13.006362','chartreuse')
6902
+  (0.3ms) rollback transaction
6903
+  (0.0ms) begin transaction
6904
+ ---------------------------------------------------------------------------------------
6905
+ BulkInsertTest: test_with_option_to_return_primary_keys,_worker_should_have_result_sets
6906
+ ---------------------------------------------------------------------------------------
6907
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('yo',NULL,NULL,'2018-06-27 14:36:13.008107','2018-06-27 14:36:13.008107','chartreuse')
6908
+  (0.3ms) rollback transaction
6909
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6910
+  (0.1ms) begin transaction
6911
+ -------------------------------------------------------------------
6912
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
6913
+ -------------------------------------------------------------------
6914
+  (0.0ms) rollback transaction
6915
+  (0.0ms) begin transaction
6916
+ ------------------------------------------------------------------------------
6917
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
6918
+ ------------------------------------------------------------------------------
6919
+  (0.0ms) rollback transaction
6920
+  (0.0ms) begin transaction
6921
+ ---------------------------------------------------------------
6922
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
6923
+ ---------------------------------------------------------------
6924
+  (0.0ms) SAVEPOINT active_record_1
6925
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6926
+  (0.0ms) rollback transaction
6927
+  (0.0ms) begin transaction
6928
+ -----------------------------------------------------------------------------
6929
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
6930
+ -----------------------------------------------------------------------------
6931
+  (0.1ms) SELECT COUNT(*) FROM "testings"
6932
+  (0.0ms) SAVEPOINT active_record_1
6933
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,NULL,'2018-06-27 14:37:19.544886','chartreuse'),('Hey',20,0,'2018-06-27 14:37:19.544886','2018-06-27 14:37:19.544886','chartreuse')
6934
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
6935
+  (0.0ms) rollback transaction
6936
+  (0.0ms) begin transaction
6937
+ ---------------------------------------------------------------------------------------
6938
+ BulkInsertTest: test_with_option_to_return_primary_keys,_worker_should_have_result_sets
6939
+ ---------------------------------------------------------------------------------------
6940
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('yo',NULL,NULL,'2018-06-27 14:37:19.547071','2018-06-27 14:37:19.547071','chartreuse')
6941
+  (2.0ms) rollback transaction
6942
+  (0.0ms) begin transaction
6943
+ ---------------------------------------------------------------------
6944
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
6945
+ ---------------------------------------------------------------------
6946
+  (0.1ms) SELECT COUNT(*) FROM "testings"
6947
+  (0.0ms) SAVEPOINT active_record_1
6948
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2018-06-27 14:37:19.551074','2018-06-27 14:37:19.551074','chartreuse')
6949
+  (0.0ms) RELEASE SAVEPOINT active_record_1
6950
+  (0.1ms) SELECT COUNT(*) FROM "testings"
6951
+  (0.4ms) rollback transaction
6952
+  (0.0ms) begin transaction
6953
+ -----------------------------------------------------------------------------------------------------
6954
+ BulkInsertTest: test_worker_should_not_have_any_result_sets_without_option_for_returning_primary_keys
6955
+ -----------------------------------------------------------------------------------------------------
6956
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('hello',NULL,NULL,'2018-06-27 14:37:19.553090','2018-06-27 14:37:19.553090','chartreuse')
6957
+  (0.3ms) rollback transaction
6958
+  (0.0ms) begin transaction
6959
+ ----------------------------------------------------------------------------------------------
6960
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
6961
+ ----------------------------------------------------------------------------------------------
6962
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:37:19.555292','2018-06-27 14:37:19.555292','chartreuse'),('Howdy',20,0,'2018-06-27 14:37:19.555292','2018-06-27 14:37:19.555292','chartreuse')
6963
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings"
6964
+  (0.5ms) rollback transaction
6965
+  (0.0ms) begin transaction
6966
+ ----------------------------------------------------------------------------------
6967
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
6968
+ ----------------------------------------------------------------------------------
6969
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:37:19.564233','2018-06-27 14:37:19.564233','chartreuse')
6970
+  (0.1ms) SELECT COUNT(*) FROM "testings"
6971
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
6972
+  (0.4ms) rollback transaction
6973
+  (0.0ms) begin transaction
6974
+ ---------------------------------------------------------------------
6975
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
6976
+ ---------------------------------------------------------------------
6977
+  (0.0ms) rollback transaction
6978
+  (0.0ms) begin transaction
6979
+ --------------------------------------------------------------------------------------------
6980
+ BulkInsertWorkerTest: test_save!_does_not_add_to_result_sets_when_not_returning_primary_keys
6981
+ --------------------------------------------------------------------------------------------
6982
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:37:19.568944','2018-06-27 14:37:19.568944','chartreuse'),('second',NULL,NULL,'2018-06-27 14:37:19.568944','2018-06-27 14:37:19.568944','chartreuse')
6983
+  (0.3ms) rollback transaction
6984
+  (0.0ms) begin transaction
6985
+ --------------------------------------------------------------------------------
6986
+ BulkInsertWorkerTest: test_save!_adds_to_result_sets_when_returning_primary_keys
6987
+ --------------------------------------------------------------------------------
6988
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:37:19.571195','2018-06-27 14:37:19.571195','chartreuse'),('second',NULL,NULL,'2018-06-27 14:37:19.571195','2018-06-27 14:37:19.571195','chartreuse')
6989
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('third',NULL,NULL,'2018-06-27 14:37:19.571879','2018-06-27 14:37:19.571879','chartreuse'),('fourth',NULL,NULL,'2018-06-27 14:37:19.571879','2018-06-27 14:37:19.571879','chartreuse')
6990
+  (0.4ms) rollback transaction
6991
+  (0.0ms) begin transaction
6992
+ ---------------------------------------------------------------
6993
+ BulkInsertWorkerTest: test_adapter_dependent_postgresql_methods
6994
+ ---------------------------------------------------------------
6995
+  (0.1ms) rollback transaction
6996
+  (0.0ms) begin transaction
6997
+ ------------------------------------------------------------------------------------------
6998
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_lowercase_adapter_name)
6999
+ ------------------------------------------------------------------------------------------
7000
+  (0.0ms) rollback transaction
7001
+  (0.0ms) begin transaction
7002
+ --------------------------------------------------------------
7003
+ BulkInsertWorkerTest: test_save!_calls_the_before_save_handler
7004
+ --------------------------------------------------------------
7005
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2018-06-27 14:37:19.576461','2018-06-27 14:37:19.576461','chartreuse'),('Hello',25,1,'2018-06-27 14:37:19.576461','2018-06-27 14:37:19.576461','chartreuse')
7006
+  (0.3ms) rollback transaction
7007
+  (0.0ms) begin transaction
7008
+ ------------------------------------------------------------
7009
+ BulkInsertWorkerTest: test_adapter_dependent_PostGIS_methods
7010
+ ------------------------------------------------------------
7011
+  (0.0ms) rollback transaction
7012
+  (0.0ms) begin transaction
7013
+ ----------------------------------------------------------------
7014
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
7015
+ ----------------------------------------------------------------
7016
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,0,'2018-06-27 14:37:19.579627','2018-06-27 14:37:19.579627',NULL)
7017
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
7018
+  (0.3ms) rollback transaction
7019
+  (0.0ms) begin transaction
7020
+ ------------------------------------------------------------------------------------------
7021
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_stylecase_adapter_name)
7022
+ ------------------------------------------------------------------------------------------
7023
+  (0.0ms) rollback transaction
7024
+  (0.0ms) begin transaction
7025
+ --------------------------------------------------------
7026
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
7027
+ --------------------------------------------------------
7028
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2018-06-27 14:37:19.582678','2018-06-27 14:37:19.582678','chartreuse'),('Hello',25,1,'2018-06-27 14:37:19.582678','2018-06-27 14:37:19.582678','chartreuse')
7029
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
7030
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
7031
+  (0.3ms) rollback transaction
7032
+  (0.0ms) begin transaction
7033
+ ----------------------------------------------------------------
7034
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
7035
+ ----------------------------------------------------------------
7036
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,0,'2018-06-27 14:37:19.586912','2018-06-27 14:37:19.586912','chartreuse')
7037
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
7038
+  (0.4ms) rollback transaction
7039
+  (0.1ms) begin transaction
7040
+ --------------------------------------------------------------
7041
+ BulkInsertWorkerTest: test_after_save_stores_a_block_as_a_proc
7042
+ --------------------------------------------------------------
7043
+  (0.1ms) rollback transaction
7044
+  (0.0ms) begin transaction
7045
+ ------------------------------------------------------------------------------
7046
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
7047
+ ------------------------------------------------------------------------------
7048
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,0,'2018-06-27 14:37:19.590240','2018-06-27 14:37:19.590240','chartreuse')
7049
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
7050
+  (0.3ms) rollback transaction
7051
+  (0.1ms) begin transaction
7052
+ --------------------------------------------------------------
7053
+ BulkInsertWorkerTest: test_mysql_adapter_can_update_duplicates
7054
+ --------------------------------------------------------------
7055
+  (0.0ms) rollback transaction
7056
+  (0.0ms) begin transaction
7057
+ -------------------------------------------------------------------
7058
+ BulkInsertWorkerTest: test_after_save_callback_can_be_set_as_a_proc
7059
+ -------------------------------------------------------------------
7060
+  (0.0ms) rollback transaction
7061
+  (0.1ms) begin transaction
7062
+ ------------------------------------------------------------
7063
+ BulkInsertWorkerTest: test_adapter_dependent_default_methods
7064
+ ------------------------------------------------------------
7065
+  (0.0ms) rollback transaction
7066
+  (0.0ms) begin transaction
7067
+ ---------------------------------------------------------------
7068
+ BulkInsertWorkerTest: test_before_save_stores_a_block_as_a_proc
7069
+ ---------------------------------------------------------------
7070
+  (0.0ms) rollback transaction
7071
+  (0.0ms) begin transaction
7072
+ --------------------------------------------------------------------------
7073
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods_work_for_mysql2
7074
+ --------------------------------------------------------------------------
7075
+  (0.0ms) rollback transaction
7076
+  (0.0ms) begin transaction
7077
+ ------------------------------------------------------
7078
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
7079
+ ------------------------------------------------------
7080
+  (0.0ms) rollback transaction
7081
+  (0.0ms) begin transaction
7082
+ ----------------------------------------------------------
7083
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods
7084
+ ----------------------------------------------------------
7085
+  (0.0ms) rollback transaction
7086
+  (0.1ms) begin transaction
7087
+ --------------------------------------------------------------------------------
7088
+ BulkInsertWorkerTest: test_save!_doesn't_blow_up_if_before_save_emptying_the_set
7089
+ --------------------------------------------------------------------------------
7090
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
7091
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
7092
+  (0.1ms) rollback transaction
7093
+  (0.0ms) begin transaction
7094
+ --------------------------------------------------------------------
7095
+ BulkInsertWorkerTest: test_before_save_callback_can_be_set_as_a_proc
7096
+ --------------------------------------------------------------------
7097
+  (0.0ms) rollback transaction
7098
+  (0.0ms) begin transaction
7099
+ -------------------------------------------------------------------
7100
+ BulkInsertWorkerTest: test_initialized_with_empty_result_sets_array
7101
+ -------------------------------------------------------------------
7102
+  (0.0ms) rollback transaction
7103
+  (0.0ms) begin transaction
7104
+ -------------------------------------------
7105
+ BulkInsertWorkerTest: test_default_set_size
7106
+ -------------------------------------------
7107
+  (0.0ms) rollback transaction
7108
+  (0.0ms) begin transaction
7109
+ --------------------------------------------------------------------
7110
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
7111
+ --------------------------------------------------------------------
7112
+  (0.1ms) rollback transaction
7113
+  (0.0ms) begin transaction
7114
+ ------------------------------------------------------------------
7115
+ BulkInsertWorkerTest: test_adapter_dependent_Mysql2Spatial_methods
7116
+ ------------------------------------------------------------------
7117
+  (0.0ms) rollback transaction
7118
+  (0.0ms) begin transaction
7119
+ ----------------------------------------------------------------------------
7120
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
7121
+ ----------------------------------------------------------------------------
7122
+  (0.0ms) rollback transaction
7123
+  (0.0ms) begin transaction
7124
+ ---------------------------------------------------------
7125
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
7126
+ ---------------------------------------------------------
7127
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:37:19.606223','2018-06-27 14:37:19.606223','chartreuse')
7128
+  (0.3ms) rollback transaction
7129
+  (0.0ms) begin transaction
7130
+ -------------------------------------------------------------------
7131
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
7132
+ -------------------------------------------------------------------
7133
+  (0.0ms) SELECT COUNT(*) FROM "testings"
7134
+  (0.0ms) SELECT COUNT(*) FROM "testings"
7135
+  (0.0ms) rollback transaction
7136
+  (0.1ms) begin transaction
7137
+ -------------------------------------------------------------
7138
+ BulkInsertWorkerTest: test_save!_calls_the_after_save_handler
7139
+ -------------------------------------------------------------
7140
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2018-06-27 14:37:19.608989','2018-06-27 14:37:19.608989','chartreuse'),('Hello',25,1,'2018-06-27 14:37:19.608989','2018-06-27 14:37:19.608989','chartreuse')
7141
+  (0.3ms) rollback transaction
7142
+  (0.0ms) begin transaction
7143
+ -------------------------------------------------------------------------------
7144
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
7145
+ -------------------------------------------------------------------------------
7146
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:37:19.610553','2018-06-27 14:37:19.610553','chartreuse')
7147
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
7148
+  (0.4ms) rollback transaction
7149
+  (0.0ms) begin transaction
7150
+ -------------------------------------------------------------
7151
+ BulkInsertWorkerTest: test_before_save_can_manipulate_the_set
7152
+ -------------------------------------------------------------
7153
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',25,1,'2018-06-27 14:37:19.612650','2018-06-27 14:37:19.612650','chartreuse')
7154
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
7155
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
7156
+  (0.3ms) rollback transaction
7157
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7158
+  (0.1ms) begin transaction
7159
+ -----------------------------------------------------------------------------
7160
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
7161
+ -----------------------------------------------------------------------------
7162
+  (0.1ms) SELECT COUNT(*) FROM "testings"
7163
+  (0.0ms) SAVEPOINT active_record_1
7164
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,NULL,'2018-06-27 14:39:20.506116','chartreuse'),('Hey',20,0,'2018-06-27 14:39:20.506116','2018-06-27 14:39:20.506116','chartreuse')
7165
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
7166
+  (0.0ms) rollback transaction
7167
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7168
+  (0.0ms) begin transaction
7169
+ -----------------------------------------------------------------------------
7170
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
7171
+ -----------------------------------------------------------------------------
7172
+  (0.1ms) SELECT COUNT(*) FROM "testings"
7173
+  (0.0ms) SAVEPOINT active_record_1
7174
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,NULL,'2018-06-27 14:39:37.420291','chartreuse'),('Hey',20,0,'2018-06-27 14:39:37.420291','2018-06-27 14:39:37.420291','chartreuse')
7175
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
7176
+  (0.0ms) rollback transaction
7177
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7178
+  (0.1ms) begin transaction
7179
+ -----------------------------------------------------------------------------
7180
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
7181
+ -----------------------------------------------------------------------------
7182
+  (0.1ms) SELECT COUNT(*) FROM "testings"
7183
+  (0.0ms) SAVEPOINT active_record_1
7184
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,NULL,'2018-06-27 14:40:02.740295','chartreuse'),('Hey',20,0,'2018-06-27 14:40:02.740295','2018-06-27 14:40:02.740295','chartreuse')
7185
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
7186
+  (0.0ms) rollback transaction
7187
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7188
+  (0.0ms) begin transaction
7189
+ -----------------------------------------------------------------------------
7190
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
7191
+ -----------------------------------------------------------------------------
7192
+  (0.1ms) SELECT COUNT(*) FROM "testings"
7193
+  (0.0ms) SAVEPOINT active_record_1
7194
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,NULL,'2018-06-27 14:40:15.350857','chartreuse'),('Hey',20,0,'2018-06-27 14:40:15.350857','2018-06-27 14:40:15.350857','chartreuse')
7195
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
7196
+  (0.0ms) rollback transaction
7197
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7198
+  (0.1ms) begin transaction
7199
+ -----------------------------------------------------------------------------
7200
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
7201
+ -----------------------------------------------------------------------------
7202
+  (0.1ms) SELECT COUNT(*) FROM "testings"
7203
+  (0.0ms) SAVEPOINT active_record_1
7204
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,NULL,'2018-06-27 14:40:25.220152','chartreuse'),('Hey',20,0,'2018-06-27 14:40:25.220152','2018-06-27 14:40:25.220152','chartreuse')
7205
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
7206
+  (0.0ms) rollback transaction
7207
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7208
+  (0.1ms) begin transaction
7209
+ -----------------------------------------------------------------------------
7210
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
7211
+ -----------------------------------------------------------------------------
7212
+  (0.1ms) SELECT COUNT(*) FROM "testings"
7213
+  (0.0ms) SAVEPOINT active_record_1
7214
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,NULL,'2018-06-27 14:40:57.030858','chartreuse'),('Hey',20,0,'2018-06-27 14:40:57.030858','2018-06-27 14:40:57.030858','chartreuse')
7215
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
7216
+  (0.0ms) rollback transaction
7217
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7218
+  (0.1ms) begin transaction
7219
+ -----------------------------------------------------------------------------
7220
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
7221
+ -----------------------------------------------------------------------------
7222
+  (0.1ms) SELECT COUNT(*) FROM "testings"
7223
+  (0.0ms) SAVEPOINT active_record_1
7224
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,NULL,'2018-06-27 14:41:11.742952','chartreuse'),('Hey',20,0,'2018-06-27 14:41:11.742952','2018-06-27 14:41:11.742952','chartreuse')
7225
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
7226
+  (0.0ms) rollback transaction
7227
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7228
+  (0.1ms) begin transaction
7229
+ -----------------------------------------------------------------------------
7230
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
7231
+ -----------------------------------------------------------------------------
7232
+  (0.1ms) SELECT COUNT(*) FROM "testings"
7233
+  (0.0ms) SAVEPOINT active_record_1
7234
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","color") VALUES ('Hello',15,1,'green'),('Hey',20,0,'chartreuse')
7235
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
7236
+  (0.0ms) rollback transaction
7237
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7238
+  (0.1ms) begin transaction
7239
+ -------------------------------------------------------------------
7240
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
7241
+ -------------------------------------------------------------------
7242
+  (0.1ms) SELECT COUNT(*) FROM "testings"
7243
+  (0.1ms) SELECT COUNT(*) FROM "testings"
7244
+  (0.0ms) rollback transaction
7245
+  (0.0ms) begin transaction
7246
+ --------------------------------------------------------------------------
7247
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods_work_for_mysql2
7248
+ --------------------------------------------------------------------------
7249
+  (0.0ms) rollback transaction
7250
+  (0.0ms) begin transaction
7251
+ ------------------------------------------------------------------------------
7252
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
7253
+ ------------------------------------------------------------------------------
7254
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2018-06-27 14:45:12.413325','2018-06-27 14:45:12.413325','chartreuse')
7255
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
7256
+  (2.1ms) rollback transaction
7257
+  (0.1ms) begin transaction
7258
+ ----------------------------------------------------------------
7259
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
7260
+ ----------------------------------------------------------------
7261
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2018-06-27 14:45:12.421117','2018-06-27 14:45:12.421117','chartreuse')
7262
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
7263
+  (0.3ms) rollback transaction
7264
+  (0.0ms) begin transaction
7265
+ ---------------------------------------------------------------
7266
+ BulkInsertWorkerTest: test_before_save_stores_a_block_as_a_proc
7267
+ ---------------------------------------------------------------
7268
+  (0.0ms) rollback transaction
7269
+  (0.0ms) begin transaction
7270
+ ------------------------------------------------------------------------------------------
7271
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_lowercase_adapter_name)
7272
+ ------------------------------------------------------------------------------------------
7273
+  (0.1ms) rollback transaction
7274
+  (0.0ms) begin transaction
7275
+ -------------------------------------------------------------
7276
+ BulkInsertWorkerTest: test_before_save_can_manipulate_the_set
7277
+ -------------------------------------------------------------
7278
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',25,'t','2018-06-27 14:45:12.424979','2018-06-27 14:45:12.424979','chartreuse')
7279
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
7280
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
7281
+  (0.5ms) rollback transaction
7282
+  (0.0ms) begin transaction
7283
+ -------------------------------------------------------------
7284
+ BulkInsertWorkerTest: test_save!_calls_the_after_save_handler
7285
+ -------------------------------------------------------------
7286
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2018-06-27 14:45:12.430635','2018-06-27 14:45:12.430635','chartreuse'),('Hello',25,'t','2018-06-27 14:45:12.430635','2018-06-27 14:45:12.430635','chartreuse')
7287
+  (0.3ms) rollback transaction
7288
+  (0.0ms) begin transaction
7289
+ --------------------------------------------------------------
7290
+ BulkInsertWorkerTest: test_save!_calls_the_before_save_handler
7291
+ --------------------------------------------------------------
7292
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2018-06-27 14:45:12.432133','2018-06-27 14:45:12.432133','chartreuse'),('Hello',25,'t','2018-06-27 14:45:12.432133','2018-06-27 14:45:12.432133','chartreuse')
7293
+  (0.3ms) rollback transaction
7294
+  (0.0ms) begin transaction
7295
+ --------------------------------------------------------------
7296
+ BulkInsertWorkerTest: test_after_save_stores_a_block_as_a_proc
7297
+ --------------------------------------------------------------
7298
+  (0.0ms) rollback transaction
7299
+  (0.0ms) begin transaction
7300
+ ------------------------------------------------------------------
7301
+ BulkInsertWorkerTest: test_adapter_dependent_Mysql2Spatial_methods
7302
+ ------------------------------------------------------------------
7303
+  (0.0ms) rollback transaction
7304
+  (0.0ms) begin transaction
7305
+ ----------------------------------------------------------------------------------------------
7306
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
7307
+ ----------------------------------------------------------------------------------------------
7308
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:45:12.435056','2018-06-27 14:45:12.435056','chartreuse'),('Howdy',20,'f','2018-06-27 14:45:12.435056','2018-06-27 14:45:12.435056','chartreuse')
7309
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings"
7310
+  (0.4ms) rollback transaction
7311
+  (0.0ms) begin transaction
7312
+ --------------------------------------------------------
7313
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
7314
+ --------------------------------------------------------
7315
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2018-06-27 14:45:12.437114','2018-06-27 14:45:12.437114','chartreuse'),('Hello',25,'t','2018-06-27 14:45:12.437114','2018-06-27 14:45:12.437114','chartreuse')
7316
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
7317
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
7318
+  (0.3ms) rollback transaction
7319
+  (0.0ms) begin transaction
7320
+ ------------------------------------------------------------
7321
+ BulkInsertWorkerTest: test_adapter_dependent_PostGIS_methods
7322
+ ------------------------------------------------------------
7323
+  (0.0ms) rollback transaction
7324
+  (0.0ms) begin transaction
7325
+ --------------------------------------------------------------------------------------------
7326
+ BulkInsertWorkerTest: test_save!_does_not_add_to_result_sets_when_not_returning_primary_keys
7327
+ --------------------------------------------------------------------------------------------
7328
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:45:12.439581','2018-06-27 14:45:12.439581','chartreuse'),('second',NULL,NULL,'2018-06-27 14:45:12.439581','2018-06-27 14:45:12.439581','chartreuse')
7329
+  (0.3ms) rollback transaction
7330
+  (0.0ms) begin transaction
7331
+ --------------------------------------------------------------------------------
7332
+ BulkInsertWorkerTest: test_save!_doesn't_blow_up_if_before_save_emptying_the_set
7333
+ --------------------------------------------------------------------------------
7334
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
7335
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
7336
+  (0.0ms) rollback transaction
7337
+  (0.0ms) begin transaction
7338
+ -------------------------------------------------------------------
7339
+ BulkInsertWorkerTest: test_after_save_callback_can_be_set_as_a_proc
7340
+ -------------------------------------------------------------------
7341
+  (0.1ms) rollback transaction
7342
+  (0.1ms) begin transaction
7343
+ -------------------------------------------------------------------
7344
+ BulkInsertWorkerTest: test_initialized_with_empty_result_sets_array
7345
+ -------------------------------------------------------------------
7346
+  (0.0ms) rollback transaction
7347
+  (0.0ms) begin transaction
7348
+ ----------------------------------------------------------------------------------
7349
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
7350
+ ----------------------------------------------------------------------------------
7351
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:45:12.443452','2018-06-27 14:45:12.443452','chartreuse')
7352
+  (0.1ms) SELECT COUNT(*) FROM "testings"
7353
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
7354
+  (0.4ms) rollback transaction
7355
+  (0.0ms) begin transaction
7356
+ ------------------------------------------------------------
7357
+ BulkInsertWorkerTest: test_adapter_dependent_default_methods
7358
+ ------------------------------------------------------------
7359
+  (0.0ms) rollback transaction
7360
+  (0.0ms) begin transaction
7361
+ ---------------------------------------------------------------
7362
+ BulkInsertWorkerTest: test_adapter_dependent_postgresql_methods
7363
+ ---------------------------------------------------------------
7364
+  (0.0ms) rollback transaction
7365
+  (0.0ms) begin transaction
7366
+ ----------------------------------------------------------------------------
7367
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
7368
+ ----------------------------------------------------------------------------
7369
+  (0.0ms) rollback transaction
7370
+  (0.0ms) begin transaction
7371
+ --------------------------------------------------------------------------------
7372
+ BulkInsertWorkerTest: test_save!_adds_to_result_sets_when_returning_primary_keys
7373
+ --------------------------------------------------------------------------------
7374
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:45:12.448671','2018-06-27 14:45:12.448671','chartreuse'),('second',NULL,NULL,'2018-06-27 14:45:12.448671','2018-06-27 14:45:12.448671','chartreuse')
7375
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('third',NULL,NULL,'2018-06-27 14:45:12.449535','2018-06-27 14:45:12.449535','chartreuse'),('fourth',NULL,NULL,'2018-06-27 14:45:12.449535','2018-06-27 14:45:12.449535','chartreuse')
7376
+  (0.3ms) rollback transaction
7377
+  (0.0ms) begin transaction
7378
+ ------------------------------------------------------
7379
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
7380
+ ------------------------------------------------------
7381
+  (0.0ms) rollback transaction
7382
+  (0.0ms) begin transaction
7383
+ --------------------------------------------------------------
7384
+ BulkInsertWorkerTest: test_mysql_adapter_can_update_duplicates
7385
+ --------------------------------------------------------------
7386
+  (0.0ms) rollback transaction
7387
+  (0.0ms) begin transaction
7388
+ ----------------------------------------------------------
7389
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods
7390
+ ----------------------------------------------------------
7391
+  (0.1ms) rollback transaction
7392
+  (0.0ms) begin transaction
7393
+ ----------------------------------------------------------------
7394
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
7395
+ ----------------------------------------------------------------
7396
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2018-06-27 14:45:12.452497','2018-06-27 14:45:12.452497',NULL)
7397
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
7398
+  (0.3ms) rollback transaction
7399
+  (0.0ms) begin transaction
7400
+ ---------------------------------------------------------
7401
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
7402
+ ---------------------------------------------------------
7403
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:45:12.453957','2018-06-27 14:45:12.453957','chartreuse')
7404
+  (0.3ms) rollback transaction
7405
+  (0.0ms) begin transaction
7406
+ ---------------------------------------------------------------------
7407
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
7408
+ ---------------------------------------------------------------------
7409
+  (0.0ms) rollback transaction
7410
+  (0.1ms) begin transaction
7411
+ --------------------------------------------------------------------
7412
+ BulkInsertWorkerTest: test_before_save_callback_can_be_set_as_a_proc
7413
+ --------------------------------------------------------------------
7414
+  (0.0ms) rollback transaction
7415
+  (0.1ms) begin transaction
7416
+ ------------------------------------------------------------------------------------------
7417
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_stylecase_adapter_name)
7418
+ ------------------------------------------------------------------------------------------
7419
+  (0.0ms) rollback transaction
7420
+  (0.0ms) begin transaction
7421
+ -------------------------------------------------------------------------------
7422
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
7423
+ -------------------------------------------------------------------------------
7424
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:45:12.457738','2018-06-27 14:45:12.457738','chartreuse')
7425
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
7426
+  (0.3ms) rollback transaction
7427
+  (0.0ms) begin transaction
7428
+ --------------------------------------------------------------------
7429
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
7430
+ --------------------------------------------------------------------
7431
+  (0.1ms) rollback transaction
7432
+  (0.0ms) begin transaction
7433
+ -------------------------------------------
7434
+ BulkInsertWorkerTest: test_default_set_size
7435
+ -------------------------------------------
7436
+  (0.0ms) rollback transaction
7437
+  (0.0ms) begin transaction
7438
+ ------------------------------------------------------------------------------
7439
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
7440
+ ------------------------------------------------------------------------------
7441
+  (0.0ms) rollback transaction
7442
+  (0.1ms) begin transaction
7443
+ ---------------------------------------------------------------------
7444
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
7445
+ ---------------------------------------------------------------------
7446
+  (0.1ms) SELECT COUNT(*) FROM "testings"
7447
+  (0.0ms) SAVEPOINT active_record_1
7448
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2018-06-27 14:45:12.463005','2018-06-27 14:45:12.463005','chartreuse')
7449
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7450
+  (0.0ms) SELECT COUNT(*) FROM "testings"
7451
+  (0.3ms) rollback transaction
7452
+  (0.0ms) begin transaction
7453
+ ---------------------------------------------------------------
7454
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
7455
+ ---------------------------------------------------------------
7456
+  (0.0ms) SAVEPOINT active_record_1
7457
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7458
+  (0.0ms) rollback transaction
7459
+  (0.1ms) begin transaction
7460
+ -----------------------------------------------------------------------------------------------------
7461
+ BulkInsertTest: test_worker_should_not_have_any_result_sets_without_option_for_returning_primary_keys
7462
+ -----------------------------------------------------------------------------------------------------
7463
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('hello',NULL,NULL,'2018-06-27 14:45:12.465171','2018-06-27 14:45:12.465171','chartreuse')
7464
+  (0.3ms) rollback transaction
7465
+  (0.0ms) begin transaction
7466
+ -------------------------------------------------------------------
7467
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
7468
+ -------------------------------------------------------------------
7469
+  (0.0ms) rollback transaction
7470
+  (0.0ms) begin transaction
7471
+ ---------------------------------------------------------------------------------------
7472
+ BulkInsertTest: test_with_option_to_return_primary_keys,_worker_should_have_result_sets
7473
+ ---------------------------------------------------------------------------------------
7474
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('yo',NULL,NULL,'2018-06-27 14:45:12.467012','2018-06-27 14:45:12.467012','chartreuse')
7475
+  (0.4ms) rollback transaction
7476
+  (0.0ms) begin transaction
7477
+ -----------------------------------------------------------------------------
7478
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
7479
+ -----------------------------------------------------------------------------
7480
+  (0.1ms) SELECT COUNT(*) FROM "testings"
7481
+  (0.0ms) SAVEPOINT active_record_1
7482
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2018-06-27 14:45:12.469265','chartreuse'),('Hey',20,'f','2018-06-27 14:45:12.469265','2018-06-27 14:45:12.469265','chartreuse')
7483
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7484
+  (0.0ms) SELECT COUNT(*) FROM "testings"
7485
+  (0.3ms) rollback transaction
7486
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7487
+  (0.1ms) begin transaction
7488
+ -------------------------------------------------------------------
7489
+ BulkInsertWorkerTest: test_after_save_callback_can_be_set_as_a_proc
7490
+ -------------------------------------------------------------------
7491
+  (0.0ms) rollback transaction
7492
+  (0.0ms) begin transaction
7493
+ --------------------------------------------------------------
7494
+ BulkInsertWorkerTest: test_save!_calls_the_before_save_handler
7495
+ --------------------------------------------------------------
7496
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2018-06-27 14:45:47.996357','2018-06-27 14:45:47.996357','chartreuse'),('Hello',25,'t','2018-06-27 14:45:47.996357','2018-06-27 14:45:47.996357','chartreuse')
7497
+  (0.3ms) rollback transaction
7498
+  (0.1ms) begin transaction
7499
+ ----------------------------------------------------------
7500
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods
7501
+ ----------------------------------------------------------
7502
+  (0.0ms) rollback transaction
7503
+  (0.1ms) begin transaction
7504
+ ------------------------------------------------------------------------------
7505
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
7506
+ ------------------------------------------------------------------------------
7507
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2018-06-27 14:45:48.000111','2018-06-27 14:45:48.000111','chartreuse')
7508
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
7509
+  (0.4ms) rollback transaction
7510
+  (0.0ms) begin transaction
7511
+ -------------------------------------------------------------------
7512
+ BulkInsertWorkerTest: test_initialized_with_empty_result_sets_array
7513
+ -------------------------------------------------------------------
7514
+  (0.1ms) rollback transaction
7515
+  (0.0ms) begin transaction
7516
+ ---------------------------------------------------------------
7517
+ BulkInsertWorkerTest: test_adapter_dependent_postgresql_methods
7518
+ ---------------------------------------------------------------
7519
+  (0.1ms) rollback transaction
7520
+  (0.0ms) begin transaction
7521
+ ----------------------------------------------------------------------------
7522
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
7523
+ ----------------------------------------------------------------------------
7524
+  (0.1ms) rollback transaction
7525
+  (0.0ms) begin transaction
7526
+ ------------------------------------------------------------
7527
+ BulkInsertWorkerTest: test_adapter_dependent_default_methods
7528
+ ------------------------------------------------------------
7529
+  (0.0ms) rollback transaction
7530
+  (0.0ms) begin transaction
7531
+ ----------------------------------------------------------------
7532
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
7533
+ ----------------------------------------------------------------
7534
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2018-06-27 14:45:48.009076','2018-06-27 14:45:48.009076',NULL)
7535
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
7536
+  (0.3ms) rollback transaction
7537
+  (0.0ms) begin transaction
7538
+ -------------------------------------------------------------
7539
+ BulkInsertWorkerTest: test_before_save_can_manipulate_the_set
7540
+ -------------------------------------------------------------
7541
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',25,'t','2018-06-27 14:45:48.010987','2018-06-27 14:45:48.010987','chartreuse')
7542
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
7543
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
7544
+  (0.4ms) rollback transaction
7545
+  (0.0ms) begin transaction
7546
+ ------------------------------------------------------------------------------------------
7547
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_stylecase_adapter_name)
7548
+ ------------------------------------------------------------------------------------------
7549
+  (0.0ms) rollback transaction
7550
+  (0.0ms) begin transaction
7551
+ --------------------------------------------------------------------------------
7552
+ BulkInsertWorkerTest: test_save!_adds_to_result_sets_when_returning_primary_keys
7553
+ --------------------------------------------------------------------------------
7554
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:45:48.017443','2018-06-27 14:45:48.017443','chartreuse'),('second',NULL,NULL,'2018-06-27 14:45:48.017443','2018-06-27 14:45:48.017443','chartreuse')
7555
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('third',NULL,NULL,'2018-06-27 14:45:48.017880','2018-06-27 14:45:48.017880','chartreuse'),('fourth',NULL,NULL,'2018-06-27 14:45:48.017880','2018-06-27 14:45:48.017880','chartreuse')
7556
+  (0.4ms) rollback transaction
7557
+  (0.0ms) begin transaction
7558
+ ----------------------------------------------------------------------------------------------
7559
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
7560
+ ----------------------------------------------------------------------------------------------
7561
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:45:48.019099','2018-06-27 14:45:48.019099','chartreuse'),('Howdy',20,'f','2018-06-27 14:45:48.019099','2018-06-27 14:45:48.019099','chartreuse')
7562
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings"
7563
+  (0.3ms) rollback transaction
7564
+  (0.0ms) begin transaction
7565
+ ------------------------------------------------------------------------------------------
7566
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_lowercase_adapter_name)
7567
+ ------------------------------------------------------------------------------------------
7568
+  (0.0ms) rollback transaction
7569
+  (0.0ms) begin transaction
7570
+ --------------------------------------------------------------
7571
+ BulkInsertWorkerTest: test_mysql_adapter_can_update_duplicates
7572
+ --------------------------------------------------------------
7573
+  (0.0ms) rollback transaction
7574
+  (0.0ms) begin transaction
7575
+ -------------------------------------------------------------
7576
+ BulkInsertWorkerTest: test_save!_calls_the_after_save_handler
7577
+ -------------------------------------------------------------
7578
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2018-06-27 14:45:48.022857','2018-06-27 14:45:48.022857','chartreuse'),('Hello',25,'t','2018-06-27 14:45:48.022857','2018-06-27 14:45:48.022857','chartreuse')
7579
+  (0.3ms) rollback transaction
7580
+  (0.0ms) begin transaction
7581
+ --------------------------------------------------------------------------------
7582
+ BulkInsertWorkerTest: test_save!_doesn't_blow_up_if_before_save_emptying_the_set
7583
+ --------------------------------------------------------------------------------
7584
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
7585
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
7586
+  (0.0ms) rollback transaction
7587
+  (0.0ms) begin transaction
7588
+ --------------------------------------------------------------
7589
+ BulkInsertWorkerTest: test_after_save_stores_a_block_as_a_proc
7590
+ --------------------------------------------------------------
7591
+  (0.0ms) rollback transaction
7592
+  (0.0ms) begin transaction
7593
+ ---------------------------------------------------------------
7594
+ BulkInsertWorkerTest: test_before_save_stores_a_block_as_a_proc
7595
+ ---------------------------------------------------------------
7596
+  (0.0ms) rollback transaction
7597
+  (0.0ms) begin transaction
7598
+ --------------------------------------------------------
7599
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
7600
+ --------------------------------------------------------
7601
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2018-06-27 14:45:48.026131','2018-06-27 14:45:48.026131','chartreuse'),('Hello',25,'t','2018-06-27 14:45:48.026131','2018-06-27 14:45:48.026131','chartreuse')
7602
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
7603
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
7604
+  (0.4ms) rollback transaction
7605
+  (0.1ms) begin transaction
7606
+ ----------------------------------------------------------------------------------
7607
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
7608
+ ----------------------------------------------------------------------------------
7609
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:45:48.028690','2018-06-27 14:45:48.028690','chartreuse')
7610
+  (0.0ms) SELECT COUNT(*) FROM "testings"
7611
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
7612
+  (0.3ms) rollback transaction
7613
+  (0.1ms) begin transaction
7614
+ ------------------------------------------------------
7615
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
7616
+ ------------------------------------------------------
7617
+  (0.0ms) rollback transaction
7618
+  (0.0ms) begin transaction
7619
+ ---------------------------------------------------------------------
7620
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
7621
+ ---------------------------------------------------------------------
7622
+  (0.0ms) rollback transaction
7623
+  (0.0ms) begin transaction
7624
+ ------------------------------------------------------------------
7625
+ BulkInsertWorkerTest: test_adapter_dependent_Mysql2Spatial_methods
7626
+ ------------------------------------------------------------------
7627
+  (0.1ms) rollback transaction
7628
+  (0.0ms) begin transaction
7629
+ --------------------------------------------------------------------------
7630
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods_work_for_mysql2
7631
+ --------------------------------------------------------------------------
7632
+  (0.0ms) rollback transaction
7633
+  (0.0ms) begin transaction
7634
+ --------------------------------------------------------------------------------------------
7635
+ BulkInsertWorkerTest: test_save!_does_not_add_to_result_sets_when_not_returning_primary_keys
7636
+ --------------------------------------------------------------------------------------------
7637
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:45:48.034768','2018-06-27 14:45:48.034768','chartreuse'),('second',NULL,NULL,'2018-06-27 14:45:48.034768','2018-06-27 14:45:48.034768','chartreuse')
7638
+  (0.3ms) rollback transaction
7639
+  (0.0ms) begin transaction
7640
+ ---------------------------------------------------------
7641
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
7642
+ ---------------------------------------------------------
7643
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:45:48.036024','2018-06-27 14:45:48.036024','chartreuse')
7644
+  (0.3ms) rollback transaction
7645
+  (0.0ms) begin transaction
7646
+ ------------------------------------------------------------
7647
+ BulkInsertWorkerTest: test_adapter_dependent_PostGIS_methods
7648
+ ------------------------------------------------------------
7649
+  (0.0ms) rollback transaction
7650
+  (0.0ms) begin transaction
7651
+ --------------------------------------------------------------------
7652
+ BulkInsertWorkerTest: test_before_save_callback_can_be_set_as_a_proc
7653
+ --------------------------------------------------------------------
7654
+  (0.0ms) rollback transaction
7655
+  (0.1ms) begin transaction
7656
+ -------------------------------------------------------------------
7657
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
7658
+ -------------------------------------------------------------------
7659
+  (0.0ms) SELECT COUNT(*) FROM "testings"
7660
+  (0.0ms) SELECT COUNT(*) FROM "testings"
7661
+  (0.0ms) rollback transaction
7662
+  (0.0ms) begin transaction
7663
+ -------------------------------------------
7664
+ BulkInsertWorkerTest: test_default_set_size
7665
+ -------------------------------------------
7666
+  (0.0ms) rollback transaction
7667
+  (0.0ms) begin transaction
7668
+ --------------------------------------------------------------------
7669
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
7670
+ --------------------------------------------------------------------
7671
+  (0.0ms) rollback transaction
7672
+  (0.0ms) begin transaction
7673
+ -------------------------------------------------------------------------------
7674
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
7675
+ -------------------------------------------------------------------------------
7676
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:45:48.040686','2018-06-27 14:45:48.040686','chartreuse')
7677
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
7678
+  (0.3ms) rollback transaction
7679
+  (0.0ms) begin transaction
7680
+ ----------------------------------------------------------------
7681
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
7682
+ ----------------------------------------------------------------
7683
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2018-06-27 14:45:48.042332','2018-06-27 14:45:48.042332','chartreuse')
7684
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
7685
+  (0.3ms) rollback transaction
7686
+  (0.0ms) begin transaction
7687
+ -----------------------------------------------------------------------------------------------------
7688
+ BulkInsertTest: test_worker_should_not_have_any_result_sets_without_option_for_returning_primary_keys
7689
+ -----------------------------------------------------------------------------------------------------
7690
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('hello',NULL,NULL,'2018-06-27 14:45:48.044392','2018-06-27 14:45:48.044392','chartreuse')
7691
+  (0.3ms) rollback transaction
7692
+  (0.0ms) begin transaction
7693
+ ------------------------------------------------------------------------------
7694
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
7695
+ ------------------------------------------------------------------------------
7696
+  (0.0ms) rollback transaction
7697
+  (0.0ms) begin transaction
7698
+ -------------------------------------------------------------------
7699
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
7700
+ -------------------------------------------------------------------
7701
+  (0.0ms) rollback transaction
7702
+  (0.0ms) begin transaction
7703
+ ---------------------------------------------------------------
7704
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
7705
+ ---------------------------------------------------------------
7706
+  (0.0ms) SAVEPOINT active_record_1
7707
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7708
+  (0.0ms) rollback transaction
7709
+  (0.0ms) begin transaction
7710
+ -----------------------------------------------------------------------------
7711
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
7712
+ -----------------------------------------------------------------------------
7713
+  (0.1ms) SELECT COUNT(*) FROM "testings"
7714
+  (0.0ms) SAVEPOINT active_record_1
7715
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2018-06-27 14:45:48.047372','chartreuse'),('Hey',20,'f','2018-06-27 14:45:48.047372','2018-06-27 14:45:48.047372','chartreuse')
7716
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7717
+  (0.0ms) SELECT COUNT(*) FROM "testings"
7718
+  (0.3ms) rollback transaction
7719
+  (0.0ms) begin transaction
7720
+ ---------------------------------------------------------------------
7721
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
7722
+ ---------------------------------------------------------------------
7723
+  (0.1ms) SELECT COUNT(*) FROM "testings"
7724
+  (0.0ms) SAVEPOINT active_record_1
7725
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2018-06-27 14:45:48.049177','2018-06-27 14:45:48.049177','chartreuse')
7726
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7727
+  (0.0ms) SELECT COUNT(*) FROM "testings"
7728
+  (0.3ms) rollback transaction
7729
+  (0.1ms) begin transaction
7730
+ ---------------------------------------------------------------------------------------
7731
+ BulkInsertTest: test_with_option_to_return_primary_keys,_worker_should_have_result_sets
7732
+ ---------------------------------------------------------------------------------------
7733
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('yo',NULL,NULL,'2018-06-27 14:45:48.050646','2018-06-27 14:45:48.050646','chartreuse')
7734
+  (0.4ms) rollback transaction
7735
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7736
+  (0.1ms) begin transaction
7737
+ ----------------------------------------------------------------------------------
7738
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
7739
+ ----------------------------------------------------------------------------------
7740
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:46:14.813421','2018-06-27 14:46:14.813421','chartreuse')
7741
+  (0.0ms) SELECT COUNT(*) FROM "testings"
7742
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
7743
+  (2.1ms) rollback transaction
7744
+  (0.0ms) begin transaction
7745
+ ------------------------------------------------------------------------------
7746
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
7747
+ ------------------------------------------------------------------------------
7748
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2018-06-27 14:46:14.823870','2018-06-27 14:46:14.823870','chartreuse')
7749
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
7750
+  (0.4ms) rollback transaction
7751
+  (0.0ms) begin transaction
7752
+ ------------------------------------------------------------------------------------------
7753
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_lowercase_adapter_name)
7754
+ ------------------------------------------------------------------------------------------
7755
+  (0.1ms) rollback transaction
7756
+  (0.0ms) begin transaction
7757
+ ---------------------------------------------------------------
7758
+ BulkInsertWorkerTest: test_adapter_dependent_postgresql_methods
7759
+ ---------------------------------------------------------------
7760
+  (0.0ms) rollback transaction
7761
+  (0.0ms) begin transaction
7762
+ -------------------------------------------------------------------
7763
+ BulkInsertWorkerTest: test_initialized_with_empty_result_sets_array
7764
+ -------------------------------------------------------------------
7765
+  (0.0ms) rollback transaction
7766
+  (0.0ms) begin transaction
7767
+ ----------------------------------------------------------------------------------------------
7768
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
7769
+ ----------------------------------------------------------------------------------------------
7770
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:46:14.828630','2018-06-27 14:46:14.828630','chartreuse'),('Howdy',20,'f','2018-06-27 14:46:14.828630','2018-06-27 14:46:14.828630','chartreuse')
7771
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings"
7772
+  (0.4ms) rollback transaction
7773
+  (0.0ms) begin transaction
7774
+ -------------------------------------------------------------
7775
+ BulkInsertWorkerTest: test_before_save_can_manipulate_the_set
7776
+ -------------------------------------------------------------
7777
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',25,'t','2018-06-27 14:46:14.830666','2018-06-27 14:46:14.830666','chartreuse')
7778
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
7779
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
7780
+  (0.4ms) rollback transaction
7781
+  (0.0ms) begin transaction
7782
+ ------------------------------------------------------------------------------------------
7783
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_stylecase_adapter_name)
7784
+ ------------------------------------------------------------------------------------------
7785
+  (0.0ms) rollback transaction
7786
+  (0.0ms) begin transaction
7787
+ --------------------------------------------------------------
7788
+ BulkInsertWorkerTest: test_save!_calls_the_before_save_handler
7789
+ --------------------------------------------------------------
7790
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2018-06-27 14:46:14.837011','2018-06-27 14:46:14.837011','chartreuse'),('Hello',25,'t','2018-06-27 14:46:14.837011','2018-06-27 14:46:14.837011','chartreuse')
7791
+  (0.3ms) rollback transaction
7792
+  (0.0ms) begin transaction
7793
+ ----------------------------------------------------------------
7794
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
7795
+ ----------------------------------------------------------------
7796
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,'f','2018-06-27 14:46:14.838303','2018-06-27 14:46:14.838303','chartreuse')
7797
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
7798
+  (0.3ms) rollback transaction
7799
+  (0.1ms) begin transaction
7800
+ ---------------------------------------------------------------
7801
+ BulkInsertWorkerTest: test_before_save_stores_a_block_as_a_proc
7802
+ ---------------------------------------------------------------
7803
+  (0.0ms) rollback transaction
7804
+  (0.0ms) begin transaction
7805
+ -------------------------------------------------------------------
7806
+ BulkInsertWorkerTest: test_after_save_callback_can_be_set_as_a_proc
7807
+ -------------------------------------------------------------------
7808
+  (0.0ms) rollback transaction
7809
+  (0.0ms) begin transaction
7810
+ ----------------------------------------------------------
7811
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods
7812
+ ----------------------------------------------------------
7813
+  (0.0ms) rollback transaction
7814
+  (0.0ms) begin transaction
7815
+ --------------------------------------------------------------------------------------------
7816
+ BulkInsertWorkerTest: test_save!_does_not_add_to_result_sets_when_not_returning_primary_keys
7817
+ --------------------------------------------------------------------------------------------
7818
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:46:14.842193','2018-06-27 14:46:14.842193','chartreuse'),('second',NULL,NULL,'2018-06-27 14:46:14.842193','2018-06-27 14:46:14.842193','chartreuse')
7819
+  (0.3ms) rollback transaction
7820
+  (0.0ms) begin transaction
7821
+ -------------------------------------------------------------
7822
+ BulkInsertWorkerTest: test_save!_calls_the_after_save_handler
7823
+ -------------------------------------------------------------
7824
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2018-06-27 14:46:14.843504','2018-06-27 14:46:14.843504','chartreuse'),('Hello',25,'t','2018-06-27 14:46:14.843504','2018-06-27 14:46:14.843504','chartreuse')
7825
+  (0.3ms) rollback transaction
7826
+  (0.0ms) begin transaction
7827
+ ------------------------------------------------------------------
7828
+ BulkInsertWorkerTest: test_adapter_dependent_Mysql2Spatial_methods
7829
+ ------------------------------------------------------------------
7830
+  (0.0ms) rollback transaction
7831
+  (0.0ms) begin transaction
7832
+ -------------------------------------------------------------------
7833
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
7834
+ -------------------------------------------------------------------
7835
+  (0.0ms) SELECT COUNT(*) FROM "testings"
7836
+  (0.0ms) SELECT COUNT(*) FROM "testings"
7837
+  (0.1ms) rollback transaction
7838
+  (0.0ms) begin transaction
7839
+ --------------------------------------------------------------------------------
7840
+ BulkInsertWorkerTest: test_save!_adds_to_result_sets_when_returning_primary_keys
7841
+ --------------------------------------------------------------------------------
7842
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:46:14.847385','2018-06-27 14:46:14.847385','chartreuse'),('second',NULL,NULL,'2018-06-27 14:46:14.847385','2018-06-27 14:46:14.847385','chartreuse')
7843
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('third',NULL,NULL,'2018-06-27 14:46:14.847911','2018-06-27 14:46:14.847911','chartreuse'),('fourth',NULL,NULL,'2018-06-27 14:46:14.847911','2018-06-27 14:46:14.847911','chartreuse')
7844
+  (0.4ms) rollback transaction
7845
+  (0.0ms) begin transaction
7846
+ --------------------------------------------------------------------------
7847
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods_work_for_mysql2
7848
+ --------------------------------------------------------------------------
7849
+  (0.0ms) rollback transaction
7850
+  (0.0ms) begin transaction
7851
+ --------------------------------------------------------------
7852
+ BulkInsertWorkerTest: test_after_save_stores_a_block_as_a_proc
7853
+ --------------------------------------------------------------
7854
+  (0.0ms) rollback transaction
7855
+  (0.0ms) begin transaction
7856
+ -------------------------------------------
7857
+ BulkInsertWorkerTest: test_default_set_size
7858
+ -------------------------------------------
7859
+  (0.1ms) rollback transaction
7860
+  (0.1ms) begin transaction
7861
+ ---------------------------------------------------------
7862
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
7863
+ ---------------------------------------------------------
7864
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:46:14.851553','2018-06-27 14:46:14.851553','chartreuse')
7865
+  (0.3ms) rollback transaction
7866
+  (0.0ms) begin transaction
7867
+ -------------------------------------------------------------------------------
7868
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
7869
+ -------------------------------------------------------------------------------
7870
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','2018-06-27 14:46:14.852837','2018-06-27 14:46:14.852837','chartreuse')
7871
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
7872
+  (0.3ms) rollback transaction
7873
+  (0.0ms) begin transaction
7874
+ --------------------------------------------------------------
7875
+ BulkInsertWorkerTest: test_mysql_adapter_can_update_duplicates
7876
+ --------------------------------------------------------------
7877
+  (0.0ms) rollback transaction
7878
+  (0.0ms) begin transaction
7879
+ --------------------------------------------------------------------
7880
+ BulkInsertWorkerTest: test_before_save_callback_can_be_set_as_a_proc
7881
+ --------------------------------------------------------------------
7882
+  (0.0ms) rollback transaction
7883
+  (0.0ms) begin transaction
7884
+ --------------------------------------------------------
7885
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
7886
+ --------------------------------------------------------
7887
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,'f','2018-06-27 14:46:14.855484','2018-06-27 14:46:14.855484','chartreuse'),('Hello',25,'t','2018-06-27 14:46:14.855484','2018-06-27 14:46:14.855484','chartreuse')
7888
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
7889
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
7890
+  (0.3ms) rollback transaction
7891
+  (0.0ms) begin transaction
7892
+ ----------------------------------------------------------------
7893
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
7894
+ ----------------------------------------------------------------
7895
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,'f','2018-06-27 14:46:14.857221','2018-06-27 14:46:14.857221',NULL)
7896
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT 1
7897
+  (0.3ms) rollback transaction
7898
+  (0.0ms) begin transaction
7899
+ --------------------------------------------------------------------
7900
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
7901
+ --------------------------------------------------------------------
7902
+  (0.0ms) rollback transaction
7903
+  (0.0ms) begin transaction
7904
+ ------------------------------------------------------------
7905
+ BulkInsertWorkerTest: test_adapter_dependent_default_methods
7906
+ ------------------------------------------------------------
7907
+  (0.0ms) rollback transaction
7908
+  (0.1ms) begin transaction
7909
+ ----------------------------------------------------------------------------
7910
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
7911
+ ----------------------------------------------------------------------------
7912
+  (0.1ms) rollback transaction
7913
+  (0.0ms) begin transaction
7914
+ --------------------------------------------------------------------------------
7915
+ BulkInsertWorkerTest: test_save!_doesn't_blow_up_if_before_save_emptying_the_set
7916
+ --------------------------------------------------------------------------------
7917
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Yo"]]
7918
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT 1 [["greeting", "Hello"]]
7919
+  (0.1ms) rollback transaction
7920
+  (0.0ms) begin transaction
7921
+ ---------------------------------------------------------------------
7922
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
7923
+ ---------------------------------------------------------------------
7924
+  (0.0ms) rollback transaction
7925
+  (0.0ms) begin transaction
7926
+ ------------------------------------------------------------
7927
+ BulkInsertWorkerTest: test_adapter_dependent_PostGIS_methods
7928
+ ------------------------------------------------------------
7929
+  (0.0ms) rollback transaction
7930
+  (0.1ms) begin transaction
7931
+ ------------------------------------------------------
7932
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
7933
+ ------------------------------------------------------
7934
+  (0.0ms) rollback transaction
7935
+  (0.0ms) begin transaction
7936
+ -------------------------------------------------------------------
7937
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
7938
+ -------------------------------------------------------------------
7939
+  (0.0ms) rollback transaction
7940
+  (0.0ms) begin transaction
7941
+ ---------------------------------------------------------------------
7942
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
7943
+ ---------------------------------------------------------------------
7944
+  (0.1ms) SELECT COUNT(*) FROM "testings"
7945
+  (0.0ms) SAVEPOINT active_record_1
7946
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2018-06-27 14:46:14.865458','2018-06-27 14:46:14.865458','chartreuse')
7947
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7948
+  (0.0ms) SELECT COUNT(*) FROM "testings"
7949
+  (0.3ms) rollback transaction
7950
+  (0.0ms) begin transaction
7951
+ -----------------------------------------------------------------------------------------------------
7952
+ BulkInsertTest: test_worker_should_not_have_any_result_sets_without_option_for_returning_primary_keys
7953
+ -----------------------------------------------------------------------------------------------------
7954
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('hello',NULL,NULL,'2018-06-27 14:46:14.867041','2018-06-27 14:46:14.867041','chartreuse')
7955
+  (0.3ms) rollback transaction
7956
+  (0.1ms) begin transaction
7957
+ ---------------------------------------------------------------
7958
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
7959
+ ---------------------------------------------------------------
7960
+  (0.0ms) SAVEPOINT active_record_1
7961
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7962
+  (0.0ms) rollback transaction
7963
+  (0.0ms) begin transaction
7964
+ ---------------------------------------------------------------------------------------
7965
+ BulkInsertTest: test_with_option_to_return_primary_keys,_worker_should_have_result_sets
7966
+ ---------------------------------------------------------------------------------------
7967
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('yo',NULL,NULL,'2018-06-27 14:46:14.868877','2018-06-27 14:46:14.868877','chartreuse')
7968
+  (0.3ms) rollback transaction
7969
+  (0.0ms) begin transaction
7970
+ ------------------------------------------------------------------------------
7971
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
7972
+ ------------------------------------------------------------------------------
7973
+  (0.0ms) rollback transaction
7974
+  (0.0ms) begin transaction
7975
+ -----------------------------------------------------------------------------
7976
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
7977
+ -----------------------------------------------------------------------------
7978
+  (0.1ms) SELECT COUNT(*) FROM "testings"
7979
+  (0.0ms) SAVEPOINT active_record_1
7980
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2018-06-27 14:46:14.871005','chartreuse'),('Hey',20,'f','2018-06-27 14:46:14.871005','2018-06-27 14:46:14.871005','chartreuse')
7981
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7982
+  (0.0ms) SELECT COUNT(*) FROM "testings"
7983
+  (0.3ms) rollback transaction
7984
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7985
+  (0.1ms) begin transaction
7986
+ -----------------------------------------------------------------------------
7987
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
7988
+ -----------------------------------------------------------------------------
7989
+  (0.1ms) SELECT COUNT(*) FROM "testings"
7990
+  (0.0ms) SAVEPOINT active_record_1
7991
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2018-06-27 14:46:20.633310','chartreuse'),('Hey',20,'f','2018-06-27 14:46:20.633310','2018-06-27 14:46:20.633310','chartreuse')
7992
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7993
+  (0.0ms) SELECT COUNT(*) FROM "testings"
7994
+  (2.0ms) rollback transaction
7995
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
7996
+  (0.1ms) begin transaction
7997
+ -----------------------------------------------------------------------------
7998
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
7999
+ -----------------------------------------------------------------------------
8000
+  (0.1ms) SELECT COUNT(*) FROM "testings"
8001
+  (0.0ms) SAVEPOINT active_record_1
8002
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2018-06-27 14:46:32.261102','chartreuse'),('Hey',20,'f','2018-06-27 14:46:32.261102','2018-06-27 14:46:32.261102','chartreuse')
8003
+  (0.0ms) RELEASE SAVEPOINT active_record_1
8004
+  (0.0ms) SELECT COUNT(*) FROM "testings"
8005
+  (1.9ms) rollback transaction
8006
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
8007
+  (0.1ms) begin transaction
8008
+ -----------------------------------------------------------------------------
8009
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
8010
+ -----------------------------------------------------------------------------
8011
+  (0.1ms) SELECT COUNT(*) FROM "testings"
8012
+  (0.0ms) SAVEPOINT active_record_1
8013
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2018-06-27 14:46:47.246525','chartreuse'),('Hey',20,'f','2018-06-27 14:46:47.246525','2018-06-27 14:46:47.246525','chartreuse')
8014
+  (0.0ms) RELEASE SAVEPOINT active_record_1
8015
+  (0.0ms) SELECT COUNT(*) FROM "testings"
8016
+  (2.0ms) rollback transaction
8017
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
8018
+  (0.1ms) begin transaction
8019
+ -----------------------------------------------------------------------------
8020
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
8021
+ -----------------------------------------------------------------------------
8022
+  (0.1ms) SELECT COUNT(*) FROM "testings"
8023
+  (0.0ms) SAVEPOINT active_record_1
8024
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,'t','green','2018-06-27 14:47:10.849950','chartreuse'),('Hey',20,'f','2018-06-27 14:47:10.849950','2018-06-27 14:47:10.849950','chartreuse')
8025
+  (0.0ms) RELEASE SAVEPOINT active_record_1
8026
+  (0.0ms) SELECT COUNT(*) FROM "testings"
8027
+  (2.0ms) rollback transaction
8028
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8029
+  (0.1ms) begin transaction
8030
+ -----------------------------------------------------------------------------
8031
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
8032
+ -----------------------------------------------------------------------------
8033
+  (0.1ms) SELECT COUNT(*) FROM "testings"
8034
+  (0.0ms) SAVEPOINT active_record_1
8035
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:48:14.467808','2018-06-27 14:48:14.467808','chartreuse'),('Hey',20,0,'2018-06-27 14:48:14.467808','2018-06-27 14:48:14.467808','chartreuse')
8036
+  (0.0ms) RELEASE SAVEPOINT active_record_1
8037
+  (0.1ms) SELECT COUNT(*) FROM "testings"
8038
+  (2.1ms) rollback transaction
8039
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8040
+  (0.1ms) begin transaction
8041
+ -------------------------------------------------------------------
8042
+ BulkInsertWorkerTest: test_initialized_with_empty_result_sets_array
8043
+ -------------------------------------------------------------------
8044
+  (0.0ms) rollback transaction
8045
+  (0.0ms) begin transaction
8046
+ ----------------------------------------------------------------------------------------------
8047
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
8048
+ ----------------------------------------------------------------------------------------------
8049
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:48:18.060217','2018-06-27 14:48:18.060217','chartreuse'),('Howdy',20,0,'2018-06-27 14:48:18.060217','2018-06-27 14:48:18.060217','chartreuse')
8050
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings"
8051
+  (2.1ms) rollback transaction
8052
+  (0.0ms) begin transaction
8053
+ --------------------------------------------------------------------------------------------
8054
+ BulkInsertWorkerTest: test_save!_does_not_add_to_result_sets_when_not_returning_primary_keys
8055
+ --------------------------------------------------------------------------------------------
8056
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:48:18.071225','2018-06-27 14:48:18.071225','chartreuse'),('second',NULL,NULL,'2018-06-27 14:48:18.071225','2018-06-27 14:48:18.071225','chartreuse')
8057
+  (0.3ms) rollback transaction
8058
+  (0.0ms) begin transaction
8059
+ --------------------------------------------------------------
8060
+ BulkInsertWorkerTest: test_after_save_stores_a_block_as_a_proc
8061
+ --------------------------------------------------------------
8062
+  (0.0ms) rollback transaction
8063
+  (0.0ms) begin transaction
8064
+ ------------------------------------------------------------------------------------------
8065
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_stylecase_adapter_name)
8066
+ ------------------------------------------------------------------------------------------
8067
+  (0.0ms) rollback transaction
8068
+  (0.0ms) begin transaction
8069
+ ---------------------------------------------------------------
8070
+ BulkInsertWorkerTest: test_adapter_dependent_postgresql_methods
8071
+ ---------------------------------------------------------------
8072
+  (0.0ms) rollback transaction
8073
+  (0.0ms) begin transaction
8074
+ --------------------------------------------------------------------------------
8075
+ BulkInsertWorkerTest: test_save!_adds_to_result_sets_when_returning_primary_keys
8076
+ --------------------------------------------------------------------------------
8077
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:48:18.076905','2018-06-27 14:48:18.076905','chartreuse'),('second',NULL,NULL,'2018-06-27 14:48:18.076905','2018-06-27 14:48:18.076905','chartreuse')
8078
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('third',NULL,NULL,'2018-06-27 14:48:18.077501','2018-06-27 14:48:18.077501','chartreuse'),('fourth',NULL,NULL,'2018-06-27 14:48:18.077501','2018-06-27 14:48:18.077501','chartreuse')
8079
+  (0.3ms) rollback transaction
8080
+  (0.0ms) begin transaction
8081
+ -------------------------------------------
8082
+ BulkInsertWorkerTest: test_default_set_size
8083
+ -------------------------------------------
8084
+  (0.0ms) rollback transaction
8085
+  (0.0ms) begin transaction
8086
+ --------------------------------------------------------
8087
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
8088
+ --------------------------------------------------------
8089
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2018-06-27 14:48:18.079853','2018-06-27 14:48:18.079853','chartreuse'),('Hello',25,1,'2018-06-27 14:48:18.079853','2018-06-27 14:48:18.079853','chartreuse')
8090
+ Testing Load (0.3ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
8091
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
8092
+  (0.3ms) rollback transaction
8093
+  (0.0ms) begin transaction
8094
+ ------------------------------------------------------
8095
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
8096
+ ------------------------------------------------------
8097
+  (0.0ms) rollback transaction
8098
+  (0.0ms) begin transaction
8099
+ ------------------------------------------------------------------------------
8100
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
8101
+ ------------------------------------------------------------------------------
8102
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,0,'2018-06-27 14:48:18.085872','2018-06-27 14:48:18.085872','chartreuse')
8103
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
8104
+  (0.3ms) rollback transaction
8105
+  (0.1ms) begin transaction
8106
+ -------------------------------------------------------------
8107
+ BulkInsertWorkerTest: test_save!_calls_the_after_save_handler
8108
+ -------------------------------------------------------------
8109
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2018-06-27 14:48:18.088232','2018-06-27 14:48:18.088232','chartreuse'),('Hello',25,1,'2018-06-27 14:48:18.088232','2018-06-27 14:48:18.088232','chartreuse')
8110
+  (0.4ms) rollback transaction
8111
+  (0.0ms) begin transaction
8112
+ ----------------------------------------------------------------
8113
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
8114
+ ----------------------------------------------------------------
8115
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,0,'2018-06-27 14:48:18.090587','2018-06-27 14:48:18.090587',NULL)
8116
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
8117
+  (0.4ms) rollback transaction
8118
+  (0.0ms) begin transaction
8119
+ ---------------------------------------------------------
8120
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
8121
+ ---------------------------------------------------------
8122
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:48:18.093042','2018-06-27 14:48:18.093042','chartreuse')
8123
+  (0.3ms) rollback transaction
8124
+  (0.1ms) begin transaction
8125
+ -------------------------------------------------------------------
8126
+ BulkInsertWorkerTest: test_after_save_callback_can_be_set_as_a_proc
8127
+ -------------------------------------------------------------------
8128
+  (0.1ms) rollback transaction
8129
+  (0.0ms) begin transaction
8130
+ --------------------------------------------------------------------------
8131
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods_work_for_mysql2
8132
+ --------------------------------------------------------------------------
8133
+  (0.0ms) rollback transaction
8134
+  (0.0ms) begin transaction
8135
+ ------------------------------------------------------------------
8136
+ BulkInsertWorkerTest: test_adapter_dependent_Mysql2Spatial_methods
8137
+ ------------------------------------------------------------------
8138
+  (0.0ms) rollback transaction
8139
+  (0.0ms) begin transaction
8140
+ ----------------------------------------------------------
8141
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods
8142
+ ----------------------------------------------------------
8143
+  (0.0ms) rollback transaction
8144
+  (0.0ms) begin transaction
8145
+ ----------------------------------------------------------------
8146
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
8147
+ ----------------------------------------------------------------
8148
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,0,'2018-06-27 14:48:18.100034','2018-06-27 14:48:18.100034','chartreuse')
8149
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
8150
+  (0.3ms) rollback transaction
8151
+  (0.0ms) begin transaction
8152
+ -------------------------------------------------------------------
8153
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
8154
+ -------------------------------------------------------------------
8155
+  (0.0ms) SELECT COUNT(*) FROM "testings"
8156
+  (0.0ms) SELECT COUNT(*) FROM "testings"
8157
+  (0.0ms) rollback transaction
8158
+  (0.0ms) begin transaction
8159
+ ---------------------------------------------------------------
8160
+ BulkInsertWorkerTest: test_before_save_stores_a_block_as_a_proc
8161
+ ---------------------------------------------------------------
8162
+  (0.0ms) rollback transaction
8163
+  (0.0ms) begin transaction
8164
+ --------------------------------------------------------------------
8165
+ BulkInsertWorkerTest: test_before_save_callback_can_be_set_as_a_proc
8166
+ --------------------------------------------------------------------
8167
+  (0.0ms) rollback transaction
8168
+  (0.0ms) begin transaction
8169
+ ------------------------------------------------------------
8170
+ BulkInsertWorkerTest: test_adapter_dependent_default_methods
8171
+ ------------------------------------------------------------
8172
+  (0.0ms) rollback transaction
8173
+  (0.0ms) begin transaction
8174
+ ------------------------------------------------------------------------------------------
8175
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_lowercase_adapter_name)
8176
+ ------------------------------------------------------------------------------------------
8177
+  (0.0ms) rollback transaction
8178
+  (0.0ms) begin transaction
8179
+ -------------------------------------------------------------
8180
+ BulkInsertWorkerTest: test_before_save_can_manipulate_the_set
8181
+ -------------------------------------------------------------
8182
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',25,1,'2018-06-27 14:48:18.106709','2018-06-27 14:48:18.106709','chartreuse')
8183
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
8184
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
8185
+  (0.3ms) rollback transaction
8186
+  (0.0ms) begin transaction
8187
+ --------------------------------------------------------------------------------
8188
+ BulkInsertWorkerTest: test_save!_doesn't_blow_up_if_before_save_emptying_the_set
8189
+ --------------------------------------------------------------------------------
8190
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
8191
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
8192
+  (0.0ms) rollback transaction
8193
+  (0.0ms) begin transaction
8194
+ --------------------------------------------------------------
8195
+ BulkInsertWorkerTest: test_save!_calls_the_before_save_handler
8196
+ --------------------------------------------------------------
8197
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2018-06-27 14:48:18.110169','2018-06-27 14:48:18.110169','chartreuse'),('Hello',25,1,'2018-06-27 14:48:18.110169','2018-06-27 14:48:18.110169','chartreuse')
8198
+  (0.5ms) rollback transaction
8199
+  (0.0ms) begin transaction
8200
+ ----------------------------------------------------------------------------
8201
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
8202
+ ----------------------------------------------------------------------------
8203
+  (0.0ms) rollback transaction
8204
+  (0.0ms) begin transaction
8205
+ ---------------------------------------------------------------------
8206
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
8207
+ ---------------------------------------------------------------------
8208
+  (0.0ms) rollback transaction
8209
+  (0.0ms) begin transaction
8210
+ --------------------------------------------------------------
8211
+ BulkInsertWorkerTest: test_mysql_adapter_can_update_duplicates
8212
+ --------------------------------------------------------------
8213
+  (0.0ms) rollback transaction
8214
+  (0.0ms) begin transaction
8215
+ ----------------------------------------------------------------------------------
8216
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
8217
+ ----------------------------------------------------------------------------------
8218
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:48:18.115118','2018-06-27 14:48:18.115118','chartreuse')
8219
+  (0.0ms) SELECT COUNT(*) FROM "testings"
8220
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
8221
+  (0.3ms) rollback transaction
8222
+  (0.0ms) begin transaction
8223
+ ------------------------------------------------------------
8224
+ BulkInsertWorkerTest: test_adapter_dependent_PostGIS_methods
8225
+ ------------------------------------------------------------
8226
+  (0.0ms) rollback transaction
8227
+  (0.0ms) begin transaction
8228
+ --------------------------------------------------------------------
8229
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
8230
+ --------------------------------------------------------------------
8231
+  (0.0ms) rollback transaction
8232
+  (0.0ms) begin transaction
8233
+ -------------------------------------------------------------------------------
8234
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
8235
+ -------------------------------------------------------------------------------
8236
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:48:18.119014','2018-06-27 14:48:18.119014','chartreuse')
8237
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
8238
+  (0.3ms) rollback transaction
8239
+  (0.0ms) begin transaction
8240
+ -------------------------------------------------------------------
8241
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
8242
+ -------------------------------------------------------------------
8243
+  (0.0ms) rollback transaction
8244
+  (0.0ms) begin transaction
8245
+ ---------------------------------------------------------------
8246
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
8247
+ ---------------------------------------------------------------
8248
+  (0.0ms) SAVEPOINT active_record_1
8249
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8250
+  (0.0ms) rollback transaction
8251
+  (0.0ms) begin transaction
8252
+ -----------------------------------------------------------------------------
8253
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
8254
+ -----------------------------------------------------------------------------
8255
+  (0.1ms) SELECT COUNT(*) FROM "testings"
8256
+  (0.0ms) SAVEPOINT active_record_1
8257
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:48:18.123493','2018-06-27 14:48:18.123493','chartreuse'),('Hey',20,0,'2018-06-27 14:48:18.123493','2018-06-27 14:48:18.123493','chartreuse')
8258
+  (0.0ms) RELEASE SAVEPOINT active_record_1
8259
+  (0.0ms) SELECT COUNT(*) FROM "testings"
8260
+  (0.3ms) rollback transaction
8261
+  (0.0ms) begin transaction
8262
+ -----------------------------------------------------------------------------------------------------
8263
+ BulkInsertTest: test_worker_should_not_have_any_result_sets_without_option_for_returning_primary_keys
8264
+ -----------------------------------------------------------------------------------------------------
8265
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('hello',NULL,NULL,'2018-06-27 14:48:18.125311','2018-06-27 14:48:18.125311','chartreuse')
8266
+  (0.3ms) rollback transaction
8267
+  (0.0ms) begin transaction
8268
+ ------------------------------------------------------------------------------
8269
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
8270
+ ------------------------------------------------------------------------------
8271
+  (0.0ms) rollback transaction
8272
+  (0.0ms) begin transaction
8273
+ ---------------------------------------------------------------------
8274
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
8275
+ ---------------------------------------------------------------------
8276
+  (0.1ms) SELECT COUNT(*) FROM "testings"
8277
+  (0.0ms) SAVEPOINT active_record_1
8278
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2018-06-27 14:48:18.127631','2018-06-27 14:48:18.127631','chartreuse')
8279
+  (0.0ms) RELEASE SAVEPOINT active_record_1
8280
+  (0.0ms) SELECT COUNT(*) FROM "testings"
8281
+  (0.4ms) rollback transaction
8282
+  (0.0ms) begin transaction
8283
+ ---------------------------------------------------------------------------------------
8284
+ BulkInsertTest: test_with_option_to_return_primary_keys,_worker_should_have_result_sets
8285
+ ---------------------------------------------------------------------------------------
8286
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('yo',NULL,NULL,'2018-06-27 14:48:18.129713','2018-06-27 14:48:18.129713','chartreuse')
8287
+  (0.4ms) rollback transaction
8288
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8289
+  (0.0ms) begin transaction
8290
+ -----------------------------------------------------------------------------------------------------
8291
+ BulkInsertTest: test_worker_should_not_have_any_result_sets_without_option_for_returning_primary_keys
8292
+ -----------------------------------------------------------------------------------------------------
8293
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('hello',NULL,NULL,'2018-06-27 14:48:46.663296','2018-06-27 14:48:46.663296','chartreuse')
8294
+  (2.0ms) rollback transaction
8295
+  (0.0ms) begin transaction
8296
+ ---------------------------------------------------------------------------------------
8297
+ BulkInsertTest: test_with_option_to_return_primary_keys,_worker_should_have_result_sets
8298
+ ---------------------------------------------------------------------------------------
8299
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('yo',NULL,NULL,'2018-06-27 14:48:46.667070','2018-06-27 14:48:46.667070','chartreuse')
8300
+  (0.3ms) rollback transaction
8301
+  (0.0ms) begin transaction
8302
+ ---------------------------------------------------------------------
8303
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
8304
+ ---------------------------------------------------------------------
8305
+  (0.1ms) SELECT COUNT(*) FROM "testings"
8306
+  (0.0ms) SAVEPOINT active_record_1
8307
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2018-06-27 14:48:46.669607','2018-06-27 14:48:46.669607','chartreuse')
8308
+  (0.0ms) RELEASE SAVEPOINT active_record_1
8309
+  (0.1ms) SELECT COUNT(*) FROM "testings"
8310
+  (0.3ms) rollback transaction
8311
+  (0.0ms) begin transaction
8312
+ -------------------------------------------------------------------
8313
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
8314
+ -------------------------------------------------------------------
8315
+  (0.0ms) rollback transaction
8316
+  (0.0ms) begin transaction
8317
+ ---------------------------------------------------------------
8318
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
8319
+ ---------------------------------------------------------------
8320
+  (0.0ms) SAVEPOINT active_record_1
8321
+  (0.0ms) RELEASE SAVEPOINT active_record_1
8322
+  (0.0ms) rollback transaction
8323
+  (0.0ms) begin transaction
8324
+ ------------------------------------------------------------------------------
8325
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
8326
+ ------------------------------------------------------------------------------
8327
+  (0.0ms) rollback transaction
8328
+  (0.0ms) begin transaction
8329
+ -----------------------------------------------------------------------------
8330
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
8331
+ -----------------------------------------------------------------------------
8332
+  (0.1ms) SELECT COUNT(*) FROM "testings"
8333
+  (0.1ms) SAVEPOINT active_record_1
8334
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:48:46.674855','2018-06-27 14:48:46.674855','chartreuse'),('Hey',20,0,'2018-06-27 14:48:46.674855','2018-06-27 14:48:46.674855','chartreuse')
8335
+  (0.0ms) RELEASE SAVEPOINT active_record_1
8336
+  (0.0ms) SELECT COUNT(*) FROM "testings"
8337
+  (0.3ms) rollback transaction
8338
+  (0.0ms) begin transaction
8339
+ ---------------------------------------------------------------
8340
+ BulkInsertWorkerTest: test_before_save_stores_a_block_as_a_proc
8341
+ ---------------------------------------------------------------
8342
+  (0.0ms) rollback transaction
8343
+  (0.0ms) begin transaction
8344
+ -------------------------------------------------------------
8345
+ BulkInsertWorkerTest: test_before_save_can_manipulate_the_set
8346
+ -------------------------------------------------------------
8347
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',25,1,'2018-06-27 14:48:46.678600','2018-06-27 14:48:46.678600','chartreuse')
8348
+ Testing Load (0.2ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
8349
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
8350
+  (0.4ms) rollback transaction
8351
+  (0.0ms) begin transaction
8352
+ ------------------------------------------------------
8353
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
8354
+ ------------------------------------------------------
8355
+  (0.0ms) rollback transaction
8356
+  (0.0ms) begin transaction
8357
+ ---------------------------------------------------------
8358
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
8359
+ ---------------------------------------------------------
8360
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:48:46.690475','2018-06-27 14:48:46.690475','chartreuse')
8361
+  (0.3ms) rollback transaction
8362
+  (0.0ms) begin transaction
8363
+ ------------------------------------------------------------------------------
8364
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
8365
+ ------------------------------------------------------------------------------
8366
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,0,'2018-06-27 14:48:46.692449','2018-06-27 14:48:46.692449','chartreuse')
8367
+ Testing Load (0.2ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
8368
+  (0.4ms) rollback transaction
8369
+  (0.0ms) begin transaction
8370
+ --------------------------------------------------------------------
8371
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
8372
+ --------------------------------------------------------------------
8373
+  (0.1ms) rollback transaction
8374
+  (0.0ms) begin transaction
8375
+ ----------------------------------------------------------------
8376
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
8377
+ ----------------------------------------------------------------
8378
+  (0.7ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,0,'2018-06-27 14:48:46.697999','2018-06-27 14:48:46.697999',NULL)
8379
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
8380
+  (0.3ms) rollback transaction
8381
+  (0.0ms) begin transaction
8382
+ ---------------------------------------------------------------------
8383
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
8384
+ ---------------------------------------------------------------------
8385
+  (0.0ms) rollback transaction
8386
+  (0.1ms) begin transaction
8387
+ ------------------------------------------------------------
8388
+ BulkInsertWorkerTest: test_adapter_dependent_default_methods
8389
+ ------------------------------------------------------------
8390
+  (0.0ms) rollback transaction
8391
+  (0.0ms) begin transaction
8392
+ --------------------------------------------------------------------------------
8393
+ BulkInsertWorkerTest: test_save!_doesn't_blow_up_if_before_save_emptying_the_set
8394
+ --------------------------------------------------------------------------------
8395
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
8396
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
8397
+  (0.0ms) rollback transaction
8398
+  (0.1ms) begin transaction
8399
+ --------------------------------------------------------
8400
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
8401
+ --------------------------------------------------------
8402
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2018-06-27 14:48:46.705125','2018-06-27 14:48:46.705125','chartreuse'),('Hello',25,1,'2018-06-27 14:48:46.705125','2018-06-27 14:48:46.705125','chartreuse')
8403
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
8404
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
8405
+  (0.3ms) rollback transaction
8406
+  (0.0ms) begin transaction
8407
+ -------------------------------------------------------------------------------
8408
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
8409
+ -------------------------------------------------------------------------------
8410
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:48:46.707684','2018-06-27 14:48:46.707684','chartreuse')
8411
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
8412
+  (0.4ms) rollback transaction
8413
+  (0.0ms) begin transaction
8414
+ -------------------------------------------------------------
8415
+ BulkInsertWorkerTest: test_save!_calls_the_after_save_handler
8416
+ -------------------------------------------------------------
8417
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2018-06-27 14:48:46.709998','2018-06-27 14:48:46.709998','chartreuse'),('Hello',25,1,'2018-06-27 14:48:46.709998','2018-06-27 14:48:46.709998','chartreuse')
8418
+  (0.3ms) rollback transaction
8419
+  (0.0ms) begin transaction
8420
+ -------------------------------------------------------------------
8421
+ BulkInsertWorkerTest: test_after_save_callback_can_be_set_as_a_proc
8422
+ -------------------------------------------------------------------
8423
+  (0.0ms) rollback transaction
8424
+  (0.0ms) begin transaction
8425
+ ------------------------------------------------------------
8426
+ BulkInsertWorkerTest: test_adapter_dependent_PostGIS_methods
8427
+ ------------------------------------------------------------
8428
+  (0.0ms) rollback transaction
8429
+  (0.0ms) begin transaction
8430
+ ------------------------------------------------------------------------------------------
8431
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_lowercase_adapter_name)
8432
+ ------------------------------------------------------------------------------------------
8433
+  (0.0ms) rollback transaction
8434
+  (0.0ms) begin transaction
8435
+ ----------------------------------------------------------------------------------
8436
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
8437
+ ----------------------------------------------------------------------------------
8438
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:48:46.714845','2018-06-27 14:48:46.714845','chartreuse')
8439
+  (0.0ms) SELECT COUNT(*) FROM "testings"
8440
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
8441
+  (0.3ms) rollback transaction
8442
+  (0.0ms) begin transaction
8443
+ ------------------------------------------------------------------
8444
+ BulkInsertWorkerTest: test_adapter_dependent_Mysql2Spatial_methods
8445
+ ------------------------------------------------------------------
8446
+  (0.0ms) rollback transaction
8447
+  (0.0ms) begin transaction
8448
+ ----------------------------------------------------------------
8449
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
8450
+ ----------------------------------------------------------------
8451
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,0,'2018-06-27 14:48:46.718149','2018-06-27 14:48:46.718149','chartreuse')
8452
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
8453
+  (0.3ms) rollback transaction
8454
+  (0.0ms) begin transaction
8455
+ --------------------------------------------------------------
8456
+ BulkInsertWorkerTest: test_after_save_stores_a_block_as_a_proc
8457
+ --------------------------------------------------------------
8458
+  (0.0ms) rollback transaction
8459
+  (0.0ms) begin transaction
8460
+ --------------------------------------------------------------------------------------------
8461
+ BulkInsertWorkerTest: test_save!_does_not_add_to_result_sets_when_not_returning_primary_keys
8462
+ --------------------------------------------------------------------------------------------
8463
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:48:46.721344','2018-06-27 14:48:46.721344','chartreuse'),('second',NULL,NULL,'2018-06-27 14:48:46.721344','2018-06-27 14:48:46.721344','chartreuse')
8464
+  (0.3ms) rollback transaction
8465
+  (0.0ms) begin transaction
8466
+ ----------------------------------------------------------------------------------------------
8467
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
8468
+ ----------------------------------------------------------------------------------------------
8469
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:48:46.722968','2018-06-27 14:48:46.722968','chartreuse'),('Howdy',20,0,'2018-06-27 14:48:46.722968','2018-06-27 14:48:46.722968','chartreuse')
8470
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings"
8471
+  (0.3ms) rollback transaction
8472
+  (0.0ms) begin transaction
8473
+ -------------------------------------------------------------------
8474
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
8475
+ -------------------------------------------------------------------
8476
+  (0.0ms) SELECT COUNT(*) FROM "testings"
8477
+  (0.0ms) SELECT COUNT(*) FROM "testings"
8478
+  (0.0ms) rollback transaction
8479
+  (0.0ms) begin transaction
8480
+ ---------------------------------------------------------------
8481
+ BulkInsertWorkerTest: test_adapter_dependent_postgresql_methods
8482
+ ---------------------------------------------------------------
8483
+  (0.0ms) rollback transaction
8484
+  (0.0ms) begin transaction
8485
+ ----------------------------------------------------------------------------
8486
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
8487
+ ----------------------------------------------------------------------------
8488
+  (0.0ms) rollback transaction
8489
+  (0.0ms) begin transaction
8490
+ -------------------------------------------
8491
+ BulkInsertWorkerTest: test_default_set_size
8492
+ -------------------------------------------
8493
+  (0.0ms) rollback transaction
8494
+  (0.0ms) begin transaction
8495
+ --------------------------------------------------------------
8496
+ BulkInsertWorkerTest: test_save!_calls_the_before_save_handler
8497
+ --------------------------------------------------------------
8498
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2018-06-27 14:48:46.728975','2018-06-27 14:48:46.728975','chartreuse'),('Hello',25,1,'2018-06-27 14:48:46.728975','2018-06-27 14:48:46.728975','chartreuse')
8499
+  (0.3ms) rollback transaction
8500
+  (0.0ms) begin transaction
8501
+ --------------------------------------------------------------------
8502
+ BulkInsertWorkerTest: test_before_save_callback_can_be_set_as_a_proc
8503
+ --------------------------------------------------------------------
8504
+  (0.0ms) rollback transaction
8505
+  (0.0ms) begin transaction
8506
+ -------------------------------------------------------------------
8507
+ BulkInsertWorkerTest: test_initialized_with_empty_result_sets_array
8508
+ -------------------------------------------------------------------
8509
+  (0.0ms) rollback transaction
8510
+  (0.0ms) begin transaction
8511
+ --------------------------------------------------------------
8512
+ BulkInsertWorkerTest: test_mysql_adapter_can_update_duplicates
8513
+ --------------------------------------------------------------
8514
+  (0.1ms) rollback transaction
8515
+  (0.1ms) begin transaction
8516
+ --------------------------------------------------------------------------------
8517
+ BulkInsertWorkerTest: test_save!_adds_to_result_sets_when_returning_primary_keys
8518
+ --------------------------------------------------------------------------------
8519
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:48:46.735255','2018-06-27 14:48:46.735255','chartreuse'),('second',NULL,NULL,'2018-06-27 14:48:46.735255','2018-06-27 14:48:46.735255','chartreuse')
8520
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('third',NULL,NULL,'2018-06-27 14:48:46.735798','2018-06-27 14:48:46.735798','chartreuse'),('fourth',NULL,NULL,'2018-06-27 14:48:46.735798','2018-06-27 14:48:46.735798','chartreuse')
8521
+  (0.3ms) rollback transaction
8522
+  (0.0ms) begin transaction
8523
+ ------------------------------------------------------------------------------------------
8524
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_stylecase_adapter_name)
8525
+ ------------------------------------------------------------------------------------------
8526
+  (0.0ms) rollback transaction
8527
+  (0.0ms) begin transaction
8528
+ ----------------------------------------------------------
8529
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods
8530
+ ----------------------------------------------------------
8531
+  (0.0ms) rollback transaction
8532
+  (0.0ms) begin transaction
8533
+ --------------------------------------------------------------------------
8534
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods_work_for_mysql2
8535
+ --------------------------------------------------------------------------
8536
+  (0.0ms) rollback transaction
8537
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8538
+  (0.0ms) begin transaction
8539
+ ------------------------------------------------------------------
8540
+ BulkInsertWorkerTest: test_adapter_dependent_Mysql2Spatial_methods
8541
+ ------------------------------------------------------------------
8542
+  (0.0ms) rollback transaction
8543
+  (0.0ms) begin transaction
8544
+ -------------------------------------------
8545
+ BulkInsertWorkerTest: test_default_set_size
8546
+ -------------------------------------------
8547
+  (0.0ms) rollback transaction
8548
+  (0.0ms) begin transaction
8549
+ ----------------------------------------------------------------
8550
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
8551
+ ----------------------------------------------------------------
8552
+  (0.5ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,0,'2018-06-27 14:52:21.215802','2018-06-27 14:52:21.215802',NULL)
8553
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
8554
+  (2.1ms) rollback transaction
8555
+  (0.0ms) begin transaction
8556
+ --------------------------------------------------------------------------------
8557
+ BulkInsertWorkerTest: test_save!_doesn't_blow_up_if_before_save_emptying_the_set
8558
+ --------------------------------------------------------------------------------
8559
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
8560
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
8561
+  (0.0ms) rollback transaction
8562
+  (0.0ms) begin transaction
8563
+ --------------------------------------------------------------
8564
+ BulkInsertWorkerTest: test_mysql_adapter_can_update_duplicates
8565
+ --------------------------------------------------------------
8566
+  (0.0ms) rollback transaction
8567
+  (0.0ms) begin transaction
8568
+ --------------------------------------------------------------
8569
+ BulkInsertWorkerTest: test_save!_calls_the_before_save_handler
8570
+ --------------------------------------------------------------
8571
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2018-06-27 14:52:21.232460','2018-06-27 14:52:21.232460','chartreuse'),('Hello',25,1,'2018-06-27 14:52:21.232460','2018-06-27 14:52:21.232460','chartreuse')
8572
+  (0.4ms) rollback transaction
8573
+  (0.0ms) begin transaction
8574
+ --------------------------------------------------------------------------
8575
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods_work_for_mysql2
8576
+ --------------------------------------------------------------------------
8577
+  (0.0ms) rollback transaction
8578
+  (0.0ms) begin transaction
8579
+ --------------------------------------------------------
8580
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
8581
+ --------------------------------------------------------
8582
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2018-06-27 14:52:21.235778','2018-06-27 14:52:21.235778','chartreuse'),('Hello',25,1,'2018-06-27 14:52:21.235778','2018-06-27 14:52:21.235778','chartreuse')
8583
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
8584
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
8585
+  (0.4ms) rollback transaction
8586
+  (0.0ms) begin transaction
8587
+ ---------------------------------------------------------
8588
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
8589
+ ---------------------------------------------------------
8590
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:52:21.238370','2018-06-27 14:52:21.238370','chartreuse')
8591
+  (0.3ms) rollback transaction
8592
+  (0.0ms) begin transaction
8593
+ ----------------------------------------------------------------
8594
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
8595
+ ----------------------------------------------------------------
8596
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,0,'2018-06-27 14:52:21.240045','2018-06-27 14:52:21.240045','chartreuse')
8597
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
8598
+  (0.3ms) rollback transaction
8599
+  (0.0ms) begin transaction
8600
+ --------------------------------------------------------------------
8601
+ BulkInsertWorkerTest: test_before_save_callback_can_be_set_as_a_proc
8602
+ --------------------------------------------------------------------
8603
+  (0.0ms) rollback transaction
8604
+  (0.0ms) begin transaction
8605
+ ------------------------------------------------------------------------------------------
8606
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_lowercase_adapter_name)
8607
+ ------------------------------------------------------------------------------------------
8608
+  (0.0ms) rollback transaction
8609
+  (0.1ms) begin transaction
8610
+ -------------------------------------------------------------------
8611
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
8612
+ -------------------------------------------------------------------
8613
+  (0.1ms) SELECT COUNT(*) FROM "testings"
8614
+  (0.0ms) SELECT COUNT(*) FROM "testings"
8615
+  (0.0ms) rollback transaction
8616
+  (0.0ms) begin transaction
8617
+ ----------------------------------------------------------------------------------------------
8618
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
8619
+ ----------------------------------------------------------------------------------------------
8620
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:52:21.246733','2018-06-27 14:52:21.246733','chartreuse'),('Howdy',20,0,'2018-06-27 14:52:21.246733','2018-06-27 14:52:21.246733','chartreuse')
8621
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings"
8622
+  (0.4ms) rollback transaction
8623
+  (0.0ms) begin transaction
8624
+ --------------------------------------------------------------------------------------------
8625
+ BulkInsertWorkerTest: test_save!_does_not_add_to_result_sets_when_not_returning_primary_keys
8626
+ --------------------------------------------------------------------------------------------
8627
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:52:21.249413','2018-06-27 14:52:21.249413','chartreuse'),('second',NULL,NULL,'2018-06-27 14:52:21.249413','2018-06-27 14:52:21.249413','chartreuse')
8628
+  (0.3ms) rollback transaction
8629
+  (0.0ms) begin transaction
8630
+ -------------------------------------------------------------------------------
8631
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
8632
+ -------------------------------------------------------------------------------
8633
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:52:21.251288','2018-06-27 14:52:21.251288','chartreuse')
8634
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
8635
+  (0.3ms) rollback transaction
8636
+  (0.0ms) begin transaction
8637
+ ---------------------------------------------------------------
8638
+ BulkInsertWorkerTest: test_before_save_stores_a_block_as_a_proc
8639
+ ---------------------------------------------------------------
8640
+  (0.0ms) rollback transaction
8641
+  (0.0ms) begin transaction
8642
+ ----------------------------------------------------------------------------
8643
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
8644
+ ----------------------------------------------------------------------------
8645
+  (0.0ms) rollback transaction
8646
+  (0.1ms) begin transaction
8647
+ ------------------------------------------------------
8648
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
8649
+ ------------------------------------------------------
8650
+  (0.0ms) rollback transaction
8651
+  (0.0ms) begin transaction
8652
+ --------------------------------------------------------------
8653
+ BulkInsertWorkerTest: test_after_save_stores_a_block_as_a_proc
8654
+ --------------------------------------------------------------
8655
+  (0.0ms) rollback transaction
8656
+  (0.0ms) begin transaction
8657
+ --------------------------------------------------------------------------------
8658
+ BulkInsertWorkerTest: test_save!_adds_to_result_sets_when_returning_primary_keys
8659
+ --------------------------------------------------------------------------------
8660
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:52:21.258307','2018-06-27 14:52:21.258307','chartreuse'),('second',NULL,NULL,'2018-06-27 14:52:21.258307','2018-06-27 14:52:21.258307','chartreuse')
8661
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('third',NULL,NULL,'2018-06-27 14:52:21.258946','2018-06-27 14:52:21.258946','chartreuse'),('fourth',NULL,NULL,'2018-06-27 14:52:21.258946','2018-06-27 14:52:21.258946','chartreuse')
8662
+  (0.3ms) rollback transaction
8663
+  (0.0ms) begin transaction
8664
+ ----------------------------------------------------------
8665
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods
8666
+ ----------------------------------------------------------
8667
+  (0.0ms) rollback transaction
8668
+  (0.0ms) begin transaction
8669
+ ------------------------------------------------------------
8670
+ BulkInsertWorkerTest: test_adapter_dependent_default_methods
8671
+ ------------------------------------------------------------
8672
+  (0.0ms) rollback transaction
8673
+  (0.0ms) begin transaction
8674
+ ---------------------------------------------------------------
8675
+ BulkInsertWorkerTest: test_adapter_dependent_postgresql_methods
8676
+ ---------------------------------------------------------------
8677
+  (0.0ms) rollback transaction
8678
+  (0.0ms) begin transaction
8679
+ -------------------------------------------------------------
8680
+ BulkInsertWorkerTest: test_save!_calls_the_after_save_handler
8681
+ -------------------------------------------------------------
8682
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2018-06-27 14:52:21.263442','2018-06-27 14:52:21.263442','chartreuse'),('Hello',25,1,'2018-06-27 14:52:21.263442','2018-06-27 14:52:21.263442','chartreuse')
8683
+  (0.3ms) rollback transaction
8684
+  (0.1ms) begin transaction
8685
+ ------------------------------------------------------------------------------------------
8686
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_stylecase_adapter_name)
8687
+ ------------------------------------------------------------------------------------------
8688
+  (0.0ms) rollback transaction
8689
+  (0.0ms) begin transaction
8690
+ -------------------------------------------------------------
8691
+ BulkInsertWorkerTest: test_before_save_can_manipulate_the_set
8692
+ -------------------------------------------------------------
8693
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',25,1,'2018-06-27 14:52:21.266133','2018-06-27 14:52:21.266133','chartreuse')
8694
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
8695
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
8696
+  (0.3ms) rollback transaction
8697
+  (0.0ms) begin transaction
8698
+ ----------------------------------------------------------------------------------
8699
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
8700
+ ----------------------------------------------------------------------------------
8701
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:52:21.268069','2018-06-27 14:52:21.268069','chartreuse')
8702
+  (0.0ms) SELECT COUNT(*) FROM "testings"
8703
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
8704
+  (0.3ms) rollback transaction
8705
+  (0.0ms) begin transaction
8706
+ --------------------------------------------------------------------
8707
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
8708
+ --------------------------------------------------------------------
8709
+  (0.0ms) rollback transaction
8710
+  (0.0ms) begin transaction
8711
+ ---------------------------------------------------------------------
8712
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
8713
+ ---------------------------------------------------------------------
8714
+  (0.0ms) rollback transaction
8715
+  (0.0ms) begin transaction
8716
+ ------------------------------------------------------------------------------
8717
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
8718
+ ------------------------------------------------------------------------------
8719
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,0,'2018-06-27 14:52:21.272008','2018-06-27 14:52:21.272008','chartreuse')
8720
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
8721
+  (0.3ms) rollback transaction
8722
+  (0.0ms) begin transaction
8723
+ -------------------------------------------------------------------
8724
+ BulkInsertWorkerTest: test_initialized_with_empty_result_sets_array
8725
+ -------------------------------------------------------------------
8726
+  (0.0ms) rollback transaction
8727
+  (0.0ms) begin transaction
8728
+ ------------------------------------------------------------
8729
+ BulkInsertWorkerTest: test_adapter_dependent_PostGIS_methods
8730
+ ------------------------------------------------------------
8731
+  (0.0ms) rollback transaction
8732
+  (0.0ms) begin transaction
8733
+ -------------------------------------------------------------------
8734
+ BulkInsertWorkerTest: test_after_save_callback_can_be_set_as_a_proc
8735
+ -------------------------------------------------------------------
8736
+  (0.1ms) rollback transaction
8737
+  (0.0ms) begin transaction
8738
+ ------------------------------------------------------------------------------
8739
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
8740
+ ------------------------------------------------------------------------------
8741
+  (0.0ms) rollback transaction
8742
+  (0.0ms) begin transaction
8743
+ ---------------------------------------------------------------------------------------
8744
+ BulkInsertTest: test_with_option_to_return_primary_keys,_worker_should_have_result_sets
8745
+ ---------------------------------------------------------------------------------------
8746
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('yo',NULL,NULL,'2018-06-27 14:52:21.277536','2018-06-27 14:52:21.277536','chartreuse')
8747
+  (0.3ms) rollback transaction
8748
+  (0.0ms) begin transaction
8749
+ -----------------------------------------------------------------------------------------------------
8750
+ BulkInsertTest: test_worker_should_not_have_any_result_sets_without_option_for_returning_primary_keys
8751
+ -----------------------------------------------------------------------------------------------------
8752
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('hello',NULL,NULL,'2018-06-27 14:52:21.278975','2018-06-27 14:52:21.278975','chartreuse')
8753
+  (0.3ms) rollback transaction
8754
+  (0.0ms) begin transaction
8755
+ -------------------------------------------------------------------
8756
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
8757
+ -------------------------------------------------------------------
8758
+  (0.0ms) rollback transaction
8759
+  (0.0ms) begin transaction
8760
+ -----------------------------------------------------------------------------
8761
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
8762
+ -----------------------------------------------------------------------------
8763
+  (0.1ms) SELECT COUNT(*) FROM "testings"
8764
+  (0.0ms) SAVEPOINT active_record_1
8765
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:52:21.281660','2018-06-27 14:52:21.281660','chartreuse'),('Hey',20,0,'2018-06-27 14:52:21.281660','2018-06-27 14:52:21.281660','chartreuse')
8766
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8767
+  (0.0ms) SELECT COUNT(*) FROM "testings"
8768
+  (0.4ms) rollback transaction
8769
+  (0.1ms) begin transaction
8770
+ ---------------------------------------------------------------------
8771
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
8772
+ ---------------------------------------------------------------------
8773
+  (0.2ms) SELECT COUNT(*) FROM "testings"
8774
+  (0.0ms) SAVEPOINT active_record_1
8775
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2018-06-27 14:52:21.284780','2018-06-27 14:52:21.284780','chartreuse')
8776
+  (0.0ms) RELEASE SAVEPOINT active_record_1
8777
+  (0.0ms) SELECT COUNT(*) FROM "testings"
8778
+  (0.3ms) rollback transaction
8779
+  (0.0ms) begin transaction
8780
+ ---------------------------------------------------------------
8781
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
8782
+ ---------------------------------------------------------------
8783
+  (0.0ms) SAVEPOINT active_record_1
8784
+  (0.0ms) RELEASE SAVEPOINT active_record_1
8785
+  (0.0ms) rollback transaction
8786
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8787
+  (0.0ms) begin transaction
8788
+ -------------------------------------------------------------
8789
+ BulkInsertWorkerTest: test_before_save_can_manipulate_the_set
8790
+ -------------------------------------------------------------
8791
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',25,1,'2018-06-27 14:53:52.043001','2018-06-27 14:53:52.043001','chartreuse')
8792
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
8793
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
8794
+  (2.0ms) rollback transaction
8795
+  (0.0ms) begin transaction
8796
+ -------------------------------------------------------------------
8797
+ BulkInsertWorkerTest: test_after_save_callback_can_be_set_as_a_proc
8798
+ -------------------------------------------------------------------
8799
+  (0.0ms) rollback transaction
8800
+  (0.0ms) begin transaction
8801
+ --------------------------------------------------------------------
8802
+ BulkInsertWorkerTest: test_before_save_callback_can_be_set_as_a_proc
8803
+ --------------------------------------------------------------------
8804
+  (0.0ms) rollback transaction
8805
+  (0.1ms) begin transaction
8806
+ --------------------------------------------------------------
8807
+ BulkInsertWorkerTest: test_after_save_stores_a_block_as_a_proc
8808
+ --------------------------------------------------------------
8809
+  (0.0ms) rollback transaction
8810
+  (0.0ms) begin transaction
8811
+ -------------------------------------------
8812
+ BulkInsertWorkerTest: test_default_set_size
8813
+ -------------------------------------------
8814
+  (0.0ms) rollback transaction
8815
+  (0.0ms) begin transaction
8816
+ -------------------------------------------------------------------
8817
+ BulkInsertWorkerTest: test_initialized_with_empty_result_sets_array
8818
+ -------------------------------------------------------------------
8819
+  (0.0ms) rollback transaction
8820
+  (0.0ms) begin transaction
8821
+ ---------------------------------------------------------------
8822
+ BulkInsertWorkerTest: test_before_save_stores_a_block_as_a_proc
8823
+ ---------------------------------------------------------------
8824
+  (0.0ms) rollback transaction
8825
+  (0.0ms) begin transaction
8826
+ ------------------------------------------------------------------------------
8827
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
8828
+ ------------------------------------------------------------------------------
8829
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,0,'2018-06-27 14:53:52.060678','2018-06-27 14:53:52.060678','chartreuse')
8830
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
8831
+  (0.4ms) rollback transaction
8832
+  (0.1ms) begin transaction
8833
+ ---------------------------------------------------------
8834
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
8835
+ ---------------------------------------------------------
8836
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:53:52.063130','2018-06-27 14:53:52.063130','chartreuse')
8837
+  (0.3ms) rollback transaction
8838
+  (0.0ms) begin transaction
8839
+ ----------------------------------------------------------------------------------
8840
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
8841
+ ----------------------------------------------------------------------------------
8842
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:53:52.064867','2018-06-27 14:53:52.064867','chartreuse')
8843
+  (0.0ms) SELECT COUNT(*) FROM "testings"
8844
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
8845
+  (0.3ms) rollback transaction
8846
+  (0.1ms) begin transaction
8847
+ --------------------------------------------------------------------------------
8848
+ BulkInsertWorkerTest: test_save!_doesn't_blow_up_if_before_save_emptying_the_set
8849
+ --------------------------------------------------------------------------------
8850
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
8851
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
8852
+  (0.0ms) rollback transaction
8853
+  (0.0ms) begin transaction
8854
+ ------------------------------------------------------------------------------------------
8855
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_stylecase_adapter_name)
8856
+ ------------------------------------------------------------------------------------------
8857
+  (0.0ms) rollback transaction
8858
+  (0.0ms) begin transaction
8859
+ ----------------------------------------------------------------
8860
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
8861
+ ----------------------------------------------------------------
8862
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,0,'2018-06-27 14:53:52.070282','2018-06-27 14:53:52.070282',NULL)
8863
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
8864
+  (0.3ms) rollback transaction
8865
+  (0.1ms) begin transaction
8866
+ ---------------------------------------------------------------
8867
+ BulkInsertWorkerTest: test_adapter_dependent_postgresql_methods
8868
+ ---------------------------------------------------------------
8869
+  (0.1ms) rollback transaction
8870
+  (0.1ms) begin transaction
8871
+ --------------------------------------------------------------
8872
+ BulkInsertWorkerTest: test_mysql_adapter_can_update_duplicates
8873
+ --------------------------------------------------------------
8874
+  (0.0ms) rollback transaction
8875
+  (0.0ms) begin transaction
8876
+ -------------------------------------------------------------
8877
+ BulkInsertWorkerTest: test_save!_calls_the_after_save_handler
8878
+ -------------------------------------------------------------
8879
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2018-06-27 14:53:52.075851','2018-06-27 14:53:52.075851','chartreuse'),('Hello',25,1,'2018-06-27 14:53:52.075851','2018-06-27 14:53:52.075851','chartreuse')
8880
+  (0.3ms) rollback transaction
8881
+  (0.0ms) begin transaction
8882
+ --------------------------------------------------------------------------
8883
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods_work_for_mysql2
8884
+ --------------------------------------------------------------------------
8885
+  (0.0ms) rollback transaction
8886
+  (0.0ms) begin transaction
8887
+ --------------------------------------------------------------
8888
+ BulkInsertWorkerTest: test_save!_calls_the_before_save_handler
8889
+ --------------------------------------------------------------
8890
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2018-06-27 14:53:52.078878','2018-06-27 14:53:52.078878','chartreuse'),('Hello',25,1,'2018-06-27 14:53:52.078878','2018-06-27 14:53:52.078878','chartreuse')
8891
+  (0.3ms) rollback transaction
8892
+  (0.0ms) begin transaction
8893
+ ------------------------------------------------------------------
8894
+ BulkInsertWorkerTest: test_adapter_dependent_Mysql2Spatial_methods
8895
+ ------------------------------------------------------------------
8896
+  (0.0ms) rollback transaction
8897
+  (0.0ms) begin transaction
8898
+ --------------------------------------------------------
8899
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
8900
+ --------------------------------------------------------
8901
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2018-06-27 14:53:52.081846','2018-06-27 14:53:52.081846','chartreuse'),('Hello',25,1,'2018-06-27 14:53:52.081846','2018-06-27 14:53:52.081846','chartreuse')
8902
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
8903
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
8904
+  (0.3ms) rollback transaction
8905
+  (0.0ms) begin transaction
8906
+ --------------------------------------------------------------------------------
8907
+ BulkInsertWorkerTest: test_save!_adds_to_result_sets_when_returning_primary_keys
8908
+ --------------------------------------------------------------------------------
8909
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:53:52.084377','2018-06-27 14:53:52.084377','chartreuse'),('second',NULL,NULL,'2018-06-27 14:53:52.084377','2018-06-27 14:53:52.084377','chartreuse')
8910
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('third',NULL,NULL,'2018-06-27 14:53:52.084873','2018-06-27 14:53:52.084873','chartreuse'),('fourth',NULL,NULL,'2018-06-27 14:53:52.084873','2018-06-27 14:53:52.084873','chartreuse')
8911
+  (0.3ms) rollback transaction
8912
+  (0.0ms) begin transaction
8913
+ --------------------------------------------------------------------
8914
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
8915
+ --------------------------------------------------------------------
8916
+  (0.0ms) rollback transaction
8917
+  (0.0ms) begin transaction
8918
+ --------------------------------------------------------------------------------------------
8919
+ BulkInsertWorkerTest: test_save!_does_not_add_to_result_sets_when_not_returning_primary_keys
8920
+ --------------------------------------------------------------------------------------------
8921
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2018-06-27 14:53:52.087151','2018-06-27 14:53:52.087151','chartreuse'),('second',NULL,NULL,'2018-06-27 14:53:52.087151','2018-06-27 14:53:52.087151','chartreuse')
8922
+  (0.3ms) rollback transaction
8923
+  (0.1ms) begin transaction
8924
+ ------------------------------------------------------------
8925
+ BulkInsertWorkerTest: test_adapter_dependent_PostGIS_methods
8926
+ ------------------------------------------------------------
8927
+  (0.0ms) rollback transaction
8928
+  (0.0ms) begin transaction
8929
+ -------------------------------------------------------------------
8930
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
8931
+ -------------------------------------------------------------------
8932
+  (0.0ms) SELECT COUNT(*) FROM "testings"
8933
+  (0.0ms) SELECT COUNT(*) FROM "testings"
8934
+  (0.0ms) rollback transaction
8935
+  (0.0ms) begin transaction
8936
+ -------------------------------------------------------------------------------
8937
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
8938
+ -------------------------------------------------------------------------------
8939
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:53:52.091895','2018-06-27 14:53:52.091895','chartreuse')
8940
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
8941
+  (0.3ms) rollback transaction
8942
+  (0.0ms) begin transaction
8943
+ ----------------------------------------------------------------------------------------------
8944
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
8945
+ ----------------------------------------------------------------------------------------------
8946
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:53:52.093844','2018-06-27 14:53:52.093844','chartreuse'),('Howdy',20,0,'2018-06-27 14:53:52.093844','2018-06-27 14:53:52.093844','chartreuse')
8947
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings"
8948
+  (0.3ms) rollback transaction
8949
+  (0.0ms) begin transaction
8950
+ ----------------------------------------------------------------------------
8951
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
8952
+ ----------------------------------------------------------------------------
8953
+  (0.0ms) rollback transaction
8954
+  (0.0ms) begin transaction
8955
+ ------------------------------------------------------------------------------------------
8956
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_lowercase_adapter_name)
8957
+ ------------------------------------------------------------------------------------------
8958
+  (0.0ms) rollback transaction
8959
+  (0.0ms) begin transaction
8960
+ ----------------------------------------------------------
8961
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods
8962
+ ----------------------------------------------------------
8963
+  (0.0ms) rollback transaction
8964
+  (0.0ms) begin transaction
8965
+ ------------------------------------------------------------
8966
+ BulkInsertWorkerTest: test_adapter_dependent_default_methods
8967
+ ------------------------------------------------------------
8968
+  (0.0ms) rollback transaction
8969
+  (0.0ms) begin transaction
8970
+ ---------------------------------------------------------------------
8971
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
8972
+ ---------------------------------------------------------------------
8973
+  (0.0ms) rollback transaction
8974
+  (0.0ms) begin transaction
8975
+ ----------------------------------------------------------------
8976
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
8977
+ ----------------------------------------------------------------
8978
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,0,'2018-06-27 14:53:52.100432','2018-06-27 14:53:52.100432','chartreuse')
8979
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
8980
+  (0.3ms) rollback transaction
8981
+  (0.0ms) begin transaction
8982
+ ------------------------------------------------------
8983
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
8984
+ ------------------------------------------------------
8985
+  (0.0ms) rollback transaction
8986
+  (0.0ms) begin transaction
8987
+ ---------------------------------------------------------------------------------------
8988
+ BulkInsertTest: test_with_option_to_return_primary_keys,_worker_should_have_result_sets
8989
+ ---------------------------------------------------------------------------------------
8990
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('yo',NULL,NULL,'2018-06-27 14:53:52.103568','2018-06-27 14:53:52.103568','chartreuse')
8991
+  (0.3ms) rollback transaction
8992
+  (0.0ms) begin transaction
8993
+ -------------------------------------------------------------------
8994
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
8995
+ -------------------------------------------------------------------
8996
+  (0.0ms) rollback transaction
8997
+  (0.0ms) begin transaction
8998
+ -----------------------------------------------------------------------------
8999
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
9000
+ -----------------------------------------------------------------------------
9001
+  (0.1ms) SELECT COUNT(*) FROM "testings"
9002
+  (0.0ms) SAVEPOINT active_record_1
9003
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2018-06-27 14:53:52.106655','2018-06-27 14:53:52.106655','chartreuse'),('Hey',20,0,'2018-06-27 14:53:52.106655','2018-06-27 14:53:52.106655','chartreuse')
9004
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9005
+  (0.0ms) SELECT COUNT(*) FROM "testings"
9006
+  (0.3ms) rollback transaction
9007
+  (0.0ms) begin transaction
9008
+ ---------------------------------------------------------------
9009
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
9010
+ ---------------------------------------------------------------
9011
+  (0.0ms) SAVEPOINT active_record_1
9012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9013
+  (0.0ms) rollback transaction
9014
+  (0.0ms) begin transaction
9015
+ ------------------------------------------------------------------------------
9016
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
9017
+ ------------------------------------------------------------------------------
9018
+  (0.0ms) rollback transaction
9019
+  (0.0ms) begin transaction
9020
+ -----------------------------------------------------------------------------------------------------
9021
+ BulkInsertTest: test_worker_should_not_have_any_result_sets_without_option_for_returning_primary_keys
9022
+ -----------------------------------------------------------------------------------------------------
9023
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('hello',NULL,NULL,'2018-06-27 14:53:52.110137','2018-06-27 14:53:52.110137','chartreuse')
9024
+  (0.4ms) rollback transaction
9025
+  (0.0ms) begin transaction
9026
+ ---------------------------------------------------------------------
9027
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
9028
+ ---------------------------------------------------------------------
9029
+  (0.1ms) SELECT COUNT(*) FROM "testings"
9030
+  (0.0ms) SAVEPOINT active_record_1
9031
+  (0.3ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2018-06-27 14:53:52.112239','2018-06-27 14:53:52.112239','chartreuse')
9032
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9033
+  (0.0ms) SELECT COUNT(*) FROM "testings"
9034
+  (0.3ms) rollback transaction