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
167 stars 16 forks source link

Fixes #54 - Apply connection configuration #56

Closed lorint closed 10 months ago

lorint commented 11 months 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.