Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Set @config and moved include of abstract_adapter #177

Closed
wants to merge 2 commits into from

2 participants

@josephbridgwaterrowe

Absence of abstract_adapter before active_record/base include was causing an initialized constant error.

@metaskills metaskills closed this pull request from a commit
@metaskills metaskills Tons of bug fixes.
* Fix exists? with offset by patching visitor. Fixes #171 and Fixes #167
* Set default text size to 2147483647 for TinyTDS connections. Fixes #181
* Set @config ivar for 3rd party libs. Fixes #177
* Strengthen #query_requires_identity_insert? by looking for VALUES at the end. Fixes #178
* Make #sql_type_for_statement work for integers that may have empty parens or none at all. Fixes #175
13e6fb3
@gicappa gicappa referenced this pull request from a commit in gicappa/activerecord-sqlserver-adapter
@metaskills metaskills Tons of bug fixes.
* Fix exists? with offset by patching visitor. Fixes #171 and Fixes #167
* Set default text size to 2147483647 for TinyTDS connections. Fixes #181
* Set @config ivar for 3rd party libs. Fixes #177
* Make #sql_type_for_statement work for integers that may have empty parens or none at all. Fixes #175
8c9f89e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/active_record/connection_adapters/sqlserver_adapter.rb
View
3  lib/active_record/connection_adapters/sqlserver_adapter.rb
@@ -1,10 +1,10 @@
require 'base64'
require 'arel/visitors/sqlserver'
require 'active_record'
+require 'active_record/connection_adapters/abstract_adapter'
require 'active_record/base'
require 'active_support/concern'
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/database_statements'
require 'active_record/connection_adapters/sqlserver/core_ext/explain'
@@ -199,6 +199,7 @@ def initialize(connection, logger, pool, config)
@schema_cache = Sqlserver::SchemaCache.new self
@visitor = Arel::Visitors::SQLServer.new self
# Our Responsibility
+ @config =
@connection_options = config
connect
@database_version = select_value 'SELECT @@version', 'SCHEMA'
Something went wrong with that request. Please try again.