This project is archived and is in readonly mode.

Changeset [932dffc559ef188eb31d0223116e9da361833488] by Adam Majer

October 25th, 2008 @ 11:54 AM

Fix binary data corruption bug in PostgreSQL adaptor

  1. Move the binary escape/unescape from column to the driver - we should store binary data AR just like most other adaptors
  2. check to make sure we only unescape bytea data PGresult.ftype( column ) == 17 that is passed to us in escaped format PGresult.fformat( column ) == 0

Signed-off-by: Michael Koziarski michael@koziarski.com [#1063 state:committed] http://github.com/rails/rails/co...

Committed by Adam Majer

  • M activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>