diff options
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb index 02777e6806..4a51bddbdf 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb @@ -204,9 +204,15 @@ module ActiveRecord end end + class SQLString < Arel::Collectors::SQLString + def compile(bvs, conn) + super(bvs) + end + end + def collector if @prepared_statements - Arel::Collectors::SQLString.new + SQLString.new else BindCollector.new end |