You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert_equalmysql_worker.send(:compose_insert_query),"INSERT IGNORE INTO \"testings\" (\"greeting\",\"age\",\"happy\",\"created_at\",\"updated_at\",\"color\") VALUES ('Yo',15,'f',NULL,NULL,'chartreuse')"
177
+
end
178
+
179
+
test"adapter dependent postgresql methods"do
180
+
pgsql_worker=BulkInsert::Worker.new(
181
+
Testing.connection,
182
+
Testing.table_name,
183
+
%w(greetingagehappycreated_atupdated_atcolor),
184
+
500,# batch size
185
+
true)# ignore
186
+
pgsql_worker.adapter_name='PostgreSQL'
187
+
pgsql_worker.add["Yo",15,false,nil,nil]
188
+
189
+
assert_equalpgsql_worker.send(: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"
0 commit comments