SAP-archive/activerecord-hana-adapter

Connection drops schema on reconnect

Opened this issue · 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'.