activerecord-hana-adapter icon indicating copy to clipboard operation
activerecord-hana-adapter copied to clipboard

Connection drops schema on reconnect

Open FHorschig opened this issue 8 years ago • 0 comments

If you use a schema besides SYSTEM (which is the normal use case), the reconnect will reset your schema to SYSTEM.

The fix is simply to add 'setup_schema' in ActiveRecord::ConnectionAdapters::NewDBAdapter#reconnect after 'connect'.

FHorschig avatar Jul 22 '16 08:07 FHorschig