mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #16071 from sgrif/sg-pg-type-cast
Remove PG's definition of `type_cast`
This commit is contained in:
commit
0792d3e78b
1 changed files with 0 additions and 15 deletions
|
@ -42,21 +42,6 @@ module ActiveRecord
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue