diff --git a/lib/database_cleaner/data_mapper/truncation.rb b/lib/database_cleaner/data_mapper/truncation.rb index 9d66185..098ddb3 100644 --- a/lib/database_cleaner/data_mapper/truncation.rb +++ b/lib/database_cleaner/data_mapper/truncation.rb @@ -30,7 +30,7 @@ module DataMapper execute("SET FOREIGN_KEY_CHECKS = 0;") yield ensure - execute("SET FOREIGN_KEY_CHECKS = #{old.first};") + execute("SET FOREIGN_KEY_CHECKS = ?", *old) end end