activewarehouse/adapter_extensions — Issue #7: Re-enable local infile for mysql adapter
Author: thbar
Created: 2012-02-29 14:48:27+00:00
State: open

This is more or less the fix that was in adapter_extensions before the rails-3 branch rework.

```ruby
module ActiveRecord
module ConnectionAdapters
class MysqlAdapter
private
def connect_with_local_infile
@connection.options(Mysql::OPT_LOCAL_INFILE, 1)
connect_without_local_infile
end
alias_method_chain :connect, :local_infile
end
end
end
```