提交 94540763 编写于 作者: A Aaron Patterson

mapping more oids

上级 15b0dcd5
......@@ -68,7 +68,7 @@ def type_cast(value)
class Boolean
def type_cast(value)
value == 't'
ConnectionAdapters::Column.value_to_boolean value
end
end
......@@ -139,6 +139,12 @@ def type_cast(value)
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册