File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
lib/active_record/connection_adapters/sqlserver Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 10
10
- [ #879 ] ( https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/879 ) Added visit method for HomogeneousIn
11
11
- [ #880 ] ( https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/880 ) Handle any default column class when deduplicating
12
12
- [ #861 ] ( https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/861 ) Fix Rails 6.1 database config
13
+ - [ #885 ] ( https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/885 ) Fix when quoting ActiveModel::Attribute
13
14
14
15
#### Changed
15
16
Original file line number Diff line number Diff line change @@ -118,6 +118,8 @@ def _quote(value)
118
118
value . quoted
119
119
when String , ActiveSupport ::Multibyte ::Chars
120
120
"#{ QUOTED_STRING_PREFIX } #{ super } "
121
+ when ActiveModel ::Attribute
122
+ quote ( value . value_for_database )
121
123
else
122
124
super
123
125
end
You can’t perform that action at this time.
0 commit comments