[DRE-commits] [SCM] ruby-activerecord-2.3.git branch, debian-sid, updated. debian/2.3.11-2-2-g73aba67

Ondřej Surý ondrej at sury.org
Thu Jul 28 13:11:59 UTC 2011


The following commit has been merged in the debian-sid branch:
commit 4a3f34f3e3888f0abf57c357f334ed8ccb0eb020
Author: Ondřej Surý <ondrej at sury.org>
Date:   Tue Jun 7 15:31:22 2011 +0200

    Added a fix for binary data corruption with PostgreSQL backend. This occurred whenever the binary data included ASCII value of \ followed by three numbers.

diff --git a/debian/patches/activerecord-2.3.5-1.patch b/debian/patches/activerecord-2.3.5-1.patch
new file mode 100644
index 0000000..15321da
--- /dev/null
+++ b/debian/patches/activerecord-2.3.5-1.patch
@@ -0,0 +1,11 @@
+--- a/lib/active_record/connection_adapters/postgresql_adapter.rb
++++ b/lib/active_record/connection_adapters/postgresql_adapter.rb
+@@ -486,7 +486,7 @@ module ActiveRecord
+         unescape_col = []
+         for j in 0...res.nfields do
+           # unescape string passed BYTEA field (OID == 17)
+-          unescape_col << ( res.ftype(j)==17 )
++          unescape_col << ( res.fformat(j)==0 and res.ftype(j)==17 )
+         end
+ 
+         ary = []
diff --git a/debian/patches/series b/debian/patches/series
index b9406ab..401ba5e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-remove_require_rubygems.patch
+activerecord-2.3.5-1.patch

-- 
ruby-activerecord-2.3.git



More information about the Pkg-ruby-extras-commits mailing list