Many of the connection query methods that come with ActiveRecord accept an optional binds parameter. This can be used to safely inject parameters into the query.
I ran into another issue when checking #380. It occurs when using multiple bind parameters in an INSERT statement, one of which was nil. The problem is caused by a ...