Ticket #4716: test_validate_format_numeric_DB2_patch.diff
| File test_validate_format_numeric_DB2_patch.diff, 0.7 kB (added by jeremy@hinegardner.org, 2 years ago) |
|---|
-
activerecord/lib/active_record/connection_adapters/db2_adapter.rb
old new 89 89 @connection.set_auto_commit_on 90 90 end 91 91 92 def quote(value, column = nil) 93 if value.kind_of?(Numeric) and column and [:string, :text].include?(column.type) 94 "'#{value}'" 95 else 96 super 97 end 98 end 99 92 100 def quote_column_name(column_name) 93 101 column_name 94 102 end