rails-sqlserver / activerecord-sqlserver-adapter

SQL Server Adapter For Rails
MIT License
968 stars 558 forks source link

`raw_connection_do` method removed in 7.1.0 but still referenced in Readme #1146

Closed owst closed 5 months ago

owst commented 6 months ago

Issue

The Readme references raw_connection_do which was removed in https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/1121 and no longer exists in the released 7.1.0

Expected behavior

The example in the Readme to configure the connection should work.

Actual behavior

undefined method 'raw_connection_do' for #<ActiveRecord::ConnectionAdapters::SQLServerAdapter version: 7.1.0, azure: true>

How to reproduce

Try and use the example in the readme to configure the connection

Details

owst commented 6 months ago

I suspect the fix is to call internal_exec_query instead of raw_connection_do but want to check that here

aidanharan commented 5 months ago

Fixed the README to use the same method as the super's method.

@raw_connection.execute("SET TEXTSIZE #{64.megabytes}").do