File tree Expand file tree Collapse file tree 3 files changed +6
-14
lines changed
lib/active_record/connection_adapters Expand file tree Collapse file tree 3 files changed +6
-14
lines changed Original file line number Diff line number Diff line change 10
10
- [ #1196 ] ( https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/1196 ) Use default inspect for database adapter
11
11
- [ #1216 ] ( https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/1216 ) Refactor adapter interface to match abstract adapter
12
12
- [ #1225 ] ( https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/1225 ) Drop support to Ruby 3.1
13
- - [ #1242 ] ( https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/1242 ) Changed how additional connection configuration is performed
14
13
15
14
#### Fixed
16
15
Original file line number Diff line number Diff line change @@ -105,15 +105,14 @@ configuration then implement the `additional_connection_configuration` method in
105
105
example we are setting the ` TEXTSIZE ` to 64 megabytes.
106
106
107
107
``` ruby
108
- module ActiveRecord
109
- module ConnectionAdapters
110
- class SQLServerAdapter < AbstractAdapter
111
- def additional_connection_configuration
112
- @raw_connection .execute(" SET TEXTSIZE #{ 64 .megabytes} " ).do
113
- end
108
+ ActiveRecord ::ConnectionAdapters ::SQLServerAdapter .prepend (
109
+ Module .new do
110
+ def configure_connection
111
+ super
112
+ @raw_connection .execute(" SET TEXTSIZE #{ 64 .megabytes} " ).do
114
113
end
115
114
end
116
- end
115
+ )
117
116
```
118
117
119
118
#### Configure Application Name
Original file line number Diff line number Diff line change @@ -521,12 +521,6 @@ def configure_connection
521
521
522
522
initialize_dateformatter
523
523
use_database
524
- additional_connection_configuration
525
- end
526
-
527
- # Allow for additional connection configuration by overriding this method.
528
- def additional_connection_configuration
529
- # no-op
530
524
end
531
525
end
532
526
end
You can’t perform that action at this time.
0 commit comments