Fix column type check error in changeset [4280]. [Michael A. Schoen]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4284 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
71ff705449
commit
24e3759f86
|
@ -210,7 +210,7 @@ begin
|
|||
end
|
||||
|
||||
def quote(value, column = nil) #:nodoc:
|
||||
if column && column.sql_type =~ /LOB$/i
|
||||
if column && [:text, :binary].include?(column.type)
|
||||
%Q{empty_#{ column.sql_type rescue 'blob' }()}
|
||||
else
|
||||
case value
|
||||
|
|
Loading…
Reference in New Issue