Merge pull request #49775 from composerinteralia/trilogy-new-client

Build trilogy adapter with newer API
This commit is contained in:
Eileen M. Uchitelle 2023-10-25 12:10:13 -04:00 committed by GitHub
commit a4751751bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 11 deletions

View File

@ -21,19 +21,10 @@ module ActiveRecord
# matched rather than number of rows updated. # matched rather than number of rows updated.
configuration[:found_rows] = true configuration[:found_rows] = true
options = [ trilogy_adapter_class.new(configuration)
configuration[:host],
configuration[:port],
configuration[:database],
configuration[:username],
configuration[:password],
configuration[:socket],
0
]
trilogy_adapter_class.new nil, logger, options, configuration
end end
end end
module ConnectionAdapters module ConnectionAdapters
class TrilogyAdapter < AbstractMysqlAdapter class TrilogyAdapter < AbstractMysqlAdapter
ER_BAD_DB_ERROR = 1049 ER_BAD_DB_ERROR = 1049