bulk_insert 1.8.1 → 1.8.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e78f757829191018747a87be6b1c6aec0a8a140b248fab6e698b217d0125575
4
- data.tar.gz: b3e5cce589f88d49820f06681c72c833f727c2743650e7da0a84cb9fffe40eed
3
+ metadata.gz: d23ef2d75aeafbefae857d874eff4f18183717fbcd1a63128a83ce407a0dfba1
4
+ data.tar.gz: 9bb240020a5559bf12ff4d91be847590142302fce59927707509bfdd20820bfc
5
5
  SHA512:
6
- metadata.gz: fa009cab807affa711ec0ac7c4618137401fa56e91651103947c444f835970e61c9a2855316bc0b46c3a669eb84b1f08ae0b211cfdac8f870f910dc203455830
7
- data.tar.gz: d2f0a68185ebc1b788e5bb90509ab37240599b288d65ef26bc23b900545bc4766eb159757aa2b7ac441d99af5578da339ca1dfe9876ae11904f298443bdaa4c6
6
+ metadata.gz: cadb63453d7036005118e8009007deb1e194a0284edbc8580009314fd02348b408bdfb2f640b6bf9eba6352a9eef77b696662463f24dbddaeedaf9dfb60613dd
7
+ data.tar.gz: a93e786c4d29bf7a2678d32e657a7c7ae3e0c92a91121b52ce375eaa25eaab7cd73a884624f1315ae0e83fa93bdcb9f70c4160ea26dc07530baee2b28d8ef944
@@ -1,7 +1,7 @@
1
1
  module BulkInsert
2
2
  MAJOR = 1
3
3
  MINOR = 8
4
- TINY = 1
4
+ TINY = 2
5
5
 
6
6
  VERSION = [MAJOR, MINOR, TINY].join(".")
7
7
  end
@@ -109,7 +109,10 @@ module BulkInsert
109
109
  value = @now if value == :__timestamp_placeholder
110
110
 
111
111
  if ActiveRecord::VERSION::STRING >= "5.0.0"
112
- value = @connection.type_cast_from_column(column, value) if column
112
+ if column
113
+ type = @connection.lookup_cast_type_from_column(column)
114
+ value = type.serialize(value)
115
+ end
113
116
  values << @connection.quote(value)
114
117
  else
115
118
  values << @connection.quote(value, column)
