提交 00f030c6 编写于 作者: A Aaron Patterson

supporting delete with bind parameters in mysql2

上级 ed775c66
......@@ -290,6 +290,14 @@ def exec_insert(sql, name, binds)
execute sql.gsub('?') { quote(*binds.shift.reverse) }, name
end
def exec_delete(sql, name, binds)
binds = binds.dup
# Pretend to support bind parameters
execute sql.gsub('?') { quote(*binds.shift.reverse) }, name
@connection.affected_rows
end
def last_inserted_id(result)
@connection.last_id
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册