fix: Refactor new connection
The old method was calling AbstractAdapter#initialize with a connection object, rather than a hash. This was then setting @unconfigured_connection, which in turns forced to re-run #configure_connection when a first query was made. This is usually OK (although unnecessary) except if use_follower_reads_for_type_introspection is used, since it sets AOST for a single query, which fails within a transaction.
Fixes #320
This is great! Thanks for fixing!
@BuonOmo when do you think this change will be released?
I don't know, it will depend on @rafiss' review. Besides that I think there's no issue
just bumping this @rafiss @BuonOmo would love to see it sooner rather than later
@rafiss or @BuonOmo would you release this? We just had it happen in production and caused errors. It hosed a rails worker and we had to kill it
I still don't have the permissions to do it, I'll ping @rafiss