Skip to content

Conversation

@aidanharan
Copy link
Contributor

@aidanharan aidanharan commented Sep 1, 2021

Fixes the application name so that the Rails application name can be used for the database connection created by TinyTDS.

During the refactoring in #917 the method configure_application_name should have been moved from an instance to a class method. This resulted in the application name never getting set to the Rails application name as the call to configure_application_name would throw a NameError exception, which resulted in the application name being set to nil. The TinyTds client would ignore the nil and use 'TinyTds' as the application name instead (https://github.com/rails-sqlserver/tiny_tds/blob/e3e79a030271891b11b6e7676382fe31f389b099/lib/tiny_tds/client.rb#L50).

@aidanharan aidanharan changed the title Fix application name Fix application name sent to TinyTDS Sep 1, 2021
@aidanharan aidanharan marked this pull request as ready for review September 1, 2021 13:57
@wpolicarpo wpolicarpo merged commit ef4c1d3 into rails-sqlserver:main Sep 2, 2021
lavika pushed a commit to lavika/activerecord-sqlserver-adapter that referenced this pull request Sep 26, 2023
* Fix application name

* Updated changelog

* No longer support configuring the application name by overriding the 'configure_application_name' method.

Co-authored-by: Aidan Haran <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants