提交 57beebaa 编写于 作者: S Sean Griffin

Remove PG's definition of `type_cast`

All cases except for `nil` in an array have been removed. `nil` in an
array is handled by the Array type object.
上级 2f716694
......@@ -43,21 +43,6 @@ def quote(value, column = nil) #:nodoc:
end
end
def type_cast(value, column)
return super unless column
case value
when NilClass
if column.array
value
else
super
end
else
super
end
end
# Quotes strings for use in SQL input.
def quote_string(s) #:nodoc:
@connection.escape(s)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册