Skip to content

Commit

Permalink
type casted PG bytea values are represented as a Hash.
Browse files Browse the repository at this point in the history
This is a follow up to: 97f0d9a
This change is also related to: df0edaf
  • Loading branch information
senny committed Nov 9, 2013
1 parent df0edaf commit 3bec160
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions activerecord/lib/active_record/log_subscriber.rb
Expand Up @@ -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

Expand Down

0 comments on commit 3bec160

Please sign in to comment.