Skip to content
Browse files

fixing bad merge: adding bind substitution visitor

  • Loading branch information...
1 parent f290d6f commit 967b300f70de4866274c8614df49ca7ecc8166d3 @tenderlove tenderlove committed Feb 22, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb
View
5 activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb
@@ -1,4 +1,5 @@
# encoding: utf-8
+require 'arel/visitors/bind_visitor'
gem 'mysql2', '~> 0.3.10'
require 'mysql2'
@@ -129,6 +130,10 @@ def initialize(connection, logger, connection_options, config)
configure_connection
end
+ class BindSubstitution < Arel::Visitors::MySQL # :nodoc:
+ include Arel::Visitors::BindVisitor
+ end
+
def self.visitor_for(pool) # :nodoc:
BindSubstitution.new pool
end

0 comments on commit 967b300

Please sign in to comment.
Something went wrong with that request. Please try again.