提交 3bec1603 编写于 作者: Y Yves Senn

type casted PG bytea values are represented as a Hash.

This is a follow up to: 97f0d9a0
This change is also related to: df0edafa
上级 df0edafa
......@@ -23,6 +23,8 @@ def initialize
def render_bind(column, value)
if column
if column.binary?
# This specifically deals with the PG adapter that casts bytea columns into a Hash.
value = value[:value] if value.is_a?(Hash)
value = "<#{value.bytesize} bytes of binary data>"
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册