Avoid syntax error that MySQL was throwing during DataMapper truncation.

This commit is contained in:
Blake Gentry 2010-09-16 00:59:31 -07:00 committed by Ben Mabey
parent 04ba63bfee
commit ecdedf5f11

View file

@ -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