mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Avoid syntax error that MySQL was throwing during DataMapper truncation.
This commit is contained in:
parent
04ba63bfee
commit
ecdedf5f11
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ module DataMapper
|
||||||
execute("SET FOREIGN_KEY_CHECKS = 0;")
|
execute("SET FOREIGN_KEY_CHECKS = 0;")
|
||||||
yield
|
yield
|
||||||
ensure
|
ensure
|
||||||
execute("SET FOREIGN_KEY_CHECKS = #{old.first};")
|
execute("SET FOREIGN_KEY_CHECKS = ?", *old)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue