Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set @config and moved include of abstract_adapter #177

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/active_record/connection_adapters/sqlserver_adapter.rb
@@ -1,10 +1,10 @@
require 'base64' require 'base64'
require 'arel/visitors/sqlserver' require 'arel/visitors/sqlserver'
require 'active_record' require 'active_record'
require 'active_record/connection_adapters/abstract_adapter'
require 'active_record/base' require 'active_record/base'
require 'active_support/concern' require 'active_support/concern'
require 'active_support/core_ext/string' require 'active_support/core_ext/string'
require 'active_record/connection_adapters/abstract_adapter'
require 'active_record/connection_adapters/sqlserver/core_ext/active_record' require 'active_record/connection_adapters/sqlserver/core_ext/active_record'
require 'active_record/connection_adapters/sqlserver/core_ext/database_statements' require 'active_record/connection_adapters/sqlserver/core_ext/database_statements'
require 'active_record/connection_adapters/sqlserver/core_ext/explain' require 'active_record/connection_adapters/sqlserver/core_ext/explain'
Expand Down Expand Up @@ -199,6 +199,7 @@ def initialize(connection, logger, pool, config)
@schema_cache = Sqlserver::SchemaCache.new self @schema_cache = Sqlserver::SchemaCache.new self
@visitor = Arel::Visitors::SQLServer.new self @visitor = Arel::Visitors::SQLServer.new self
# Our Responsibility # Our Responsibility
@config =
@connection_options = config @connection_options = config
connect connect
@database_version = select_value 'SELECT @@version', 'SCHEMA' @database_version = select_value 'SELECT @@version', 'SCHEMA'
Expand Down