# File lib/dbd_pg/Pg.rb, line 761 def as_bytea(str) # TODO: Use quote function of Pg driver a = str.split(/\\\\/, -1).collect! {|s| s.gsub!(/\\[0-7][0-7][0-7]/) {|o| o[1..-1].oct.chr} # \### => chr(###) s } a.join("\\") # \\ => end end