Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 3bec1603f9392201998269456707dd854b4710cb 1 parent df0edaf
@senny senny authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  activerecord/lib/active_record/log_subscriber.rb
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>"
Please sign in to comment.
Something went wrong with that request. Please try again.