mirror of https://github.com/rails/rails
Merge pull request #49775 from composerinteralia/trilogy-new-client
Build trilogy adapter with newer API
This commit is contained in:
commit
a4751751bc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue