We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d45712 commit 5a26c1eCopy full SHA for 5a26c1e
test/sync_test.rb
@@ -156,6 +156,12 @@ def test_disable_user_triggers
156
assert_equal [{"name" => "Test"}], conn2.exec("SELECT name FROM robots ORDER BY id").to_a
157
end
158
159
+ def test_disable_user_triggers_defer_constraints
160
+ insert(conn1, "robots", [{"name" => "Test"}])
161
+ assert_works "robots --disable-user-triggers --defer-constraints", config: true
162
+ assert_equal [{"name" => "Test"}], conn2.exec("SELECT name FROM robots ORDER BY id").to_a
163
+ end
164
+
165
def test_disable_integrity
166
insert(conn1, "posts", [{"id" => 1}])
167
insert(conn1, "comments", [{"post_id" => 1}])
0 commit comments