Skip to content

Commit

Permalink
bump to rails 6
Browse files Browse the repository at this point in the history
  • Loading branch information
otheogar committed Oct 21, 2020
1 parent b285f15 commit d0ebb67
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ source 'https://rubygems.org'

gemspec

gem 'activerecord', '5.0.1'
gem 'activerecord', '6.0.3'
gem 'pry', '~> 0.11.1'
1 change: 0 additions & 1 deletion lib/active_record/connection_adapters/odbc_adapter.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'active_record'
require 'arel/visitors/bind_visitor'
require 'odbc'
require 'odbc_utf8'

Expand Down
11 changes: 0 additions & 11 deletions lib/odbc_adapter/adapters/null_odbc_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,6 @@ module Adapters
# registry. This allows for minimal support for DBMSs for which we don't
# have an explicit adapter.
class NullODBCAdapter < ActiveRecord::ConnectionAdapters::ODBCAdapter
class BindSubstitution < Arel::Visitors::ToSql
include Arel::Visitors::BindVisitor
end

# Using a BindVisitor so that the SQL string gets substituted before it is
# sent to the DBMS (to attempt to get as much coverage as possible for
# DBMSs we don't support).
def arel_visitor
BindSubstitution.new(self)
end

# Explicitly turning off prepared_statements in the null adapter because
# there isn't really a standard on which substitution character to use.
def prepared_statements
Expand Down

0 comments on commit d0ebb67

Please sign in to comment.