Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 8254

Show
Ignore:
Timestamp:
12/02/07 03:33:58 (1 year ago)
Author:
bitsweat
Message:

Handle 8.1 default formatting. Closes #10333 [Tim Pope]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb

    r8185 r8254  
    166166            when /\A'(.*)'::(?:character varying|bpchar|text)\z/m 
    167167              $1 
     168            # Character types (8.1 formatting) 
     169            when /\AE'(.*)'::(?:character varying|bpchar|text)\z/m 
     170              $1.gsub(/\\(\d\d\d)/) { $1.oct.chr } 
    168171            # Binary data types 
    169172            when /\A'(.*)'::bytea\z/m