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:
Marcel Molina 2006-04-26 21:53:43 +00:00
parent 71ff705449
commit 24e3759f86
1 changed files with 1 additions and 1 deletions

View File

@ -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