Permalink
Browse files

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
  • Loading branch information...
1 parent 71ff705 commit 24e3759f864c54553c0b48ca924f7276891a60af Marcel Molina committed Apr 26, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/connection_adapters/oracle_adapter.rb
@@ -210,7 +210,7 @@ def quote_string(string) #:nodoc:
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

0 comments on commit 24e3759

Please sign in to comment.