diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-02-02 13:48:34 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-02-07 14:13:46 -0800 |
commit | 94540763141a3574b9c2a96abfdcb3be601424a5 (patch) | |
tree | e058a123381f08900288067473a5b5a9d10c2a86 /activerecord/lib/active_record/connection_adapters | |
parent | 15b0dcd517c9f163708d007ca5ce1f01e7d39914 (diff) | |
download | rails-94540763141a3574b9c2a96abfdcb3be601424a5.tar.gz rails-94540763141a3574b9c2a96abfdcb3be601424a5.tar.bz2 rails-94540763141a3574b9c2a96abfdcb3be601424a5.zip |
mapping more oids
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql/oid.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb b/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb index 65d0556db4..08cfa8dd69 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb @@ -68,7 +68,7 @@ module ActiveRecord class Boolean def type_cast(value) - value == 't' + ConnectionAdapters::Column.value_to_boolean value end end @@ -139,6 +139,12 @@ module ActiveRecord TYPE_MAP[1009] = OID::Vector.new(',', TYPE_MAP[25]) # _text TYPE_MAP[1007] = OID::Vector.new(',', TYPE_MAP[23]) # _int4 + TYPE_MAP[600] = OID::Vector.new(',', TYPE_MAP[701]) # point + TYPE_MAP[601] = OID::Vector.new(',', TYPE_MAP[600]) # lseg + TYPE_MAP[602] = OID::Identity.new # path + TYPE_MAP[603] = OID::Vector.new(';', TYPE_MAP[600]) # box + TYPE_MAP[604] = OID::Identity.new # polygon + TYPE_MAP[718] = OID::Identity.new # circle end end end |