mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user