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_equalpgsql_worker.compose_insert_query,"INSERT INTO \"testings\" (\"greeting\",\"age\",\"happy\",\"created_at\",\"updated_at\",\"color\") VALUES ('Yo',15,FALSE,NULL,NULL,'chartreuse') ON CONFLICT DO NOTHING RETURNING id"
374
+
375
+
ifActiveRecord::VERSION::STRING >= "5.0.0"
376
+
assert_equalpgsql_worker.compose_insert_query,"INSERT INTO \"testings\" (\"greeting\",\"age\",\"happy\",\"created_at\",\"updated_at\",\"color\") VALUES ('Yo',15,FALSE,NULL,NULL,'chartreuse') ON CONFLICT DO NOTHING RETURNING id"
377
+
else
378
+
assert_equalpgsql_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 RETURNING id"
379
+
end
375
380
end
376
381
end
377
382
@@ -392,7 +397,11 @@ class BulkInsertWorkerTest < ActiveSupport::TestCase
0 commit comments