Binary file
@@ -0,0 +1,795 @@
1
+  (0.1ms) DROP TABLE IF EXISTS "testings"
2
+  (0.1ms) SELECT sqlite_version(*)
3
+  (10.6ms) CREATE TABLE "testings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "greeting" varchar, "age" integer, "happy" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "color" varchar DEFAULT 'chartreuse')
4
+  (7.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
5
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6
+  (5.8ms) INSERT INTO "schema_migrations" (version) VALUES (20151028194232)
7
+  (5.1ms) INSERT INTO "schema_migrations" (version) VALUES
8
+ (20151008181535);
9
+
10
+ 
11
+  (7.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
12
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
13
+  (0.1ms) begin transaction
14
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2021-02-05 21:54:15.210799"], ["updated_at", "2021-02-05 21:54:15.210799"]]
15
+  (5.4ms) commit transaction
16
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
17
+  (0.1ms) begin transaction
18
+  (0.0ms) commit transaction
19
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
20
+  (0.1ms) begin transaction
21
+ -----------------------------------------------------------------------------------------------------
22
+ BulkInsertTest: test_worker_should_not_have_any_result_sets_without_option_for_returning_primary_keys
23
+ -----------------------------------------------------------------------------------------------------
24
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('hello',NULL,NULL,'2021-02-05 21:54:15.256507','2021-02-05 21:54:15.256507','chartreuse')
25
+  (0.1ms) rollback transaction
26
+  (0.0ms) begin transaction
27
+ ---------------------------------------------------------------------
28
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
29
+ ---------------------------------------------------------------------
30
+  (0.1ms) SELECT COUNT(*) FROM "testings"
31
+  (0.0ms) SAVEPOINT active_record_1
32
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2021-02-05 21:54:15.258717','2021-02-05 21:54:15.258717','chartreuse')
33
+  (0.0ms) RELEASE SAVEPOINT active_record_1
34
+  (0.1ms) SELECT COUNT(*) FROM "testings"
35
+  (0.1ms) rollback transaction
36
+  (0.0ms) begin transaction
37
+ ------------------------------------------------------------------------------
38
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
39
+ ------------------------------------------------------------------------------
40
+  (0.0ms) rollback transaction
41
+  (0.0ms) begin transaction
42
+ -----------------------------------------------------------------------------
43
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
44
+ -----------------------------------------------------------------------------
45
+  (0.1ms) SELECT COUNT(*) FROM "testings"
46
+  (0.0ms) SAVEPOINT active_record_1
47
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2021-02-05 21:54:15.261295','2021-02-05 21:54:15.261295','chartreuse'),('Hey',20,0,'2021-02-05 21:54:15.261295','2021-02-05 21:54:15.261295','chartreuse')
48
+  (0.0ms) RELEASE SAVEPOINT active_record_1
49
+  (0.1ms) SELECT COUNT(*) FROM "testings"
50
+  (0.1ms) rollback transaction
51
+  (0.0ms) begin transaction
52
+ ---------------------------------------------------------------
53
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
54
+ ---------------------------------------------------------------
55
+  (0.0ms) SAVEPOINT active_record_1
56
+  (0.0ms) RELEASE SAVEPOINT active_record_1
57
+  (0.0ms) rollback transaction
58
+  (0.0ms) begin transaction
59
+ -------------------------------------------------------------------
60
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
61
+ -------------------------------------------------------------------
62
+  (0.0ms) rollback transaction
63
+  (0.0ms) begin transaction
64
+ ---------------------------------------------------------------------------------------
65
+ BulkInsertTest: test_with_option_to_return_primary_keys,_worker_should_have_result_sets
66
+ ---------------------------------------------------------------------------------------
67
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('yo',NULL,NULL,'2021-02-05 21:54:15.264689','2021-02-05 21:54:15.264689','chartreuse')
68
+  (0.1ms) rollback transaction
69
+  (0.0ms) begin transaction
70
+ --------------------------------------------------------------------------------
71
+ BulkInsertWorkerTest: test_save!_adds_to_result_sets_when_returning_primary_keys
72
+ --------------------------------------------------------------------------------
73
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2021-02-05 21:54:15.266489','2021-02-05 21:54:15.266489','chartreuse'),('second',NULL,NULL,'2021-02-05 21:54:15.266489','2021-02-05 21:54:15.266489','chartreuse')
74
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('third',NULL,NULL,'2021-02-05 21:54:15.266862','2021-02-05 21:54:15.266862','chartreuse'),('fourth',NULL,NULL,'2021-02-05 21:54:15.266862','2021-02-05 21:54:15.266862','chartreuse')
75
+  (0.2ms) rollback transaction
76
+  (0.0ms) begin transaction
77
+ ---------------------------------------------------------
78
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
79
+ ---------------------------------------------------------
80
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2021-02-05 21:54:15.268111','2021-02-05 21:54:15.268111','chartreuse')
81
+  (0.1ms) rollback transaction
82
+  (0.0ms) begin transaction
83
+ -------------------------------------------------------------------------------
84
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
85
+ -------------------------------------------------------------------------------
86
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2021-02-05 21:54:15.269521','2021-02-05 21:54:15.269521','chartreuse')
87
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
88
+  (0.1ms) rollback transaction
89
+  (0.0ms) begin transaction
90
+ ----------------------------------------------------------------------------
91
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
92
+ ----------------------------------------------------------------------------
93
+  (0.0ms) rollback transaction
94
+  (0.0ms) begin transaction
95
+ --------------------------------------------------------------------
96
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
97
+ --------------------------------------------------------------------
98
+  (0.0ms) rollback transaction
99
+  (0.0ms) begin transaction
100
+ -------------------------------------------------------------------
101
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
102
+ -------------------------------------------------------------------
103
+  (0.1ms) SELECT COUNT(*) FROM "testings"
104
+  (0.1ms) SELECT COUNT(*) FROM "testings"
105
+  (0.0ms) rollback transaction
106
+  (0.0ms) begin transaction
107
+ -------------------------------------------------------------------
108
+ BulkInsertWorkerTest: test_after_save_callback_can_be_set_as_a_proc
109
+ -------------------------------------------------------------------
110
+  (0.0ms) rollback transaction
111
+  (0.0ms) begin transaction
112
+ -------------------------------------------------------------
113
+ BulkInsertWorkerTest: test_save!_calls_the_after_save_handler
114
+ -------------------------------------------------------------
115
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2021-02-05 21:54:15.280672','2021-02-05 21:54:15.280672','chartreuse'),('Hello',25,1,'2021-02-05 21:54:15.280672','2021-02-05 21:54:15.280672','chartreuse')
116
+  (0.1ms) rollback transaction
117
+  (0.0ms) begin transaction
118
+ --------------------------------------------------------------------------------------------
119
+ BulkInsertWorkerTest: test_save!_does_not_add_to_result_sets_when_not_returning_primary_keys
120
+ --------------------------------------------------------------------------------------------
121
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2021-02-05 21:54:15.282204','2021-02-05 21:54:15.282204','chartreuse'),('second',NULL,NULL,'2021-02-05 21:54:15.282204','2021-02-05 21:54:15.282204','chartreuse')
122
+  (0.1ms) rollback transaction
123
+  (0.0ms) begin transaction
124
+ ------------------------------------------------------------------------------------------
125
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_stylecase_adapter_name)
126
+ ------------------------------------------------------------------------------------------
127
+  (0.0ms) rollback transaction
128
+  (0.0ms) begin transaction
129
+ --------------------------------------------------------------------------
130
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods_work_for_mysql2
131
+ --------------------------------------------------------------------------
132
+  (0.0ms) rollback transaction
133
+  (0.0ms) begin transaction
134
+ --------------------------------------------------------------------
135
+ BulkInsertWorkerTest: test_before_save_callback_can_be_set_as_a_proc
136
+ --------------------------------------------------------------------
137
+  (0.0ms) rollback transaction
138
+  (0.0ms) begin transaction
139
+ -------------------------------------------
140
+ BulkInsertWorkerTest: test_default_set_size
141
+ -------------------------------------------
142
+  (0.0ms) rollback transaction
143
+  (0.0ms) begin transaction
144
+ ---------------------------------------------------------------
145
+ BulkInsertWorkerTest: test_before_save_stores_a_block_as_a_proc
146
+ ---------------------------------------------------------------
147
+  (0.0ms) rollback transaction
148
+  (0.1ms) begin transaction
149
+ ----------------------------------------------------------------------------------------
150
+ BulkInsertWorkerTest: test_adapter_dependent_postgresql_methods_(with_update_duplicates)
151
+ ----------------------------------------------------------------------------------------
152
+  (0.1ms) rollback transaction
153
+  (0.0ms) begin transaction
154
+ ----------------------------------------------------------------
155
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
156
+ ----------------------------------------------------------------
157
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,0,'2021-02-05 21:54:15.292189','2021-02-05 21:54:15.292189',NULL)
158
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
159
+  (0.1ms) rollback transaction
160
+  (0.0ms) begin transaction
161
+ --------------------------------------------------------------
162
+ BulkInsertWorkerTest: test_save!_calls_the_before_save_handler
163
+ --------------------------------------------------------------
164
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2021-02-05 21:54:15.293866','2021-02-05 21:54:15.293866','chartreuse'),('Hello',25,1,'2021-02-05 21:54:15.293866','2021-02-05 21:54:15.293866','chartreuse')
165
+  (0.1ms) rollback transaction
166
+  (0.0ms) begin transaction
167
+ ---------------------------------------------------------------
168
+ BulkInsertWorkerTest: test_adapter_dependent_postgresql_methods
169
+ ---------------------------------------------------------------
170
+  (0.0ms) rollback transaction
171
+  (0.0ms) begin transaction
172
+ -------------------------------------------------------------------------------------------------
173
+ BulkInsertWorkerTest: test_adapter_dependent_postgresql_methods_(no_ignore,_no_update_duplicates)
174
+ -------------------------------------------------------------------------------------------------
175
+  (0.0ms) rollback transaction
176
+  (0.0ms) begin transaction
177
+ ------------------------------------------------------------------------------
178
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
179
+ ------------------------------------------------------------------------------
180
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,0,'2021-02-05 21:54:15.298008','2021-02-05 21:54:15.298008','chartreuse')
181
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
182
+  (0.1ms) rollback transaction
183
+  (0.0ms) begin transaction
184
+ -------------------------------------------------------------
185
+ BulkInsertWorkerTest: test_before_save_can_manipulate_the_set
186
+ -------------------------------------------------------------
187
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',25,1,'2021-02-05 21:54:15.299613','2021-02-05 21:54:15.299613','chartreuse')
188
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
189
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
190
+  (0.1ms) rollback transaction
191
+  (0.1ms) begin transaction
192
+ -------------------------------------------------------------------
193
+ BulkInsertWorkerTest: test_initialized_with_empty_result_sets_array
194
+ -------------------------------------------------------------------
195
+  (0.0ms) rollback transaction
196
+  (0.0ms) begin transaction
197
+ ------------------------------------------------------------
198
+ BulkInsertWorkerTest: test_adapter_dependent_default_methods
199
+ ------------------------------------------------------------
200
+  (0.0ms) rollback transaction
201
+  (0.0ms) begin transaction
202
+ ----------------------------------------------------------------
203
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
204
+ ----------------------------------------------------------------
205
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,0,'2021-02-05 21:54:15.304853','2021-02-05 21:54:15.304853','chartreuse')
206
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
207
+  (0.2ms) rollback transaction
208
+  (0.0ms) begin transaction
209
+ ----------------------------------------------------------------------------------
210
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
211
+ ----------------------------------------------------------------------------------
212
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2021-02-05 21:54:15.307035','2021-02-05 21:54:15.307035','chartreuse')
213
+  (0.1ms) SELECT COUNT(*) FROM "testings"
214
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
215
+  (0.1ms) rollback transaction
216
+  (0.0ms) begin transaction
217
+ --------------------------------------------------------------
218
+ BulkInsertWorkerTest: test_mysql_adapter_can_update_duplicates
219
+ --------------------------------------------------------------
220
+  (0.0ms) rollback transaction
221
+  (0.0ms) begin transaction
222
+ ------------------------------------------------------------------
223
+ BulkInsertWorkerTest: test_adapter_dependent_Mysql2Spatial_methods
224
+ ------------------------------------------------------------------
225
+  (0.1ms) rollback transaction
226
+  (0.0ms) begin transaction
227
+ ------------------------------------------------------------
228
+ BulkInsertWorkerTest: test_adapter_dependent_PostGIS_methods
229
+ ------------------------------------------------------------
230
+  (0.1ms) rollback transaction
231
+  (0.0ms) begin transaction
232
+ ----------------------------------------------------------
233
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods
234
+ ----------------------------------------------------------
235
+  (0.0ms) rollback transaction
236
+  (0.0ms) begin transaction
237
+ ---------------------------------------------------------------------
238
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
239
+ ---------------------------------------------------------------------
240
+  (0.0ms) rollback transaction
241
+  (0.0ms) begin transaction
242
+ --------------------------------------------------------
243
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
244
+ --------------------------------------------------------
245
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2021-02-05 21:54:15.326836','2021-02-05 21:54:15.326836','chartreuse'),('Hello',25,1,'2021-02-05 21:54:15.326836','2021-02-05 21:54:15.326836','chartreuse')
246
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
247
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
248
+  (0.1ms) rollback transaction
249
+  (0.0ms) begin transaction
250
+ --------------------------------------------------------------
251
+ BulkInsertWorkerTest: test_after_save_stores_a_block_as_a_proc
252
+ --------------------------------------------------------------
253
+  (0.0ms) rollback transaction
254
+  (0.0ms) begin transaction
255
+ ------------------------------------------------------------------------------------------
256
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_lowercase_adapter_name)
257
+ ------------------------------------------------------------------------------------------
258
+  (0.0ms) rollback transaction
259
+  (0.0ms) begin transaction
260
+ ----------------------------------------------------------------------------------------------
261
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
262
+ ----------------------------------------------------------------------------------------------
263
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2021-02-05 21:54:15.330845','2021-02-05 21:54:15.330845','chartreuse'),('Howdy',20,0,'2021-02-05 21:54:15.330845','2021-02-05 21:54:15.330845','chartreuse')
264
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings"
265
+  (0.1ms) rollback transaction
266
+  (0.0ms) begin transaction
267
+ ------------------------------------------------------
268
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
269
+ ------------------------------------------------------
270
+  (0.0ms) rollback transaction
271
+  (0.0ms) begin transaction
272
+ --------------------------------------------------------------------------------
273
+ BulkInsertWorkerTest: test_save!_doesn't_blow_up_if_before_save_emptying_the_set
274
+ --------------------------------------------------------------------------------
275
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
276
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
277
+  (0.0ms) rollback transaction
278
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
279
+  (0.1ms) begin transaction
280
+ -------------------------------------------------------------------
281
+ BulkInsertWorkerTest: test_after_save_callback_can_be_set_as_a_proc
282
+ -------------------------------------------------------------------
283
+  (0.0ms) rollback transaction
284
+  (0.0ms) begin transaction
285
+ --------------------------------------------------------------------
286
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
287
+ --------------------------------------------------------------------
288
+  (0.0ms) rollback transaction
289
+  (0.0ms) begin transaction
290
+ ----------------------------------------------------------------
291
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
292
+ ----------------------------------------------------------------
293
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,0,'2021-02-05 22:17:23.546374','2021-02-05 22:17:23.546374',NULL)
294
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
295
+  (0.2ms) rollback transaction
296
+  (0.0ms) begin transaction
297
+ ----------------------------------------------------------------------------
298
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
299
+ ----------------------------------------------------------------------------
300
+  (0.0ms) rollback transaction
301
+  (0.0ms) begin transaction
302
+ ------------------------------------------------------------------------------
303
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
304
+ ------------------------------------------------------------------------------
305
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,0,'2021-02-05 22:17:23.556637','2021-02-05 22:17:23.556637','chartreuse')
306
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
307
+  (0.1ms) rollback transaction
308
+  (0.0ms) begin transaction
309
+ -------------------------------------------------------------
310
+ BulkInsertWorkerTest: test_before_save_can_manipulate_the_set
311
+ -------------------------------------------------------------
312
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',25,1,'2021-02-05 22:17:23.558471','2021-02-05 22:17:23.558471','chartreuse')
313
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
314
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
315
+  (0.1ms) rollback transaction
316
+  (0.0ms) begin transaction
317
+ --------------------------------------------------------------
318
+ BulkInsertWorkerTest: test_save!_calls_the_before_save_handler
319
+ --------------------------------------------------------------
320
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2021-02-05 22:17:23.561577','2021-02-05 22:17:23.561577','chartreuse'),('Hello',25,1,'2021-02-05 22:17:23.561577','2021-02-05 22:17:23.561577','chartreuse')
321
+  (0.1ms) rollback transaction
322
+  (0.1ms) begin transaction
323
+ -------------------------------------------
324
+ BulkInsertWorkerTest: test_default_set_size
325
+ -------------------------------------------
326
+  (0.0ms) rollback transaction
327
+  (0.0ms) begin transaction
328
+ ----------------------------------------------------------------------------------------
329
+ BulkInsertWorkerTest: test_adapter_dependent_postgresql_methods_(with_update_duplicates)
330
+ ----------------------------------------------------------------------------------------
331
+  (0.0ms) rollback transaction
332
+  (0.0ms) begin transaction
333
+ -------------------------------------------------------------------
334
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
335
+ -------------------------------------------------------------------
336
+  (0.1ms) SELECT COUNT(*) FROM "testings"
337
+  (0.1ms) SELECT COUNT(*) FROM "testings"
338
+  (0.1ms) rollback transaction
339
+  (0.1ms) begin transaction
340
+ ----------------------------------------------------------
341
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods
342
+ ----------------------------------------------------------
343
+  (0.0ms) rollback transaction
344
+  (0.0ms) begin transaction
345
+ --------------------------------------------------------------------------------
346
+ BulkInsertWorkerTest: test_save!_doesn't_blow_up_if_before_save_emptying_the_set
347
+ --------------------------------------------------------------------------------
348
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
349
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
350
+  (0.0ms) rollback transaction
351
+  (0.0ms) begin transaction
352
+ --------------------------------------------------------------
353
+ BulkInsertWorkerTest: test_after_save_stores_a_block_as_a_proc
354
+ --------------------------------------------------------------
355
+  (0.0ms) rollback transaction
356
+  (0.0ms) begin transaction
357
+ --------------------------------------------------------------------
358
+ BulkInsertWorkerTest: test_before_save_callback_can_be_set_as_a_proc
359
+ --------------------------------------------------------------------
360
+  (0.0ms) rollback transaction
361
+  (0.0ms) begin transaction
362
+ --------------------------------------------------------
363
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
364
+ --------------------------------------------------------
365
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2021-02-05 22:17:23.573031','2021-02-05 22:17:23.573031','chartreuse'),('Hello',25,1,'2021-02-05 22:17:23.573031','2021-02-05 22:17:23.573031','chartreuse')
366
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
367
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
368
+  (0.1ms) rollback transaction
369
+  (0.0ms) begin transaction
370
+ ------------------------------------------------------------
371
+ BulkInsertWorkerTest: test_adapter_dependent_PostGIS_methods
372
+ ------------------------------------------------------------
373
+  (0.0ms) rollback transaction
374
+  (0.0ms) begin transaction
375
+ ---------------------------------------------------------
376
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
377
+ ---------------------------------------------------------
378
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2021-02-05 22:17:23.576742','2021-02-05 22:17:23.576742','chartreuse')
379
+  (0.1ms) rollback transaction
380
+  (0.0ms) begin transaction
381
+ ---------------------------------------------------------------
382
+ BulkInsertWorkerTest: test_adapter_dependent_postgresql_methods
383
+ ---------------------------------------------------------------
384
+  (0.0ms) rollback transaction
385
+  (0.0ms) begin transaction
386
+ --------------------------------------------------------------------------------
387
+ BulkInsertWorkerTest: test_save!_adds_to_result_sets_when_returning_primary_keys
388
+ --------------------------------------------------------------------------------
389
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2021-02-05 22:17:23.580127','2021-02-05 22:17:23.580127','chartreuse'),('second',NULL,NULL,'2021-02-05 22:17:23.580127','2021-02-05 22:17:23.580127','chartreuse')
390
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('third',NULL,NULL,'2021-02-05 22:17:23.580651','2021-02-05 22:17:23.580651','chartreuse'),('fourth',NULL,NULL,'2021-02-05 22:17:23.580651','2021-02-05 22:17:23.580651','chartreuse')
391
+  (0.1ms) rollback transaction
392
+  (0.0ms) begin transaction
393
+ -------------------------------------------------------------
394
+ BulkInsertWorkerTest: test_save!_calls_the_after_save_handler
395
+ -------------------------------------------------------------
396
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2021-02-05 22:17:23.581900','2021-02-05 22:17:23.581900','chartreuse'),('Hello',25,1,'2021-02-05 22:17:23.581900','2021-02-05 22:17:23.581900','chartreuse')
397
+  (0.1ms) rollback transaction
398
+  (0.0ms) begin transaction
399
+ -------------------------------------------------------------------------------
400
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
401
+ -------------------------------------------------------------------------------
402
+  (0.4ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2021-02-05 22:17:23.583511','2021-02-05 22:17:23.583511','chartreuse')
403
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
404
+  (0.2ms) rollback transaction
405
+  (0.1ms) begin transaction
406
+ -------------------------------------------------------------------
407
+ BulkInsertWorkerTest: test_initialized_with_empty_result_sets_array
408
+ -------------------------------------------------------------------
409
+  (0.0ms) rollback transaction
410
+  (0.0ms) begin transaction
411
+ ---------------------------------------------------------------------
412
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
413
+ ---------------------------------------------------------------------
414
+  (0.0ms) rollback transaction
415
+  (0.0ms) begin transaction
416
+ ---------------------------------------------------------------
417
+ BulkInsertWorkerTest: test_before_save_stores_a_block_as_a_proc
418
+ ---------------------------------------------------------------
419
+  (0.0ms) rollback transaction
420
+  (0.0ms) begin transaction
421
+ ----------------------------------------------------------------
422
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
423
+ ----------------------------------------------------------------
424
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,0,'2021-02-05 22:17:23.590390','2021-02-05 22:17:23.590390','chartreuse')
425
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
426
+  (0.1ms) rollback transaction
427
+  (0.0ms) begin transaction
428
+ --------------------------------------------------------------------------
429
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods_work_for_mysql2
430
+ --------------------------------------------------------------------------
431
+  (0.0ms) rollback transaction
432
+  (0.0ms) begin transaction
433
+ ------------------------------------------------------------------------------------------
434
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_stylecase_adapter_name)
435
+ ------------------------------------------------------------------------------------------
436
+  (0.0ms) rollback transaction
437
+  (0.0ms) begin transaction
438
+ ----------------------------------------------------------------------------------------------
439
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
440
+ ----------------------------------------------------------------------------------------------
441
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2021-02-05 22:17:23.594974','2021-02-05 22:17:23.594974','chartreuse'),('Howdy',20,0,'2021-02-05 22:17:23.594974','2021-02-05 22:17:23.594974','chartreuse')
442
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings"
443
+  (0.1ms) rollback transaction
444
+  (0.0ms) begin transaction
445
+ ----------------------------------------------------------------------------------
446
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
447
+ ----------------------------------------------------------------------------------
448
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2021-02-05 22:17:23.597043','2021-02-05 22:17:23.597043','chartreuse')
449
+  (0.1ms) SELECT COUNT(*) FROM "testings"
450
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
451
+  (0.1ms) rollback transaction
452
+  (0.0ms) begin transaction
453
+ ------------------------------------------------------------------------------------------
454
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_lowercase_adapter_name)
455
+ ------------------------------------------------------------------------------------------
456
+  (0.0ms) rollback transaction
457
+  (0.0ms) begin transaction
458
+ --------------------------------------------------------------------------------------------
459
+ BulkInsertWorkerTest: test_save!_does_not_add_to_result_sets_when_not_returning_primary_keys
460
+ --------------------------------------------------------------------------------------------
461
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2021-02-05 22:17:23.600389','2021-02-05 22:17:23.600389','chartreuse'),('second',NULL,NULL,'2021-02-05 22:17:23.600389','2021-02-05 22:17:23.600389','chartreuse')
462
+  (0.1ms) rollback transaction
463
+  (0.0ms) begin transaction
464
+ ------------------------------------------------------------
465
+ BulkInsertWorkerTest: test_adapter_dependent_default_methods
466
+ ------------------------------------------------------------
467
+  (0.0ms) rollback transaction
468
+  (0.0ms) begin transaction
469
+ ------------------------------------------------------------------
470
+ BulkInsertWorkerTest: test_adapter_dependent_Mysql2Spatial_methods
471
+ ------------------------------------------------------------------
472
+  (0.1ms) rollback transaction
473
+  (0.0ms) begin transaction
474
+ -------------------------------------------------------------------------------------------------
475
+ BulkInsertWorkerTest: test_adapter_dependent_postgresql_methods_(no_ignore,_no_update_duplicates)
476
+ -------------------------------------------------------------------------------------------------
477
+  (0.0ms) rollback transaction
478
+  (0.0ms) begin transaction
479
+ ------------------------------------------------------
480
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
481
+ ------------------------------------------------------
482
+  (0.1ms) rollback transaction
483
+  (0.0ms) begin transaction
484
+ --------------------------------------------------------------
485
+ BulkInsertWorkerTest: test_mysql_adapter_can_update_duplicates
486
+ --------------------------------------------------------------
487
+  (0.1ms) rollback transaction
488
+  (0.0ms) begin transaction
489
+ -----------------------------------------------------------------------------
490
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
491
+ -----------------------------------------------------------------------------
492
+  (0.1ms) SELECT COUNT(*) FROM "testings"
493
+  (0.1ms) SAVEPOINT active_record_1
494
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2021-02-05 22:17:23.624020','2021-02-05 22:17:23.624020','chartreuse'),('Hey',20,0,'2021-02-05 22:17:23.624020','2021-02-05 22:17:23.624020','chartreuse')
495
+  (0.1ms) RELEASE SAVEPOINT active_record_1
496
+  (0.1ms) SELECT COUNT(*) FROM "testings"
497
+  (0.1ms) rollback transaction
498
+  (0.0ms) begin transaction
499
+ ---------------------------------------------------------------------
500
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
501
+ ---------------------------------------------------------------------
502
+  (0.1ms) SELECT COUNT(*) FROM "testings"
503
+  (0.1ms) SAVEPOINT active_record_1
504
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2021-02-05 22:17:23.627449','2021-02-05 22:17:23.627449','chartreuse')
505
+  (0.1ms) RELEASE SAVEPOINT active_record_1
506
+  (0.1ms) SELECT COUNT(*) FROM "testings"
507
+  (0.1ms) rollback transaction
508
+  (0.0ms) begin transaction
509
+ -----------------------------------------------------------------------------------------------------
510
+ BulkInsertTest: test_worker_should_not_have_any_result_sets_without_option_for_returning_primary_keys
511
+ -----------------------------------------------------------------------------------------------------
512
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('hello',NULL,NULL,'2021-02-05 22:17:23.630034','2021-02-05 22:17:23.630034','chartreuse')
513
+  (0.1ms) rollback transaction
514
+  (0.1ms) begin transaction
515
+ -------------------------------------------------------------------
516
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
517
+ -------------------------------------------------------------------
518
+  (0.0ms) rollback transaction
519
+  (0.0ms) begin transaction
520
+ ------------------------------------------------------------------------------
521
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
522
+ ------------------------------------------------------------------------------
523
+  (0.0ms) rollback transaction
524
+  (0.0ms) begin transaction
525
+ ---------------------------------------------------------------------------------------
526
+ BulkInsertTest: test_with_option_to_return_primary_keys,_worker_should_have_result_sets
527
+ ---------------------------------------------------------------------------------------
528
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('yo',NULL,NULL,'2021-02-05 22:17:23.633753','2021-02-05 22:17:23.633753','chartreuse')
529
+  (0.1ms) rollback transaction
530
+  (0.0ms) begin transaction
531
+ ---------------------------------------------------------------
532
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
533
+ ---------------------------------------------------------------
534
+  (0.1ms) SAVEPOINT active_record_1
535
+  (0.1ms) RELEASE SAVEPOINT active_record_1
536
+  (0.0ms) rollback transaction
537
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
538
+  (0.1ms) begin transaction
539
+ --------------------------------------------------------
540
+ BulkInsertWorkerTest: test_save!_inserts_pending_records
541
+ --------------------------------------------------------
542
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2021-02-05 22:25:34.315409','2021-02-05 22:25:34.315409','chartreuse'),('Hello',25,1,'2021-02-05 22:25:34.315409','2021-02-05 22:25:34.315409','chartreuse')
543
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
544
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
545
+  (0.1ms) rollback transaction
546
+  (0.0ms) begin transaction
547
+ ------------------------------------------------------------------------------------------
548
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_stylecase_adapter_name)
549
+ ------------------------------------------------------------------------------------------
550
+  (0.0ms) rollback transaction
551
+  (0.0ms) begin transaction
552
+ -------------------------------------------------------------------------------
553
+ BulkInsertWorkerTest: test_add_should_default_timestamp_columns_to_current_time
554
+ -------------------------------------------------------------------------------
555
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2021-02-05 22:25:34.325724','2021-02-05 22:25:34.325724','chartreuse')
556
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
557
+  (0.1ms) rollback transaction
558
+  (0.0ms) begin transaction
559
+ -------------------------------------------------------------
560
+ BulkInsertWorkerTest: test_before_save_can_manipulate_the_set
561
+ -------------------------------------------------------------
562
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',25,1,'2021-02-05 22:25:34.327822','2021-02-05 22:25:34.327822','chartreuse')
563
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
564
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
565
+  (0.1ms) rollback transaction
566
+  (0.0ms) begin transaction
567
+ -------------------------------------------------------------------
568
+ BulkInsertWorkerTest: test_save!_when_not_pending_should_do_nothing
569
+ -------------------------------------------------------------------
570
+  (0.1ms) SELECT COUNT(*) FROM "testings"
571
+  (0.1ms) SELECT COUNT(*) FROM "testings"
572
+  (0.1ms) rollback transaction
573
+  (0.1ms) begin transaction
574
+ -------------------------------------------------------------
575
+ BulkInsertWorkerTest: test_save!_calls_the_after_save_handler
576
+ -------------------------------------------------------------
577
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2021-02-05 22:25:34.332508','2021-02-05 22:25:34.332508','chartreuse'),('Hello',25,1,'2021-02-05 22:25:34.332508','2021-02-05 22:25:34.332508','chartreuse')
578
+  (0.1ms) rollback transaction
579
+  (0.0ms) begin transaction
580
+ -------------------------------------------------------------------
581
+ BulkInsertWorkerTest: test_initialized_with_empty_result_sets_array
582
+ -------------------------------------------------------------------
583
+  (0.0ms) rollback transaction
584
+  (0.0ms) begin transaction
585
+ --------------------------------------------------------------
586
+ BulkInsertWorkerTest: test_save!_calls_the_before_save_handler
587
+ --------------------------------------------------------------
588
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',15,0,'2021-02-05 22:25:34.335175','2021-02-05 22:25:34.335175','chartreuse'),('Hello',25,1,'2021-02-05 22:25:34.335175','2021-02-05 22:25:34.335175','chartreuse')
589
+  (0.1ms) rollback transaction
590
+  (0.0ms) begin transaction
591
+ --------------------------------------------------------------------------------
592
+ BulkInsertWorkerTest: test_save!_doesn't_blow_up_if_before_save_emptying_the_set
593
+ --------------------------------------------------------------------------------
594
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Yo"], ["LIMIT", 1]]
595
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings" WHERE "testings"."greeting" = ? LIMIT ? [["greeting", "Hello"], ["LIMIT", 1]]
596
+  (0.0ms) rollback transaction
597
+  (0.0ms) begin transaction
598
+ ----------------------------------------------------------
599
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods
600
+ ----------------------------------------------------------
601
+  (0.0ms) rollback transaction
602
+  (0.0ms) begin transaction
603
+ ----------------------------------------------------------------------------------------
604
+ BulkInsertWorkerTest: test_adapter_dependent_postgresql_methods_(with_update_duplicates)
605
+ ----------------------------------------------------------------------------------------
606
+  (0.0ms) rollback transaction
607
+  (0.0ms) begin transaction
608
+ ---------------------------------------------------------------
609
+ BulkInsertWorkerTest: test_before_save_stores_a_block_as_a_proc
610
+ ---------------------------------------------------------------
611
+  (0.0ms) rollback transaction
612
+  (0.0ms) begin transaction
613
+ ------------------------------------------------------------------------------
614
+ BulkInsertWorkerTest: test_add_should_use_database_default_values_when_present
615
+ ------------------------------------------------------------------------------
616
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,0,'2021-02-05 22:25:34.342493','2021-02-05 22:25:34.342493','chartreuse')
617
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
618
+  (0.1ms) rollback transaction
619
+  (0.0ms) begin transaction
620
+ ------------------------------------------------------
621
+ BulkInsertWorkerTest: test_empty_insert_is_not_pending
622
+ ------------------------------------------------------
623
+  (0.0ms) rollback transaction
624
+  (0.0ms) begin transaction
625
+ -------------------------------------------------------------------
626
+ BulkInsertWorkerTest: test_after_save_callback_can_be_set_as_a_proc
627
+ -------------------------------------------------------------------
628
+  (0.0ms) rollback transaction
629
+  (0.0ms) begin transaction
630
+ ----------------------------------------------------------------
631
+ BulkInsertWorkerTest: test_explicit_nil_should_override_defaults
632
+ ----------------------------------------------------------------
633
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',20,0,'2021-02-05 22:25:34.346108','2021-02-05 22:25:34.346108',NULL)
634
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
635
+  (0.1ms) rollback transaction
636
+  (0.0ms) begin transaction
637
+ --------------------------------------------------------------
638
+ BulkInsertWorkerTest: test_after_save_stores_a_block_as_a_proc
639
+ --------------------------------------------------------------
640
+  (0.0ms) rollback transaction
641
+  (0.0ms) begin transaction
642
+ -------------------------------------------
643
+ BulkInsertWorkerTest: test_default_set_size
644
+ -------------------------------------------
645
+  (0.0ms) rollback transaction
646
+  (0.0ms) begin transaction
647
+ ----------------------------------------------------------------------------------
648
+ BulkInsertWorkerTest: test_add_should_save_automatically_when_overflowing_set_size
649
+ ----------------------------------------------------------------------------------
650
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2021-02-05 22:25:34.349885','2021-02-05 22:25:34.349885','chartreuse')
651
+  (0.1ms) SELECT COUNT(*) FROM "testings"
652
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
653
+  (0.1ms) rollback transaction
654
+  (0.0ms) begin transaction
655
+ ----------------------------------------------------------------------------------------------
656
+ BulkInsertWorkerTest: test_default_timestamp_columns_should_be_equivalent_for_the_entire_batch
657
+ ----------------------------------------------------------------------------------------------
658
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2021-02-05 22:25:34.351988','2021-02-05 22:25:34.351988','chartreuse'),('Howdy',20,0,'2021-02-05 22:25:34.351988','2021-02-05 22:25:34.351988','chartreuse')
659
+ Testing Load (0.1ms) SELECT "testings".* FROM "testings"
660
+  (0.1ms) rollback transaction
661
+  (0.0ms) begin transaction
662
+ --------------------------------------------------------------------
663
+ BulkInsertWorkerTest: test_adding_row_to_insert_makes_insert_pending
664
+ --------------------------------------------------------------------
665
+  (0.0ms) rollback transaction
666
+  (0.0ms) begin transaction
667
+ ---------------------------------------------------------------
668
+ BulkInsertWorkerTest: test_adapter_dependent_postgresql_methods
669
+ ---------------------------------------------------------------
670
+  (0.0ms) rollback transaction
671
+  (0.0ms) begin transaction
672
+ -------------------------------------------------------------------------------------------------
673
+ BulkInsertWorkerTest: test_adapter_dependent_postgresql_methods_(no_ignore,_no_update_duplicates)
674
+ -------------------------------------------------------------------------------------------------
675
+  (0.0ms) rollback transaction
676
+  (0.0ms) begin transaction
677
+ --------------------------------------------------------------------
678
+ BulkInsertWorkerTest: test_before_save_callback_can_be_set_as_a_proc
679
+ --------------------------------------------------------------------
680
+  (0.0ms) rollback transaction
681
+  (0.0ms) begin transaction
682
+ ----------------------------------------------------------------
683
+ BulkInsertWorkerTest: test_add_should_allow_values_given_as_Hash
684
+ ----------------------------------------------------------------
685
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Yo',20,0,'2021-02-05 22:25:34.358433','2021-02-05 22:25:34.358433','chartreuse')
686
+ Testing Load (0.0ms) SELECT "testings".* FROM "testings" ORDER BY "testings"."id" ASC LIMIT ? [["LIMIT", 1]]
687
+  (0.1ms) rollback transaction
688
+  (0.0ms) begin transaction
689
+ ------------------------------------------------------------
690
+ BulkInsertWorkerTest: test_adapter_dependent_PostGIS_methods
691
+ ------------------------------------------------------------
692
+  (0.0ms) rollback transaction
693
+  (0.1ms) begin transaction
694
+ --------------------------------------------------------------------------
695
+ BulkInsertWorkerTest: test_adapter_dependent_mysql_methods_work_for_mysql2
696
+ --------------------------------------------------------------------------
697
+  (0.1ms) rollback transaction
698
+  (0.0ms) begin transaction
699
+ ---------------------------------------------------------------------
700
+ BulkInsertWorkerTest: test_add_all_should_append_all_items_to_the_set
701
+ ---------------------------------------------------------------------
702
+  (0.1ms) rollback transaction
703
+  (0.0ms) begin transaction
704
+ ---------------------------------------------------------
705
+ BulkInsertWorkerTest: test_save!_makes_insert_not_pending
706
+ ---------------------------------------------------------
707
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2021-02-05 22:25:34.365344','2021-02-05 22:25:34.365344','chartreuse')
708
+  (0.1ms) rollback transaction
709
+  (0.0ms) begin transaction
710
+ ------------------------------------------------------------
711
+ BulkInsertWorkerTest: test_adapter_dependent_default_methods
712
+ ------------------------------------------------------------
713
+  (0.0ms) rollback transaction
714
+  (0.0ms) begin transaction
715
+ --------------------------------------------------------------------------------------------
716
+ BulkInsertWorkerTest: test_save!_does_not_add_to_result_sets_when_not_returning_primary_keys
717
+ --------------------------------------------------------------------------------------------
718
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2021-02-05 22:25:34.367690','2021-02-05 22:25:34.367690','chartreuse'),('second',NULL,NULL,'2021-02-05 22:25:34.367690','2021-02-05 22:25:34.367690','chartreuse')
719
+  (0.1ms) rollback transaction
720
+  (0.0ms) begin transaction
721
+ --------------------------------------------------------------------------------
722
+ BulkInsertWorkerTest: test_save!_adds_to_result_sets_when_returning_primary_keys
723
+ --------------------------------------------------------------------------------
724
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('first',NULL,NULL,'2021-02-05 22:25:34.369353','2021-02-05 22:25:34.369353','chartreuse'),('second',NULL,NULL,'2021-02-05 22:25:34.369353','2021-02-05 22:25:34.369353','chartreuse')
725
+  (0.1ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('third',NULL,NULL,'2021-02-05 22:25:34.369790','2021-02-05 22:25:34.369790','chartreuse'),('fourth',NULL,NULL,'2021-02-05 22:25:34.369790','2021-02-05 22:25:34.369790','chartreuse')
726
+  (0.1ms) rollback transaction
727
+  (0.0ms) begin transaction
728
+ ------------------------------------------------------------------
729
+ BulkInsertWorkerTest: test_adapter_dependent_Mysql2Spatial_methods
730
+ ------------------------------------------------------------------
731
+  (0.0ms) rollback transaction
732
+  (0.0ms) begin transaction
733
+ --------------------------------------------------------------
734
+ BulkInsertWorkerTest: test_mysql_adapter_can_update_duplicates
735
+ --------------------------------------------------------------
736
+  (0.0ms) rollback transaction
737
+  (7.3ms) begin transaction
738
+ ----------------------------------------------------------------------------
739
+ BulkInsertWorkerTest: test_pending_count_should_describe_size_of_pending_set
740
+ ----------------------------------------------------------------------------
741
+  (0.1ms) rollback transaction
742
+  (0.0ms) begin transaction
743
+ ------------------------------------------------------------------------------------------
744
+ BulkInsertWorkerTest: test_adapter_dependent_sqlite3_methods_(with_lowercase_adapter_name)
745
+ ------------------------------------------------------------------------------------------
746
+  (0.0ms) rollback transaction
747
+  (0.0ms) begin transaction
748
+ -----------------------------------------------------------------------------------------------------
749
+ BulkInsertTest: test_worker_should_not_have_any_result_sets_without_option_for_returning_primary_keys
750
+ -----------------------------------------------------------------------------------------------------
751
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('hello',NULL,NULL,'2021-02-05 22:25:34.385626','2021-02-05 22:25:34.385626','chartreuse')
752
+  (0.1ms) rollback transaction
753
+  (0.0ms) begin transaction
754
+ ---------------------------------------------------------------------------------------
755
+ BulkInsertTest: test_with_option_to_return_primary_keys,_worker_should_have_result_sets
756
+ ---------------------------------------------------------------------------------------
757
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('yo',NULL,NULL,'2021-02-05 22:25:34.386955','2021-02-05 22:25:34.386955','chartreuse')
758
+  (0.1ms) rollback transaction
759
+  (0.0ms) begin transaction
760
+ ------------------------------------------------------------------------------
761
+ BulkInsertTest: test_default_bulk_columns_should_return_all_columns_without_id
762
+ ------------------------------------------------------------------------------
763
+  (0.0ms) rollback transaction
764
+  (0.0ms) begin transaction
765
+ ---------------------------------------------------------------------
766
+ BulkInsertTest: test_bulk_insert_with_block_should_save_automatically
767
+ ---------------------------------------------------------------------
768
+  (0.1ms) SELECT COUNT(*) FROM "testings"
769
+  (0.0ms) SAVEPOINT active_record_1
770
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',NULL,NULL,'2021-02-05 22:25:34.389254','2021-02-05 22:25:34.389254','chartreuse')
771
+  (0.0ms) RELEASE SAVEPOINT active_record_1
772
+  (0.1ms) SELECT COUNT(*) FROM "testings"
773
+  (0.1ms) rollback transaction
774
+  (0.0ms) begin transaction
775
+ ---------------------------------------------------------------
776
+ BulkInsertTest: test_bulk_insert_with_block_should_yield_worker
777
+ ---------------------------------------------------------------
778
+  (0.1ms) SAVEPOINT active_record_1
779
+  (0.1ms) RELEASE SAVEPOINT active_record_1
780
+  (0.0ms) rollback transaction
781
+  (0.0ms) begin transaction
782
+ -------------------------------------------------------------------
783
+ BulkInsertTest: test_bulk_insert_without_block_should_return_worker
784
+ -------------------------------------------------------------------
785
+  (0.0ms) rollback transaction
786
+  (0.0ms) begin transaction
787
+ -----------------------------------------------------------------------------
788
+ BulkInsertTest: test_bulk_insert_with_array_should_save_the_array_immediately
789
+ -----------------------------------------------------------------------------
790
+  (0.1ms) SELECT COUNT(*) FROM "testings"
791
+  (0.0ms) SAVEPOINT active_record_1
792
+  (0.2ms) INSERT INTO "testings" ("greeting","age","happy","created_at","updated_at","color") VALUES ('Hello',15,1,'2021-02-05 22:25:34.394623','2021-02-05 22:25:34.394623','chartreuse'),('Hey',20,0,'2021-02-05 22:25:34.394623','2021-02-05 22:25:34.394623','chartreuse')
793
+  (0.0ms) RELEASE SAVEPOINT active_record_1
794
+  (0.1ms) SELECT COUNT(*) FROM "testings"
795
+  (0.1ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bulk_insert
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.1
4
+ version: 1.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamis Buck
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-05-25 00:00:00.000000000 Z
12
+ date: 2021-02-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -109,6 +109,8 @@ files:
109
109
  - test/dummy/db/migrate/20151008181535_create_testings.rb
110
110
  - test/dummy/db/migrate/20151028194232_add_default_value.rb
111
111
  - test/dummy/db/schema.rb
112
+ - test/dummy/db/test.sqlite3
113
+ - test/dummy/log/test.log
112
114
  - test/dummy/public/404.html
113
115
  - test/dummy/public/422.html
114
116
  - test/dummy/public/500.html
@@ -149,6 +151,7 @@ test_files:
149
151
  - test/dummy/app/controllers/application_controller.rb
150
152
  - test/dummy/app/assets/stylesheets/application.css
151
153
  - test/dummy/app/assets/javascripts/application.js
154
+ - test/dummy/log/test.log
152
155
  - test/dummy/config/initializers/mime_types.rb
153
156
  - test/dummy/config/initializers/inflections.rb
154
157
  - test/dummy/config/initializers/filter_parameter_logging.rb
@@ -172,6 +175,7 @@ test_files:
172
175
  - test/dummy/public/500.html
173
176
  - test/dummy/public/404.html
174
177
  - test/dummy/public/favicon.ico
178
+ - test/dummy/db/test.sqlite3
175
179
  - test/dummy/db/schema.rb
176
180
  - test/dummy/db/migrate/20151008181535_create_testings.rb
177
181
  - test/dummy/db/migrate/20151028194232_add_default_value.rb