type casted PG bytea values are represented as a Hash.

This is a follow up to: 97f0d9a0dd12e7ad634815eecfeff866f64aad92
This change is also related to: df0edafac9eb47cd971970a9e7b13a3eaddf214e
This commit is contained in:
Yves Senn 2013-11-09 20:53:11 +01:00
parent df0edafac9
commit 3bec1603f9

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