trilogy-libraries / activerecord-trilogy-adapter

Active Record adapter for the Trilogy database client for Rails v6.0 - v7.0.
https://github.com/trilogy-libraries/trilogy
MIT License
172 stars 17 forks source link

Fixes #54 - Apply connection configuration #56

Closed lorint closed 1 year ago

lorint commented 1 year ago

This is pursuant to issue #54 identified by @tmimura39 regarding applying connection configuration. Tomohiko indicates:

It seems that various settings including sql_mode are not applied correctly because configure_connection is not executed. ... trilogy applies the default sql_mode.

As such, here is a fix which strives to adhere as closely as possible to how connection configuration behaviour is implemented in Rails 7.1.