Skip to content
Browse files

type casted PG bytea values are represented as a Hash.

This is a follow up to: 97f0d9a
This change is also related to: df0edaf
  • Loading branch information...
1 parent df0edaf commit 3bec1603f9392201998269456707dd854b4710cb @senny senny committed Nov 9, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 activerecord/lib/active_record/log_subscriber.rb
View
2 activerecord/lib/active_record/log_subscriber.rb
@@ -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

0 comments on commit 3bec160

Please sign in to comment.
Something went wrong with that request. Please try again.